Skip to content
OnlineToolStudio

Remove Extra Spaces

runs in your browserno sign-upfree

Remove double spaces, tabs, spaces at line ends and extra blank lines from your text.

126 chars
23 characters removed

About this tool

This tool cleans up messy spacing: double spaces between words, tabs, spaces at the start and end of lines, and runs of empty lines. It is useful for text copied from websites, Word documents or spreadsheets before you paste it into a form, an email or your code.

How to use

  1. Paste your text into the Input box.
  2. Choose what to clean: multiple spaces, spaces at line ends, and blank lines.
  3. The cleaned text appears instantly, with the number of characters removed. Copy or download it.

FAQ

Which spaces are removed?

Runs of spaces and tabs become one space, and spaces at the start and end of each line are removed. Invisible non-breaking spaces (common in text copied from websites) are treated as spaces too.

Can I keep the indentation at the start of lines?

Yes. Untick "Trim spaces at line start and end" — the line breaks and indentation are then kept.

Is my text uploaded anywhere?

No. The text is cleaned in your browser, so it never leaves your device.

Related tools

All tools