Extract Text From HTML
Strip HTML tags and decode entities to get clean plain text.
Text Tools Runs in your browser
How do you extract text from HTML?
Strips a page down to its words: tags disappear, script and style blocks are dropped along with their contents, and entities like & decode back to characters. Block elements turn into line breaks, so <p>One</p><p>Two</p> comes out as two lines rather than OneTwo. What remains is plain text fit for a word count or a document.
How to use the Extract Text From HTML
- 1 Paste the full HTML source, head and all.
- 2 Tags vanish; script and style blocks are dropped with their contents.
- 3 Entities decode and each block element starts a new line.
- 4 Copy the plain-text result.
What you can use it for
- Copying article text out of a saved web page.
- Cleaning HTML email into plain text.
- Extracting content for word counts or analysis.
- Removing markup before importing into a document.
Frequently asked questions
Is the text inside links and bold tags kept?
Kept, yes. Inline markup is unwrapped rather than deleted, so a link contributes its label text and bold words appear as plain words.
What happens to the contents of script and style blocks?
They are removed along with their tags. JavaScript and CSS never belong in extracted prose, so both are cut wholesale.
Will paragraphs run together into one line?
No. Paragraphs, headings, list items and other block elements each end with a line break, so the output keeps a readable, scannable structure.
Related tools
More Text Tools
More tools like this:
All Text Tools