Trim, collapse, and clean whitespace from text. Free, private, runs in your browser.
100% private — your files never leave your browser. All processing happens locally on your device.
More than you might think. Besides obvious spaces and tabs, text often carries invisible characters that cause subtle bugs: zero-width spaces from Word, byte-order marks (BOM) from saved files, soft hyphens from PDFs, left-to-right marks from localization systems, and inconsistent line endings (LF vs CRLF vs CR). This tool cleans all of them in one pass.
Three distinct operations: trim removes leading and trailing whitespace on each line (or the whole text); collapse replaces runs of multiple spaces with a single space; normalize converts tabs to spaces (or removes them) and unifies line endings. Apply one or all of them — the tool composes them cleanly.
Invisible Unicode characters break things in surprising ways: URLs silently fail to match, diffs show phantom changes, API requests get rejected with opaque errors, and code copy-pasted from blog posts throws syntax errors despite looking identical. Stripping zero-width, BOM, and directional marks eliminates an entire class of 'it works on my machine' problems.
Yes. Trimming is a pure string transformation running locally in your browser. Paste sensitive documents, proprietary data, or anything else — nothing is uploaded.
Only if you enable 'Collapse consecutive spaces'. By default only leading and trailing whitespace on each line is removed.
Strips zero-width space, BOM, soft hyphen, and other invisible Unicode marks that often get pasted from Word or Notion. These characters look clean but break diffs, URL encoding, and code paste.
LF for macOS, Linux, and modern web. CRLF for legacy Windows workflows. CR for classic Mac (rarely needed). The tool always normalises first, so you get a consistent result regardless of the input mix.