Tools

Text tool

Whitespace cleaner

Clean pasted text by trimming line edges, collapsing repeated spaces, and normalizing blank lines. Processing stays inside the browser.

Input

Messy text

Output

Clean text

Cleanup modes

Tidy combines three operations: trim both ends of every line, collapse repeated spaces or tabs inside a line, and reduce a run of blank lines to one. Trim lines keeps internal spacing; Collapse spaces keeps line breaks; Remove blank lines deletes empty rows. Choose the narrowest operation that fixes the problem so intentional formatting survives.

Useful cases

Use it for notes copied from PDFs, email drafts with padded lines, CMS text, support replies, and plain-text lists that acquired inconsistent tabs or blank lines. Compare the result before replacing the source. For prose, Tidy is a useful preview; for a table or list, trimming line edges alone is usually safer.

Privacy

Whitespace cleanup runs locally in this browser tab. The tool does not upload, log, or send the text to a server. Copying the result is an explicit action; after you paste it into an email, CMS, or document service, that destination controls storage and sharing.

Limits

Whitespace can carry meaning in Python, YAML, Markdown code blocks, poetry, ASCII art, and fixed-width reports. Collapsing tabs can also change column alignment. The tool does not detect those formats or restore removed spacing, so keep an untouched copy and use only Trim lines when indentation or layout might be significant.