One Tool Instead of Eight Cleanups
Text that arrives from the real world is dirty. Copy from Word and you inherit <p> tags and curly quotes. Copy from a web page and you inherit non-breaking spaces ( ) and zero-width characters that break string comparisons invisibly. Copy from a PDF and every line is broken. Each problem has a one-line fix β if you know the regex. Our Text Cleaner bundles the eight fixes that cover 95% of dirty-text situations behind simple toggles, applies them live, and shows you exactly how many characters were cleaned.
The Error Everyone Hits: "Identical" Strings That Do Not Match
A classic support-ticket bug: two strings look identical but a strict equality check fails. The cause is almost always invisible characters β a non-breaking space, a zero-width space copied from a webpage, or a curly quote where the code expects a straight one. Enable Remove invisible characters and Smart quotes β straight, and the strings match again. This single pair of toggles resolves a whole family of "why doesn't this work" bugs in forms, databases, and JSON.
Two Presets for Speed
- Basic cleanup β trim lines, collapse spaces, fix quotes, strip invisible junk. The safe default for everyday paste-fix-paste workflows.
- Scrub everything β additionally removes line breaks, blank lines, HTML tags, and accents. Use it when you need plain ASCII-style prose, e.g. before running our Readability Checker or pushing text into a CMS.
How Each Operation Works
Accents are removed with Unicode NFD normalization followed by deletion of combining marks β so cafΓ© becomes cafe without touching real letters. HTML is stripped with a tag-matching pattern, smart punctuation maps to its ASCII equivalents (βββ", ββ-, β¦β...), and the invisible-character pass deletes zero-width spaces, soft hyphens, and control codes while preserving genuine newlines until you choose otherwise.
Private by Architecture
Every operation runs in your browser with plain JavaScript string functions. There is no server round-trip at any point, which makes the tool safe for contracts, patient notes, source code, and anything else you would never paste into a random website. Close the tab β the text is gone for good.