About Strip HTML Tags
Paste the source of a web page, an email template or a CMS export and get the words without the markup. Entities such as & and é become the characters they stand for, scripts and styles are dropped, and spacing is tidied the way a browser would show it.
Paragraphs and headings are kept apart by a blank line, list items get a dash or their number, and table cells are separated by tabs so they paste into a spreadsheet. Turn on link addresses to keep the destination of every link in brackets.
How it works
- The HTML is read by the browser’s own parser into a detached document that is never shown. In it scripts do not run, images and other files are not loaded, and event handlers never fire.
- The text is then collected in reading order. Script, style, template, head, media and SVG content is skipped, and source white space is collapsed except inside pre blocks.
- Headings, paragraphs, lists and tables end with a blank line, other blocks and <br> with a line break. With line breaks off, all of these become single spaces.
Questions
Is it safe to paste HTML from an untrusted page?
Yes. The markup is parsed into a separate document that is never displayed, so nothing in it runs or loads, and the result is plain text shown in a text box.
What happens to images?
They are dropped, including their alt text. Only text content is kept.
Is hidden text removed?
No. Text hidden with CSS or the hidden attribute is still part of the source, and this tool does not apply styles, so it is included.
How large can the HTML be?
Up to 5 MB of source, which covers very long pages. Everything happens in this browser tab.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.