How to use
- Paste your text into the Text box.
- The default settings (trim each line, collapse repeated spaces, merge runs of blank lines, fix special spaces) are applied right away.
- Toggle options to taste. Line breaks are never removed, so your paragraphs stay intact.
- Copy the result or Download .txt. The character count before and after is shown alongside.
What each option does
| Option | Behavior | Example |
|---|---|---|
| Trim each line | Removes spaces and tabs at the start and end of every line | ␣␣Hello␣ → Hello |
| Collapse repeated spaces | Turns two or more spaces or tabs into a single space | Hello␣␣␣world → Hello␣world |
| Remove all spaces | Deletes every space and tab inside lines, keeping line breaks | 555␣123␣4567 → 5551234567 |
| Blank lines: merge runs | Shrinks consecutive blank lines to one and drops blank lines at the very start and end | Even spacing between paragraphs |
| Blank lines: remove all | Deletes every empty or whitespace-only line | A tight list with no gaps |
| Fix special spaces | Replaces or deletes invisible look-alike spaces | See below |
What are special spaces?
Text copied from web pages, PDFs, Word or Excel often contains characters that look like a normal space (U+0020) but are not. They break search, make spreadsheet numbers turn into text and throw off alignment.
- Non-breaking space (U+00A0): comes from
in HTML. Replaced with a normal space. - Full-width space (U+3000): inserted by Korean, Japanese and Chinese input methods. Replaced with a normal space.
- Zero-width space (U+200B) and BOM (U+FEFF): completely invisible but still counted as characters. Deleted.
The zero-width joiner (U+200D) is left alone, because removing it breaks combined emoji such as 👨👩👧.
Related tools
To join everything into one paragraph, use Remove Line Breaks. To delete or change specific words, use Find and Replace. To check the length afterwards, try Character Count. Your text is processed in this browser and never sent to a server.