Remove Extra Spaces
Merges repeated spaces into one, removes spaces before commas and periods, and adds a space after commas, semicolons, colons, exclamation and question marks.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when text copied from a PDF, Word or chat has messy spacing and commas or periods standing apart, before it goes into a contract, a post or a customer email.
Tabs are collapsed just like spaces. If the text is data copied from Excel with tab-separated columns, consecutive empty cells will merge and shift columns, so handle that data in the spreadsheet instead.
How to use
- Paste your text into the left box.
- Choose whether to fix spacing around punctuation.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Related tools
More Text tools
Strip HTML TagsRemoves HTML tags, scripts and styles, decodes special characters, and keeps plain text with sensible line breaks.Replace Smart Quotes with Straight QuotesConverts curly double quotes, curly single quotes, long dashes and ellipsis characters into plain typed characters, avoiding errors when pasting into code.Shuffle Lines RandomlyShuffles the order of lines using your browser's random numbers, useful for making groups or setting a presentation order.Add Line NumbersAdds a sequence number at the start of each line in styles like 1. 1) 01, skips blank lines, or removes existing line numbers.Remove Empty LinesRemoves every blank line, or line with only whitespace, from your text.Find and Replace TextFinds and replaces text in bulk, with case-sensitive matching, whole-word matching and regular expressions.
See all text tools