Space and invisible-character tools
Remove Spaces
Collapse repeated horizontal whitespace to one regular space or remove horizontal whitespace completely while retaining line endings. The audit separates ordinary spaces, tabs, NBSP, and other Unicode spacing. The guide to removing extra spaces explains which mode to pick.
Remove Non-Breaking Spaces
Target only U+00A0, U+202F, and U+2007. Convert them to ordinary spaces when visible separation should remain, or delete them for controlled identifiers.
Remove Zero-Width Characters
Find U+200B, U+200C, U+200D, U+2060, and U+FEFF. A cautious mode keeps joining controls that may matter in multilingual text and emoji.
Remove or Expand Tabs
Replace U+0009 tab runs, remove them, or expand each tab to the next configurable column stop without altering ordinary spaces or stored line breaks.
Line and paragraph tools
Remove Line Breaks
Join lines with a space, join without a separator, or preserve blank-line paragraph boundaries. The audit distinguishes LF, CRLF, and CR.
Remove Empty Lines
Delete every whitespace-only line, collapse repeated blank lines to one paragraph gap, or trim blank padding only from the outside of a text block.
Trim Lines
Remove leading whitespace, trailing whitespace, or both on every line. Internal spacing and the original line-ending sequences remain unchanged.
How to choose the narrowest safe tool
Start with what is visibly wrong. Unexpected wrapping often points to non-breaking spaces. A value that looks correct but fails an exact match may contain a zero-width character. Excess vertical gaps call for the empty-line tool, while text broken across every visual row may need the line-break tool. Use the broad homepage space remover only when several horizontal spacing types should be normalized together.
Narrow transformations are easier to review because unrelated formatting stays unchanged. Preserve a copy of important source text, inspect the live counts, and compare the result before replacing structured data, code, Markdown, or multilingual writing.
Match the symptom to the tool
Whitespace problems are easier to fix when you identify the character or structure at fault before choosing a transformation. This table maps what you can observe to the most likely cause and the narrowest tool that addresses it.
| What you see | Likely cause | Tool to try first |
|---|---|---|
| Words separated by several spaces | Repeated U+0020 or tab runs | Remove Spaces (Multiple Spaces mode) |
| A phrase refuses to wrap and overflows the margin | Non-breaking space (U+00A0 or U+202F) | Remove Non-Breaking Spaces |
| An exact-match search or comparison fails on identical-looking text | Zero-width character (U+200B or U+FEFF) | Remove Zero-Width Characters |
| Columns collapse when pasted into another app | U+0009 tabs used for alignment | Remove or Expand Tabs |
| Every sentence sits on its own short line | Hard line breaks from a PDF or wrapped email | Remove Line Breaks |
| Large vertical gaps between paragraphs | Repeated blank lines from a format conversion | Remove Empty Lines |
| Ragged indentation or invisible trailing spaces | Edge whitespace on individual lines | Trim Lines |
Two broad modes versus seven narrow tools
The homepage space remover has two modes. Multiple Spaces collapses every run of horizontal whitespace, including tabs and Unicode spaces, to a single regular space and trims each line edge. All Spaces deletes horizontal whitespace entirely. Both preserve line breaks. Those two modes cover most "there is too much space in this text" situations in one step.
The narrow tools exist for the cases where a broad collapse would destroy something you need. If you only want to neutralize non-breaking spaces but keep tab-indented code intact, the homepage tool is too blunt and the NBSP tool is correct. If tabs should expand to aligned column stops rather than disappear, only the tab tool does that. Choosing the narrowest tool also makes the result easier to review, because every unrelated character stays exactly as it was. If you are still deciding whether a character should be converted or kept, start with what a non-breaking space is.
How these tools differ from a find-and-replace
A manual find-and-replace for a space in most editors matches only U+0020. It will not catch a non-breaking space, a narrow no-break space, an ideographic space, or a zero-width character, which is why text can still fail an exact match after you believe you removed every space. Each tool here works from an explicit set of Unicode code points and shows a live count of what it found, so the cleanup is auditable rather than a guess. The tools also apply their rule per line where that matters, which a single search-and-replace pattern usually cannot do safely. The whitespace character reference lists every code point involved, and Browser Tool Versus Code Methods compares this approach with scripting.
A repeatable cleanup sequence
- Keep the original text somewhere you can return to it.
- Decide whether the problem is horizontal spacing, vertical spacing, line structure, or an invisible character.
- Run the narrowest tool for that category and read its live audit.
- Compare the output against the source, focusing on code, tables, Markdown, and non-Latin text.
- If two problems coexist, fix them one tool at a time so each change stays reviewable.
Processing scope
The transformations are implemented in browser JavaScript. Tool input is processed locally and is not submitted to a text-processing server. Analytics and advertising services are described separately in the Privacy Policy. The tools do not infer writing intent, so the person using them remains responsible for checking that meaningful spacing was not removed.
Learn why the characters behave differently
The text cleanup guides explain Unicode whitespace, no-break behavior, PDF extraction, line endings, and common diagnostic steps. They are useful when the correct transformation is not obvious from how the pasted text looks.