Everything below is answered in full, nothing to click open.
How do I collapse extra spaces in text?
Paste the text into the box above and press Minify. Every run of whitespace is collapsed to a single space, and the result appears on the right.
Is the whitespace minifier free?
Yes, entirely free. No signup, no trial and no usage limit, since it runs in your browser.
Is my text uploaded anywhere?
No. Processing happens on your own machine in JavaScript. Nothing is sent over the network.
Does it delete all the spaces?
No, it collapses runs of whitespace down to one space; it never removes the single space between two words. For deleting every space entirely, use the text space remover instead.
What's the difference between this and the text space remover?
This collapses multiple spaces into one and keeps readable spacing. The space remover deletes every space entirely, joining words together. Use this for tidying prose and the other for slugs, keys and fields that reject whitespace.
Does it collapse line breaks too?
Yes, a run of whitespace spanning a line break is collapsed the same way as a run of plain spaces, which joins the surrounding lines onto one.
Will it preserve my paragraph breaks?
No, paragraph breaks are a kind of whitespace too and get collapsed like everything else. Process paragraphs individually if you need to keep them separate.
Does it remove tabs?
Yes, a tab is whitespace, so a run containing one is collapsed to a single space along with any spaces around it.
Why does my pasted table have extra spaces in the middle of sentences?
The source used spacing to visually line up columns rather than real formatting, and that spacing carries over as literal repeated spaces once copied out.
Does minifying change my wording?
No, only whitespace is affected. Every word stays exactly as written.
Can I use this on code?
Be careful, whitespace is often meaningful in code, especially in Python and YAML. This tool is built for prose, not for anything where spacing carries syntax.
Does it trim leading and trailing whitespace too?
Yes, the very start and end of the result are trimmed, in addition to every internal run being collapsed.
Does it work on phones?
Yes, it works the same in any modern mobile browser.
Is there a batch mode or an API?
Not yet. For several documents, paste, minify and copy each one for now.
Is it safe for confidential text?
Yes, nothing is transmitted or retained, so it's fine for drafts you haven't shared anywhere.
Can it fix spacing in a CSV or data file?
It works on plain text lines, so simple cases work, though structured formats with meaningful whitespace should be checked carefully afterward.
Does it handle non-breaking spaces and other Unicode spaces?
It targets standard whitespace characters. For non-breaking, thin or ideographic spaces specifically, the text space remover's character coverage is broader.
Why is my multi-paragraph document now a single line?
Because minifying collapses whitespace across line breaks too, paragraph breaks get joined the same way extra spaces do.
What should I use to remove line breaks but keep single spacing between words?
The remove line breaks tool is built specifically for that job and reads more naturally for prose that's meant to become one paragraph.
Does it help before minifying JSON, CSS or HTML for production?
It's built for prose rather than syntax-sensitive formats. Use a dedicated minifier for code, since whitespace can be structurally meaningful there.