HTML to plain text
Turn HTML paragraphs into line-broken plain text: block elements break lines, `<br>` breaks, entities decode, script/style are dropped by default, blocks can be separated by a blank line, and `<a href>` targets can be appended as a numbered list.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
The result can be copied directly.
Paste HTML to see the plain text
Characters: 0 · Lines: 0 · Paragraph / block count: 0
What this tool does
- Extract page copy as plain text for search or summaries.
- Keep paragraph breaks so structure survives a paste into mail or docs.
- Append link targets as a numbered list to keep sources with the notes.
Example
Input
<p>a</p><p>b</p>
Output
a b
Blocks break lines, `<br>` breaks, and link targets are de-duplicated and appended as a numbered list.
Frequently asked questions
Does `<p>a < b</p>` lose content?
No, it returns `a < b`. The tokenizer treats the bare `<` as text while a regex strip would eat the rest.
How do the two line modes differ?
By default blocks are separated by one newline; with blank lines it becomes two. The line count is shown in the stats row.
How are links appended?
Link targets are collected in document order, de-duplicated and appended as a numbered list; with the switch off they only appear in the links field.
What about table text?
It is extracted in document order without column alignment; use HTML to JSON when you need the table structure.
Keywords:html2txtplain textdeveloper