Text Cleaner
Clean text with toggleable options.
About this tool
Paste messy text, switch on the clean-ups you want and press Run. Trim lines and Collapse spaces are on by default; seven other options are off until you enable them.
How to use
How it works
The options run in a fixed order: HTML, then Markdown, URLs, emails and emojis are removed first, then spaces are collapsed, empty lines are dropped, lines are trimmed, and lowercase is applied last. Because removals leave gaps, leaving Collapse spaces and Trim lines on cleans up after them.
Worked example
A web paste
- Input
- Hello <b>World</b> https://x.com bye
- Output
- Hello World bye
- Walkthrough
- With Trim, Collapse spaces, Remove empty lines, Remove HTML and Remove URLs on, the tag and link are deleted, spacing is tidied, the blank line goes and each line is trimmed.
Limitations
- Strip Markdown also removes characters such as hyphens, asterisks, underscores and pipes everywhere in the text; leave it off for normal prose, and check the result by eye.
- Remove HTML does not decode entities.
- Options are all-or-nothing for the whole text.
Questions
What does the text cleaner do by default?
In what order are the clean-ups applied?
Is it safe to use Strip Markdown?
Features
- Nine switchable clean-ups
- Fixed, predictable order
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
HTML in 100 Seconds
Fireship
Quick HTML mental model next to text transform tools.
Watch on YouTubeLearn JSON - Full Crash Course
freeCodeCamp.org
Structured text formats often sit next to plain-text tools.
Watch on YouTube
- RFC 3629 — UTF-8
IETF
UTF-8 rules behind character-counting tools.
- Accessibility
MDN
Readable text and case choices matter for inclusive copy.