gizmobench

Remove Extra Whitespace

Clean repeated spaces and hidden whitespace from copied text with a visible, reversible pipeline. Paste text, review the counts, and copy the result when it looks right.

After0 characters

The cleaned text appears here as you type.

Nothing pasted yet.

Every step is optionalNothing is uploadedNo account, no size cap
Steps
5 on
Before
0
After
0
Changes
0

Paste text into the box on the left. It stays there, and the cleaned copy appears on the right.

Steps, in the order they run

Each one is a switch, and the number beside it is what that step changed in your text. The order is fixed and runs top to bottom, because cleaning is not order free: no-break spaces become ordinary spaces before repeated spaces are collapsed, and a hyphenated word is rejoined while the line break is still there to see.

0 to 10
  • Collapse spacesTwo spaces between words
    The quick brown
  • Windows line endingsCRLF, invisible in every editor
    2 line endings changed
  • Curly quotes and dashesStraightened to plain ASCII
    No change with these steps
What you cannot see is what breaks things. A no-break space looks exactly like a space and stops a line wrapping where it should. A byte order mark at the front of a paste turns into a stray character in a CSV. Windows line endings are invisible until a script reads the file and finds a carriage return on every line. Each of those is its own step here, with its own count, so you can tell what was in the text rather than guess.
Accuracy. Each step is listed in the order it runs and counts what it changed, so nothing happens that you cannot see. The original stays on screen until you copy the result, and every step can be switched off.

Common questions

What whitespace is removed?
The page can collapse repeated spaces and tabs while showing each enabled step and its count.

Each step is listed in the order it runs and counts what it changed, so nothing happens that you cannot see. The original stays on screen until you copy the result, and every step can be switched off.