Remove HTML Tags from Text

Paste HTML and get readable plain text back, with the scripts, styles, and comments dropped too.

Plain text

Paste HTML into the box and this tool removes the tags, leaving the words behind. It clears out more than the visible markup too, since scripts, style blocks, and comments all go with their contents rather than dumping code into the middle of your text.

Line breaks are the difference between readable and unreadable

Strip tags naively and a well structured article collapses into one enormous paragraph, because the tags were the only thing separating anything. That is why the line break option is on by default. Closing tags for paragraphs, divs, list items, headings, table rows, and blockquotes each become a real line break, and a list item also picks up a dash at the front so bullets still read as bullets.

Turn the option off when you want the words with no structure at all, which is occasionally what you need for a single line field or a search query. Most of the time leaving it on gives you something a person can actually read.

Entities and the double encoding trap

HTML writes certain characters in escaped form, so an ampersand appears in the source as & and a non breaking space as  . Remove the tags without decoding those and your plain text is littered with codes where punctuation should be. Decoding is on by default and turns them back into the characters they stand for.

One thing to watch. If your source was already double encoded, which happens when HTML gets escaped twice on its way through a system, a single pass leaves you with & where you wanted an ampersand. Send the result back to the input and run it again to finish the job.

Keeping the links you would otherwise lose

Stripping an anchor tag keeps the words a reader clicks on and throws away where they went, which is often the useful half. Switch on the link option and each one comes back as the link text followed by its address in brackets, so nothing is lost when you archive a page as plain text.

It reads a little cluttered on link heavy content, so it is off by default. For reference material, documentation, or anything you plan to check later, it is worth turning on.

What this is not

This converts HTML to plain text, not to Markdown. Headings lose their level, bold and italic disappear entirely, and tables come out as rows of text without their column structure. If you need those distinctions preserved, an HTML to Markdown converter is the tool for that job, not this one.

Within plain text, though, the result is genuinely clean. Two whitespace options tidy up the spaces and blank lines that stripping tags always leaves scattered through the output, which is normally the part you would be fixing by hand afterwards.

What you get

Scripts and styles removed

Code inside script and style blocks goes with the tags instead of landing in your text.

Comments cleared

HTML comments are stripped along with everything inside them.

Structure preserved

Paragraph, list, heading, and table row endings become real line breaks.

Entity decoding

Escaped characters turn back into the punctuation they represent.

Optional link URLs

Keep each link address in brackets after its text.

Whitespace cleanup

Collapse the runs of spaces and blank lines that stripping tags leaves behind.

Where people use it

Repurposing web copy

Pull the text out of a page you copied without dragging the markup along.

Email templates

Produce the plain text version of an HTML email from its source.

CMS migrations

Strip legacy markup out of content before moving it into a new system.

Frequently asked questions