Strip HTML Tags
About this tool
About Strip HTML Tags
Need the words from a web page, an email template, a CMS export or a database field full of markup? Paste the HTML and get plain text that reads the way the page did. Tags are removed, but structure is respected: paragraphs and headings are separated by a blank line, line breaks stay line breaks, list items become lines starting with a dash (numbered lists keep their numbers), table cells are separated by tabs so rows paste neatly into a spreadsheet, and whitespace is collapsed the way a browser does it. Entities such as &, , é and ’ are decoded into real characters. Scripts, styles, the head section, SVG and form controls are dropped entirely rather than leaving code behind, and images are replaced by their alt text. The HTML is parsed as text and never loaded, so nothing in it can run or fetch anything. Extra spaces and blank lines are tidied afterwards, and the other cleaners are one tick away.
Built and maintained by Abhi JainUpdated
How to Strip HTML Tags
- 1
Paste the HTML
Paste HTML source or open an .html file in the Text box.
- 2
Check the result
Strip HTML tags is on, and spaces and blank lines are tidied. Adjust Empty lines or Trim if needed.
- 3
Copy the text
Copy or Download the plain text.
Strip HTML Tags: questions and answers
What happens to links?
The link text is kept and the URL is dropped. To keep links as Markdown, convert with HTML to Markdown instead.
Is script and style content removed?
Yes. Everything inside <script>, <style>, <head>, <template>, <noscript> and <svg> is removed, not just the tags, so no code ends up in your text.
Are HTML entities converted?
Yes. Numeric references, the HTML 4 named entities and the common HTML5 additions are decoded: & becomes &, a space and ’ an apostrophe.
Is it safe to paste HTML from an unknown source?
Yes. The HTML is read as text by a parser in this page and never inserted into it, so scripts can't run and images can't load.
More Text Cleaner presets
Related tools
- Sort LinesSort lines alphabetically, naturally, by number or by length; reverse or shuffle them, and remove duplicates.
- Find and ReplaceFind and replace text with several rules at once, plain or regex, match case, whole words and case-preserving replacement.
- Whitespace Visualizer & CleanerReveal tabs, NBSP, zero-width characters and mixed line endings, then clean them.
- Word CounterCount words, characters, sentences and paragraphs, with reading time, keyword density and limits.
- PDF to TXTExtract the text of a PDF into a plain .txt file, with page separators.