Skip to content
HandfulTools

Text Cleaner

Text copied from a PDF breaks every line; text from Word has curly quotes; text from a website carries HTML and invisible characters. Clean it all in one pass while keeping your paragraphs.

Runs in your browser

Loading…

How to use

  1. Paste the messy text.
  2. Tick the fixes you want.
  3. Copy the cleaned text.

How it works

“Join broken lines” replaces single line breaks with spaces but keeps double line breaks, so paragraphs survive while hard-wrapped lines from PDFs are rejoined. Smart quotes (“ ” ‘ ’ « ») become straight quotes, which matters for code, CSV files and some databases.

HTML stripping removes tags and decodes common entities such as & and  . Script and style blocks are removed with their content.

Examples

PDF paragraph
“The results show\nthat the method\nworks.” becomes “The results show that the method works.”

Common uses

  • Reusing text from PDFs
  • Preparing text for code, CSV or JSON
  • Removing formatting from web content

Privacy & security

This tool runs entirely in your browser. Your files and text are never uploaded to our servers — processing happens on your device and results are created locally. How each tool handles files

Frequently asked questions

Will I lose paragraph breaks?

No. Only single line breaks are joined; blank lines between paragraphs are kept.

Is it safe for code?

Turn off “Join broken lines” when cleaning code, because line breaks are meaningful there.

Last updated: