MMaster Tools
TextRuns on your device

Remove Extra Spaces

Collapse runs of spaces and tabs into one and trim leading and trailing whitespace from every line.

How it works

  1. 1

    Paste your text — the clean version appears right away.

  2. 2

    Every line is trimmed and any run of spaces or tabs is collapsed into one space.

  3. 3

    Copy or download the tidy result. No data leaves your browser.

Questions

What counts as an extra space?

Any sequence of two or more consecutive space or tab characters within a line is compressed to a single space. Leading and trailing whitespace on each line is also removed.

Are blank lines removed too?

No. Only extra whitespace within and around each line is cleaned up. Blank lines stay in place.

Does it touch my line endings?

Windows-style CRLF line endings are normalised to plain LF, but otherwise the structure of your text is preserved.

Is my text sent anywhere?

No. All processing happens locally in your browser. Nothing you paste is ever uploaded.

Word Counter

Word Counter

Count words, characters, sentences, and paragraphs as you type, with reading and speaking time.

Character Counter

Character Counter

Count every character in your text — total and without spaces — as you type.

Sentence Counter

Sentence Counter

Count sentences and see average words per sentence update as you type.

Paragraph Counter

Paragraph Counter

Count paragraphs and get average sentences, words, and characters per paragraph.

Reading Time Estimator

Reading Time Estimator

Estimate how long it takes to read your text at an adjustable reading speed.

Speaking Time Estimator

Speaking Time Estimator

Calculate how long it takes to deliver your text aloud at a chosen speaking pace.

Uppercase Converter

Uppercase Converter

Convert any text to uppercase instantly, with full support for accented and international characters.

Lowercase Converter

Lowercase Converter

Convert any text to lowercase instantly, handling accented and international characters correctly.