Text Cleaner
Paste the text and tick the cleaning steps you want. The steps run in a fixed order, so the same settings always give the same result. The panel shows how many characters and lines the text had before and after cleaning. The text you paste never leaves your browser.
Text Cleaner runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.
How to use it
- Paste the text Paste the text into the Input box, then tick the cleaning steps you want. They are grouped as spaces and lines, characters, and HTML. The result updates as you tick.
- Know the order Steps always run in one fixed order: HTML tags come off first, and removing all spaces runs last. The same ticks always give the same result, and nothing is sent to a server.
- Compare and copy Check the Characters and Lines counts before and after cleaning. When the result looks right, press Copy result. Text longer than 1,000,000 characters is not cleaned.
Questions
Why do the cleaning steps run in a fixed order?
The order changes the outcome. Removing HTML tags before decoding entities keeps <b> as visible text rather than a tag, and removing all spaces runs last so the earlier steps still see the spaces between words.
How are Windows line breaks and characters counted?
Windows line breaks (CRLF) are changed to plain line breaks before any step runs, and the result has no trailing line break. Characters are counted by code point, so a simple emoji counts as one character.