Free Online Text Cleaner, Remove Extra Spaces and Hidden Characters
Tidy text that came from a document, a PDF or a web page. Collapse runs of spaces, trim the ends of lines, remove blank lines, replace curly quotes and long dashes with plain ones, and strip the invisible characters that break search and CSV files. Every change is counted.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
The Characters You Cannot See
Why a word you can read refuses to match when you search for it.
| Character | Code | Where it comes from, and what it breaks |
|---|---|---|
| Non breaking space | U+00A0 | Word processors and HTML. Looks exactly like a space, is not one, so a search for "New York" misses it and a CSV column splits in the wrong place. |
| Zero width space | U+200B | Web pages that allow breaking inside long words. Invisible, and splits a word in two for search and sorting. |
| Soft hyphen | U+00AD | Hyphenation in PDFs and print layouts. Shows only when the word breaks, so copied text carries hyphens nobody can see. |
| Byte order mark | U+FEFF | The first character of many exported files. Breaks the first column name of a CSV and the first key of a JSON file. |
| Narrow and thin spaces | U+2009 U+202F | Typesetting, and French punctuation rules. Numbers formatted for print arrive with them inside, and then fail to parse as numbers. |
How to Clean Up Pasted Text
A few steps, and nothing is uploaded.
What to Know Before You Clean
Including the characters that look like spaces and are not.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the Text Cleaner
Text that was written somewhere else arrives with things in it that nobody typed. A PDF puts soft hyphens where words were broken across lines. A word processor turns straight quotes into curly ones and two hyphens into a dash. A web page inserts zero width spaces so that long words can wrap. None of it is visible, and all of it causes trouble the moment the text is searched, sorted, imported or compared.
This page collects the fixes in one place and keeps each one separate. The spacing rules are on by default because almost everyone wants them; the rules that change meaning, such as flattening accents or forcing plain ASCII, start off. That split is deliberate: a cleaner that quietly removes accents from names is worse than no cleaner at all.
The part people find most useful is not the cleaning but the report. Before anything is removed, the page says which invisible characters it found and how many. That turns "the spreadsheet will not add up this column" into "the export is putting narrow spaces inside the numbers", which is something you can go and fix at the source.
Frequently Asked Questions
Invisible characters, quotes, accents and what is left alone.