Text Cleaner / Strip Formatting
Strip HTML tags (with real entity decoding), Markdown, and special characters from text — plus a dedicated option to normalize smart quotes and dashes to plain ASCII, without merging words together.
How to Use This Tool
Paste text with HTML, markdown, or formatting artifacts into the input area.
Paste text with HTML, markdown, or formatting artifacts into the input area.
Check any of the 10 real options
Remove HTML tags (now genuinely decodes entities like ’/— first), Remove Markdown, Remove URLs, Remove email addresses, Remove numbers, Remove special characters, Normalize smart quotes & dashes to ASCII, Normalize whitespace, Remove blank lines, Trim whitespace.
Pro Tip
For genuine smart-quote and dash-to-ASCII conversion, use the dedicated 'Normalize smart quotes & dashes to ASCII' checkbox rather than 'Remove special characters' — the former converts, the latter removes (as a space) anything outside a standard character set, which is a different, blunter operation. Combine 'Remove HTML tags' with the typography-normalization option for the most complete plain-text conversion of pasted web or rich-text content.
About This Tool
When to Use
- A web editor pasting scraped article content into a CMS's plain-text field, stripping leftover '<div>' and '<span>' tags along with any literal HTML entity codes.
- A writer cleaning up text copied from Word or Google Docs, converting smart quotes and em-dashes to plain ASCII for a system that only accepts basic punctuation.
- A developer cleaning form-submitted user text before storing it in a database, safely removing characters outside an expected set without accidentally merging words.
Key Details
Text cleaner strips HTML tags, Markdown syntax, URLs, emails, numbers, and special characters from a block of text using ten independent checkboxes, converting it down toward clean plain text — the to...
Worked example
Paste '<p>The company’s Q3 report showed <strong>15% growth</strong>—a record high.</p>' and check only 'Remove HTML tags': the tool now returns 'The company’s Q3 report showed 15% growth—a record high.' — tags stripped AND the entity codes genuinely decoded into a real apostrophe and em-dash. Add 'Normalize smart quotes & dashes to ASCII' to get a fully plain-ASCII result: 'The company's Q3 report showed 15% growth--a record high.' If you instead check 'Remove special characters' on text where a dash sits directly between two words with no space ('growth—a'), the result is now 'growth a' (a space in its place) — not the old 'growtha' word-merging bug.
Interpreting your result
HTML entity codes like ’ or & are now decoded automatically whenever 'Remove HTML tags' is checked — you shouldn't see literal entity codes in your output anymore. If you want ASCII-only punctuation (no curly quotes, em-dashes, or ellipsis characters), enable the dedicated 'Normalize smart quotes & dashes to ASCII' option. If 'Remove special characters' is enabled, matched characters are now replaced with a space rather than deleted, so adjacent words should no longer run together.
Text Cleaner / Strip Formatting FAQ
Why do I need to strip HTML from text?
Text copied from websites often contains hidden HTML tags, CSS classes, and formatting codes. When you paste such text into a plain-text field, CMS, or database, these tags can appear as literal characters or break the layout. Stripping HTML produces clean, readable plain text.
What kinds of formatting does this tool actually remove?
Checking the boxes gives you: HTML tags (any '<...>' pattern, now with common named and numeric entities like ’/—/' genuinely decoded first, then tags removed), Markdown syntax (headers, bold, italic, strikethrough, code spans/blocks, links, images, list markers, blockquotes), URLs, email addresses, digits, characters outside a standard set of letters/numbers/basic punctuation (now replaced with a space rather than deleted), and — new — a dedicated smart-quote/dash-to-ASCII normalization option.
Does removing HTML tags preserve paragraph structure?
Not automatically — this is still a real limitation worth knowing. HTML tags are deleted outright with nothing inserted in their place; block tags like <p>, <br>, and <div> are not converted into line breaks. If your source HTML already had actual newline characters between blocks (common in hand-formatted or pretty-printed HTML), those survive since they were never inside a tag to begin with. Tightly packed, minified, or single-line HTML can still lose its paragraph breaks once tags are stripped. HTML entities, however, are now genuinely decoded as part of this same option — that specific limitation is fixed.
Can I use this to clean up copied Word or Google Docs text, including smart quotes and dashes?
Yes — genuinely now. Check the new 'Normalize smart quotes & dashes to ASCII' option to convert curly quotes ('‘'/'’'/'“'/'”'), em-dashes, en-dashes, and ellipsis characters to their plain ASCII equivalents, as a real, non-destructive conversion — separate from 'Remove special characters,' which still deletes (well, now replaces with a space) rather than converts.
Is this tool safe for pasting confidential documents?
Yes — all cleaning happens locally in your browser. Your text is never uploaded to a server.
Can I use this to strip Markdown formatting from text?
Yes. Enable the 'Remove Markdown' option to remove syntax like **bold**, *italic*, # headings, [links](url), and code backticks, leaving only the plain text content. This is useful when converting a Markdown document to plain text for an email, SMS, or system that doesn't render Markdown.
Master Your Entire Toolkit
Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.
Built and reviewed by the Toolzip Team · Based on OWASP — XSS Prevention Cheat Sheet