File Converters

HTML to Plain Text

Strip HTML tags and extract clean plain text with entity decoding and link preservation

Run tool

The HTML to Plain Text tool converts pasted HTML into readable plain text. It removes HTML tags while keeping the surrounding text, decodes common HTML entities such as & and ©, and cleans up extra whitespace. Line-break preservation is on by default, so paragraphs, headings, list items, and table rows become line breaks in the output. Link preservation is also on by default: for links with a quoted href, the link text stays and the URL appears in brackets after it. Script and style blocks are removed entirely, including their contents, when script removal is enabled. You can turn any of these options off with the checkboxes. The tool works on text you paste into the input box; it does not fetch or validate links. After you click Run, the result panel shows the converted plain text. Use it to clean up copied web content, prepare text for editing, or extract readable content from HTML snippets.

Instructions

  1. Copy the HTML source you want to convert.
  2. Paste the HTML into the Text input box.
  3. Choose whether to keep line breaks, keep links, or remove scripts by checking or unchecking the options.
  4. Click Run to convert the HTML to plain text.
  5. Review the output in the result panel and copy it if needed.

Examples

  • Input: <p>Hello <b>world</b>!</p> Output: Hello world!
  • Input: <a href="https://example.com">Example</a> Output: Example [https://example.com]
  • Input: <h1>Title</h1><p>First paragraph.</p><p>Second paragraph.</p> Output: Title\nFirst paragraph.\nSecond paragraph.

FAQ

Does the tool fetch or validate links?

No. Link handling only preserves the href that is already present in the text you paste. The tool does not fetch, validate, or resolve links.

What happens to script and style content?

When script removal is enabled, script and style blocks are removed entirely, including their contents. This option is on by default.

Are HTML entities decoded?

Yes. The conversion decodes a defined set of named entities, including common punctuation, spacing, currency, copyright, registered, and trademark entities, as well as decimal numeric character references.

How does line-break preservation work?

When enabled, paragraph, division, heading, list-item, table-row, blockquote, and break elements become line breaks. When disabled, those tags are removed but their contents are kept without special line-break conversion.

What if I paste text without any HTML tags?

Plain text is accepted and converted as-is. The tool removes tags only where they exist and cleans up extra whitespace in the output.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.