Clean whitespace without touching your words
Extra spaces sneak in when you copy from websites, spreadsheets or PDFs, or when two spaces were typed after every full stop. They are hard to see and annoying to fix by hand. Choose what to clean and the result updates instantly.
- Collapse multiple spaces into one.
- Trim lines — remove spaces at the start and end of every line.
- Convert tabs to spaces.
- Convert special spaces such as non-breaking and zero-width spaces, which often come from web pages and break searches and formulas.
- Remove empty lines, or just squeeze several empty lines down to one.
The summary tells you how many characters were removed, so you can see what changed.
How to use it
- Paste your text.
- Tick what to clean. The common options are on by default.
- Copy the result.
Frequently asked questions
What is a non-breaking space?
A space character (often written in web pages) that looks normal but stops a line from breaking. When copied, it can stop spreadsheet formulas and searches from matching. This tool turns it into a normal space.
Will this change the words in my text?
No. Only spaces, tabs and empty lines are changed.
More free text tools
Word counterPaste or type your text. Words, characters, sentences, paragraphs and reading time update instantly.Character counterCount characters and check your text against the length limits for social posts, SMS and search results.Case converterFix text typed with caps lock, make proper headlines, or turn phrases into variable names.Remove line breaksText pasted from a PDF breaks at the end of every line. Join it back into clean paragraphs.Remove duplicate linesPaste a list with one item per line. Duplicates are removed and the original order is kept.Sort linesSort a list alphabetically, by number or by length — or reverse or shuffle it.Find and replaceReplace every match of a word or phrase at once. Supports match case, whole words and regular expressions.Reverse textWrite text backwards, reverse word or line order, or turn it upside down.Word frequencySee which words and phrases you use most, how often, and as a share of the whole text.Readability checkerFind out how easy your writing is to read, what school grade it suits, and which sentences are too long.Text comparePaste two versions of a text to see exactly what changed.Slug generatorTurn titles into short, clean URLs like how-to-bake-bread.Lorem ipsumGenerate placeholder text for designs, mockups and templates.