Skip to content
Tools

HTML to Text

Strip HTML to readable plain text, keeping paragraph and list breaks.

Local
Plain text

What this tool does

This tool turns HTML into readable plain text. It removes tags, drops scripts and styles, decodes entities, and keeps paragraph and list breaks so the result reads naturally.

How it handles structure

Block elements such as headings, paragraphs and list items become line breaks, and <br> becomes a newline. List items are prefixed with a dash. Script, style and comment content is removed entirely rather than shown as text.

Why testers reach for it

When an assertion needs the text a user actually sees, not the surrounding markup, this gives you that text. It is handy for turning a rendered fragment into the expected string for a test, or for reading an HTML email or page body as plain text.

Common use cases

  • Deriving the expected visible text for an assertion from an HTML snippet.
  • Reading an HTML email or page body as plain text.
  • Stripping markup from scraped or copied content.

Frequently asked questions

Does it run the HTML?
No. It parses the markup as text only. Nothing is rendered, no scripts run, and no resources are loaded.
What happens to lists and headings?
Block elements become line breaks and list items get a leading dash, so the text stays readable.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.