Text Formatter
Paste any text. Clean whitespace, change case, sort lines, dedupe, normalize endings — all in your browser, no upload.
- Runs in browser
- No signup
- No tracking
How to use Text Formatter
Paste your text into the input pane.
Pick a transformation (case, sort, dedupe, trim).
Tweak options: case sensitivity, line ending, sort order.
Copy the result or download as a .txt file.
When to use it
Cleaning a list of emails copied from a doc.
Sorting log lines alphabetically before a diff.
Removing duplicate items from a paste-dump.
Converting MIXED Case headers to snake_case.
Stripping trailing whitespace before committing.
What it fixes
Inconsistent line endings breaking shell scripts.
Duplicate entries hidden in long lists.
Manual case conversion across hundreds of lines.
Trailing whitespace that diff tools highlight as noise.
Zero-width characters and tabs sneaking into pasted text.
About Text Formatter
Text Formatter is a Swiss-army utility for the messy text that shows up in every developer's day: log dumps, CSV columns, comma-separated lists, copy-paste from PDFs. Instead of writing one-off scripts, you click a button.
Every transformation uses native browser APIs — no library bloat, no server round-trip. The whole tool ships in a few KB and runs offline once loaded.
References: MDN — String.prototype.normalize · Unicode TR #15 (whitespace)
Frequently asked
Is my text sent to a server?
No. Every transformation runs locally in your browser. Your text never leaves the page.
What line ending does it normalize to?
By default it converts CRLF (Windows) and CR (old Mac) to LF (Unix). Switch in the toolbar if you need CRLF output.
Does sort handle Unicode correctly?
Yes — sorting uses the browser's Intl.Collator for proper locale-aware comparison, including accented characters.
Can I chain transformations?
Yes. Apply trim, then dedupe, then sort — each click runs on the current output. Use Reset to start over.
Is there a size limit?
No hard cap. Operations stream through native string APIs, so multi-megabyte inputs are fine on a modern browser.