Strip HTML Tags From Text
Paste HTML or rich markup and this tool returns clean, readable plain text with every tag removed. Script and style blocks are deleted along with their contents, common entities like & are decoded back to real characters, and block tags such as paragraphs and list items can be turned into line breaks so the structure survives.
How to strip HTML tags
- Paste your HTML into the HTML input box, or click Load sample to try it.
- Leave Decode entities on to turn codes like & back into real characters.
- Leave Keep line breaks on to map paragraphs and lists to newlines, or uncheck it to flatten to one line.
- Read the Plain text output box, which updates as you type.
- Use Copy or Download to save the result as stripped.txt.
Examples
Strip a paragraph
<p>Hello <b>world</b></p>
Hello world
Remove a script block
<p>Visible</p><script>track();</script>
Visible
Decode entities with tags removed
Fish & chips £5
Fish & chips £5
Frequently asked questions
What does stripping HTML tags do?
It removes every tag such as <p>, <a> and <span> from your text and returns just the readable content. Inline tags are deleted in place, and script and style elements are removed together with everything inside them.
Does it decode HTML entities?
Yes, by default. Named entities such as &, <, >, ", and £, plus numeric references like ' and hex codes, are turned back into the real characters. Uncheck Decode entities to keep them exactly as written.
Can it keep paragraphs and line breaks?
Yes. With Keep line breaks on, block tags like <br>, </p>, </div> and </li> become newlines so the plain text keeps its paragraph structure. Turn it off and every tag becomes a space instead, flattening the text onto one line.
Will it remove dangerous scripts and styles?
Yes. Complete <script> and <style> elements are removed along with everything between their opening and closing tags, so leftover JavaScript and CSS never appear in the output. It cleans text for reading, though, and is not a substitute for a security sanitizer.
What happens to a stray less-than sign?
A lone < or > that is not part of a real tag, such as in 2 < 3, is left untouched. Only valid tags, HTML comments and script or style blocks are matched and removed.
How is whitespace handled in the result?
Whitespace is tidied last. With line breaks kept, runs of spaces collapse to one, each line is trimmed, and multiple blank lines squeeze down to a single gap. With line breaks off, all whitespace collapses to single spaces and the ends are trimmed.
Can I use it on a full web page or email?
Yes. Paste the full HTML source of a page or an email and it strips the markup down to the visible text. Very long documents are handled in one pass, and the character count under the output shows the size of the result.
Does it change the words themselves?
No. Only tags, comments, script and style blocks and entity codes are touched. The letters, numbers, punctuation and casing of the actual text are left exactly as they were.
Is my text private?
Yes. Stripping runs entirely in your browser and nothing is uploaded to a server, so the HTML you paste never leaves your device.
Learn more
- HTML tags, entities and plain text
How HTML tags, script blocks and character entities work, and the safe order for turning marked up text into clean plain text.
Related tools
Remove Line Breaks
Remove line breaks and paragraph breaks from text online. Flatten copied text into one line, keep spaces tidy, then copy the result. Free and private.
Whitespace Remover
Remove extra whitespace from text online. Collapse double spaces, strip all spaces and tabs, trim lines, and drop blank lines. Free, private, instant.
Word Counter
Free online word counter. Paste text to count words, characters, sentences, paragraphs and reading time instantly. Works in your browser and stays private.
Find and Replace
Find and replace text online with literal or regex search, case sensitivity, and replace first or all. See a live count of changes. Free and private.
Acronym Generator
Turn any phrase into an acronym from the first letter of each main word. Skip small words like the and of, keep them, or add dot separators.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.