Skip to content
WebKitool

Text Cleaner

Strip extra spaces, blank lines, line breaks, smart quotes and unwanted characters.

Loading tool…

Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.

How to use the text cleaner

  1. Paste the messy text.
  2. Tick the cleaning steps you want.
  3. Copy the cleaned result.

About this tool

Text copied out of a PDF or an email arrives broken: a line break at the end of every line, double spaces, and invisible characters that survive a paste. Each fix is a separate switch here, so you apply only what you need.

Straightening quotes is the one worth knowing about. Word processors substitute curly quotes, en dashes and ellipses that look identical at a glance but break code, CSV files and older systems. Turning them back into plain ASCII solves a class of bug that is otherwise very hard to see.

Common uses

  • Fixing text copied out of a PDF.
  • Joining a hard-wrapped paragraph back into one line.
  • Removing curly quotes before pasting into code.

Frequently asked questions

Why does text from a PDF break at every line?
PDFs store text positioned line by line, so copying inserts a break at the end of each visual line. 'Join all lines into one' undoes it.
What are smart quotes and why remove them?
Curly quotes and long dashes inserted by word processors. They look the same but are different characters, and they break code, CSV parsing and older systems.

Related tools