Online text cleaner
Clean and prepare text in your browser: spaces, line breaks, case, lists, and email or URL extraction. Your content is not sent to the server.
Paste text to clean it, change case, prepare lists, or extract emails and URLs without sending it to a server. You can combine cleanup, case transformations, deduplication, natural sorting, numbering, and line splitting/joining. Original input and result stay separate, and the original is held only in this tab’s memory so it can be restored.
Result summary
No resultBefore and after comparison
| Metric | Before | After | Difference |
|---|---|---|---|
| Characters | — | — | — |
| Words | — | — | — |
| Lines | — | — | — |
Applied operations
- Process text to see the operations applied.
Warnings
- No warnings.
Details
- No additional metrics.
TXT is available in all four modes; CSV and JSON are enabled for Lines and lists and Extract. Everything is generated locally and filenames never contain user text. If text, mode or options change, the previous result remains visible as outdated and actions stay disabled until you process again.
How cleaning, case, lists and extraction work
The cleaning pipeline has a fixed order: line endings → invisible characters → tabs → line trimming → repeated spaces → blank lines → conservative line joining → diacritics. Change case applies one case transformation first and optionally removes diacritics afterwards.
Lines and lists can split separators into entries, trim, remove empty entries and duplicates, sort with Intl.Collator, reverse, number and join again. Deduplication always preserves the first occurrence.
Extract finds common email addresses or URLs with protocol/www. Email duplicates are compared case-insensitively; URLs use exact comparison. Clearly external trailing punctuation is removed without opening links.
Conservative line joining avoids joining after sentence endings, list items, paragraph boundaries or short heading-like lines. It is a heuristic and cannot perfectly reconstruct every PDF.
Privacy and limits
Pasted content is never sent to PHP, endpoints, AI, analytics, logs, cookies or local storage. Original and latest result exist only in memory while the page is open. The hard limit is 1,000,000 characters and a large-text warning starts at 200,000. Case transformations are mechanical and email/URL regexes are practical patterns, not universal validators.
Improve this calculator
Found an error or missing a feature?
Send us the example so we can review this calculator and turn real cases into improvements or automated tests.