ToolNova

Remove Extra Spaces

Collapse repeated spaces and tabs, and trim leading/trailing whitespace from every line.

How It Works

  1. 1Paste your text.
  2. 2Extra spaces and blank lines are cleaned up automatically.

Features

  • Collapses repeated spaces and tabs
  • Trims leading and trailing whitespace

Privacy

All text processing happens instantly in your browser. Nothing you type is ever sent anywhere.

About Remove Extra Spaces

This tool collapses runs of repeated spaces and tabs down to a single space, and trims whitespace from the start and end of each line, cleaning up the kind of irregular spacing that comes from copying text out of a PDF, an old typewriter-style document, or a webpage with inconsistent formatting.

A common source of extra spaces is the old convention of typing two spaces after a period, a habit left over from monospaced typewriter fonts, which most modern style guides and web typography no longer call for. Pasted text also frequently carries invisible tabs or non-breaking spaces used for layout in the original document, which look fine in their source but create ragged spacing once the text is dropped somewhere else.

It's a quick fix before publishing text to a website, pasting into an email, or feeding text into another tool that treats spacing literally, since inconsistent whitespace can otherwise throw off word wrapping, search matching, or formatting downstream.

Frequently Asked Questions

Yes, any run of repeated spaces, including a double space after a period, is collapsed down to a single space.