Remove Extra Spaces Online

Strip extra, leading, trailing and non-breaking spaces from text in bulk.

100% private. Everything runs in your browser. Your data never leaves your device.

Remove Extra Spaces

What does this tool do?

This tool removes extra spaces from your text: leading and trailing spaces, double spaces between words, and hidden non-breaking spaces (CHAR 160) that plain TRIM misses. It processes your whole list at once in your browser.

How to use Remove Extra Spaces - Free Online Tool

  1. Paste your text, one value per line, or click "Try with sample data".
  2. Choose which spaces to remove (extra internal, leading/trailing, non-breaking).
  3. Click Clean.
  4. Copy or download the cleaned text.

Example

Cleaning padded names:

Before

Name
John Smith
Mary Jones

After

Name
John Smith
Mary Jones

Extra and edge spaces are collapsed to single spaces.

Excel formula alternative

Prefer a formula? You can achieve a similar result with TRIM + SUBSTITUTE:

=TRIM(SUBSTITUTE(A2, CHAR(160), " "))

Plain TRIM misses non-breaking spaces from copied web text. This tool handles them too.

When should I use this tool?

Cleaning names and addresses
Fixing data copied from the web or PDFs
Preparing text for lookups
Removing accidental double spaces
Tidying imported CSV data
Normalizing survey text

Frequently Asked Questions

TRIM removes extra spaces but leaves non-breaking spaces (CHAR 160) common in copied web text. This tool removes those too.

No. Everything runs in your browser.

No, it collapses runs of spaces to a single space and trims the ends; it does not remove spaces between words entirely.

Yes, paste all values one per line.