Docomint

Remove Extra Spaces

Collapse repeated spaces and tabs down to single spaces, instantly in your browser.

🔒 Processed on your device

Text copied from a PDF, an old Word document, or a terminal often carries double or triple spaces between words — this collapses them to single spaces without touching your line breaks.

Example: "This has irregular spacing" becomes "This has irregular spacing", with every run of repeated spaces collapsed to one.

How it works

  1. Paste text with irregular spacing
  2. Repeated spaces/tabs are collapsed instantly, on your device
  3. Copy the cleaned-up text

Frequently asked questions

Does this collapse line breaks too?

No — only repeated spaces and tabs within a line are collapsed to one; line breaks are left in place.

Is my text uploaded anywhere?

No — Remove Extra Spaces runs entirely in your browser using JavaScript/WebAssembly. Your text is never sent to a server.

Does this remove leading indentation at the start of a line, like a code block's spacing?

Yes — this collapses any run of repeated spaces or tabs anywhere in the text, including at the start of a line, so it isn't safe to use on indented code. Use it for prose, not source code.

Related tools