
Where messy text comes from
Most mess comes from copying. Each program stores text its own way, and the copy brings those habits along. Pick the source under "My text comes from" and the tool turns on the right options.
| Copied from | What goes wrong | Option that fixes it |
|---|---|---|
| PDF files | A line break at the end of every line, words split with a hyphen, ligatures like "fi" as one character | Join lines broken in a sentence, Rejoin words, Fancy letters and ligatures |
| Word and email | No-break spaces, soft hyphens, ">" marks in replies, extra empty lines | Odd spaces, Hidden characters, Email quote marks, Empty lines |
| Web pages | Tabs and runs of spaces from the page layout, zero width spaces, HTML codes like & | Repeated spaces, Tabs, Hidden characters, Remove HTML tags |
| Chat apps and social posts | Bold or script letters from font generators, zero width joiners, direction marks | Fancy letters, Hidden characters |
| Spreadsheets | Tabs between cells, spaces at the end of cells | Tabs, Remove spaces at line ends |
How to fix line breaks in text from a PDF
A PDF does not store paragraphs. It stores each line of text at a spot on the page. When you copy, every line ends with a line break, even in the middle of a sentence.
"Join lines broken in a sentence" puts the lines back together. It keeps a break after an empty line, before a list item, before an indented line, and after a short line that ends with a period. A word split with a hyphen at the end of a line ("exam-" and "ple") is put back together when the next line starts with a small letter. The tool guesses from line lengths, so read the result once before you use it.
Hidden characters you cannot see
Some characters take up no space at all. A zero width space tells a browser where a long word may wrap. A zero width joiner glues emoji together, so 👨👩👧 shows as one family emoji. Copied into a name, a password or a spreadsheet, they break searches and matches. "hello" with a zero width space inside looks the same but is not found by a search for "hello".
| Character | Code point | Where it comes from | Removed? |
|---|---|---|---|
| Zero width space | U+200B | Web pages, chat apps, some CMS editors | Yes |
| Zero width joiner | U+200D | Emoji sequences, Indian scripts | Only outside emoji and words |
| Zero width non-joiner | U+200C | Persian, Hindi and other scripts | Only outside words |
| Byte order mark | U+FEFF | The start of files saved by older Windows tools | Yes |
| Soft hyphen | U+00AD | Word and web pages, marks where a word may break | Yes |
| Word joiner | U+2060 | Typesetting, keeps two parts on one line | Yes |
| Right to left override | U+202E | Tricks that flip text, like a file name that hides its real ending | Yes |
| Left and right marks | U+200E, U+200F | Arabic and Hebrew text | Kept when the text has Arabic or Hebrew letters |
| Variation selectors | U+FE00 to U+FE0F | Emoji style, like the red heart ❤️ | One right after a character stays. A long run of them can hide data, so it goes. |
To see each hidden character by name before you remove it, paste your text into the hidden character finder.
Spaces that are not normal spaces
Unicode has more than a dozen spaces. Word puts a no-break space (U+00A0) where you press Ctrl+Shift+Space, and web pages write it as . It looks like a normal space, so a search for two words with a normal space between them misses it. Some programs also write a narrow no-break space (U+202F) between the time and "PM".
"Odd spaces to normal spaces" turns all of them into the space from your keyboard (U+0020). Turn it off for French text, where a no-break space before "!" and "?" is part of the spelling.
Curly quotes, dashes and fancy letters
Word and phones change straight quotes into curly ones as you type. In code, a CSV file or a command, a curly quote is a different character and causes errors. The dash option changes long dashes and the minus sign into the keyboard hyphen, and the ellipsis character into three dots.
Fancy letters from font generators are math symbols, like the bold 𝐀 (U+1D400). The tool turns them back into plain letters with Unicode NFKC, the same rule that splits the "fi" ligature into "f" and "i". Signs like ™, ½ and ² stay as they are. To make fancy letters on purpose, use the font converter.
Line endings: Windows, Mac and Linux
A line break is one or two hidden characters. Windows uses two, a carriage return and a line feed (CRLF). Mac and Linux use only the line feed (LF). Most programs read both, but some older Windows tools show an LF file on one line. Pick "CRLF (Windows)" under Line endings, and the copy and the download use two characters per break.