Clean Up Text
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Results
What changed
Your input is too long to share as a link, so the page address no longer includes it.
Text copied from Word, Google Docs, PDFs or web pages often carries characters you can’t see: curly quotes that break code, non-breaking spaces that stop search-and-replace, zero-width spaces that make two identical words compare different. This tool finds them, fixes them and tells you how many it changed.
How to use it
- Paste your text.
- Untick any fix you don’t want.
- Copy the cleaned text.
Example: “Hello” world — it’s (with curly quotes, two spaces and an em dash) becomes “Hello” world - it’s: 3 quotes straightened, 1 dash replaced and 1 run of spaces shortened.
Questions and answers
What are invisible characters?
Characters that take no space on screen: zero-width spaces, word joiners, soft hyphens and byte-order marks. They come along when copying from web pages or PDFs and can break searches, passwords and code.
Why replace curly quotes?
Code, command lines, CSV files and many systems expect straight quotes. Curly quotes pasted from a document make code fail in ways that are hard to see.
Are line breaks kept?
Yes. Single line breaks and paragraphs stay as they are; only runs of more than one blank line are reduced, if that option is on.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
text | The text to clean. |
quotes | 1 to straighten curly quotes, 0 to keep them. |
dashes | 1 to replace long dashes and ellipses. |
spaces | 1 to turn special spaces into normal ones. |
invisible | 1 to remove invisible characters. |
trailing | 1 to remove spaces at line ends. |
collapse | 1 to shorten runs of spaces. |
blank | 1 to allow at most one blank line in a row. |
tabs | 0 to keep tabs, or 2 or 4 spaces per tab. |