Text Cleaner

Remove extra spaces, tabs and blank lines.

Also called: remove extra spaces, clean up text.

FreeNo sign-upRuns in your browser
TEXT & WRITING

Text Cleaner

Remove extra spaces, tabs and blank lines.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Text Cleaner (14 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Text Cleaner

Remove extra spaces, tabs and repeated blank lines, remove all blank lines, or just trim each line — handy for text copied from websites, PDFs and spreadsheets.

How to use the Text Cleaner

  1. Enter your textType or paste your text.
  2. Pick the optionsclean (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the Text Cleaner gives for it (produced by the tool itself, not typed by hand).

Input text
Café Olé opened on 12 March. Delivery is free.
Clean
Extra spaces and repeated blank lines

Result:

Café Olé opened on 12 March.

Delivery is free.

Good to know

What you need
You type or choose: Input text
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Will it join lines?

No; use Remove Line Breaks.

Does it change words?

No, only spaces and blank lines.

More tools in Text & Writing

See all Text & Writing tools