Skip to content

Web

Whitespace cleaner

Make pasted text easier to read by choosing the spacing changes you want.

Line endings become line feeds. Choose only the cleanup actions you need; this may alter intentional spacing in code or tables. Text stays in your browser.

Worked example

Clean text copied from a document.

Example input

  Hello   Noida  

Expected result

With trimming and repeated-space cleanup enabled, the output is Hello Noida.

Before using your result

Preserve spacing in source code, aligned tables and poetry when spaces carry meaning.

How this works

Choose whether to trim each line, collapse runs of spaces and tabs, and collapse repeated blank lines.

The result uses standard line feeds. Avoid cleaning code or tables when spaces are meaningful.

For text up to 1 million characters.

Questions

Can I keep blank lines?+

Yes. Turn off the blank-line option.

Will it alter code indentation?+

It can. Turn off trimming and space collapsing when indentation matters.

Is text uploaded?+

No. Processing happens in your browser.