Web page or HTML snippet to Markdown with lists, tables and code
Strip HTML Tags
Get readable plain text out of HTML, with paragraphs and lists still on their own lines.
Loading tool…
How to use strip html tags
Paste HTML or open an .html file.
Choose how line breaks, list bullets, link URLs and image alt text are handled.
Read the plain text on the right as you type.
Copy it or download it as a .txt file.
What this tool does
- Puts paragraphs, headings, list items, table rows and <br> on their own lines instead of running them together.
- Decodes every named and numeric entity, such as &, é and ’, the way a browser does.
- Drops the contents of script, style and template elements, which are code rather than text.
- Can add bullets or numbers to list items, the URL after each link and the alt text of images.
How the result is verified
A second plain run is compared with the visible text of the parsed page, ignoring whitespace. The tool confirms every visible character made it into the output.
Frequently asked questions
Does it run the scripts in my HTML?
No. The HTML is parsed into an inert document that never runs scripts or loads images, and script contents are left out of the text.
Will and other entities be decoded?
Yes. The browser's own HTML parser reads the markup, so every entity it knows is turned into the character it stands for.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Escape text as HTML entities or decode named and numeric ones
CommonMark and GitHub tables to clean, sanitized HTML
Indent HTML neatly while keeping pre, textarea and script content intact