Whitespace Normalizer
Clean up messy spacing: trim lines, collapse repeated spaces, convert tabs and remove invisible characters.
Whitespace Normalizer
Text copied from PDFs, websites, Word and spreadsheets often carries hidden baggage: double spaces, tabs, trailing spaces, non-breaking spaces and zero-width characters that break searches, formulas and code. This tool cleans all of that in one pass, with each fix as a separate option so you control exactly what changes.
How to use Whitespace Normalizer
- Paste your text.
- Tick the clean-ups you want: trimming, collapsing spaces, converting tabs and removing invisible characters.
- Choose what to do with blank lines: keep them, keep at most one, remove them all or join everything into one line.
- Copy the cleaned text or download it as a file.
When it comes in handy
- Tidying text pasted from a PDF before putting it on a web page.
- Removing hidden characters that stop a spreadsheet lookup from matching.
- Preparing lists and data for import.
Frequently asked questions
- What are zero-width and non-breaking spaces?
- A non-breaking space looks like a normal space but stops a line break; a zero-width space is invisible altogether. Both come in from web pages and word processors and make two identical-looking words compare as different.
- Is my text uploaded?
- No. The cleaning runs in your browser.