textcleanups

Strip HTML tags

Paste HTML and get readable plain text, with paragraphs and list items kept on their own lines.

Options

Your text stays in your browser. Nothing is uploaded or saved.

All text tools

Or fix everything at once with the all-in-one text cleaner.

AI-written text

ChatGPT text cleaner
Remove hidden characters, odd spaces and Markdown from AI answers.
Remove em dashes
Replace every — with a comma, period or hyphen.
Remove Markdown
Turn Markdown into plain text: no **, #, links or tables.
AI phrase finder
Highlight overused AI words and phrases.

Lines

Remove line breaks
Turn text broken across many lines back into clean paragraphs.
Remove duplicate lines
Keep the first copy of every line and delete the repeats.
Remove empty lines
Delete blank lines, or cut long gaps down to one.
Sort lines
Sort a list A to Z, Z to A, by length, reversed or shuffled.
Add line numbers
Number every line, your way.
Remove line numbers
Strip numbers and bullets from the start of lines.
Comma separator
Turn a list into comma-separated text, and back.

Spaces and characters

Remove extra spaces
Collapse double spaces, trim lines and replace tabs.
Remove special characters
Strip symbols and keep only letters, numbers and punctuation you choose.
Remove emojis
Delete every emoji, including skin tones, flags and combined emoji.
Remove accents
Turn é into e, ü into u and ß into ss.
Convert smart quotes
Turn curly quotes, long dashes and ellipses into plain text.

Formatting and counting

Case converter
Switch text to sentence case, Title Case, UPPERCASE, camelCase and more.
Find and replace
Replace words or patterns across your text, with regex support.
Strip HTML tags
Turn HTML into clean, readable plain text.
Word counter
Count words, characters, sentences and reading time as you type.
Text diff checker
Compare two texts and see what changed.
Word frequency counter
See which words you use most.
Reverse text
Flip text backwards, by letter, word or line.

How to strip HTML tags

  1. Paste your HTML into the first box. It can be a full page or just a fragment.
  2. Copy the plain text from the result box.

What happens to your HTML

  • Tags are removed, keeping the text inside them. A link keeps its words but loses the address.
  • Scripts, styles and comments are removed completely, including their contents, so no code ends up in your text.
  • Structure is kept as line breaks. Paragraphs and headings are separated by blank lines, <br> becomes a line break, and list items start with a dash.
  • Entities are decoded, so &amp; becomes & and &rsquo; becomes an apostrophe.

The HTML is never run or displayed, only read as text, so it's safe to paste markup from any source.

Common uses

  • Getting readable text out of an HTML email or newsletter
  • Cleaning content exported from a CMS like WordPress
  • Counting words in a web page's content
  • Preparing web content for a plain-text field, like a meta description

Questions

Are links kept?

The link text is kept, but the URLs are removed along with the tags.

Is it safe to paste HTML from an unknown source?

Yes. The markup is treated as plain text and is never loaded, displayed or run in your browser.

Can I convert HTML to Markdown instead?

Not with this tool. It produces plain text. List items are prefixed with a dash, so simple lists will still read correctly in Markdown.