Home › Text Tools › Strip HTML Tags

Strip HTML Tags

Paste HTML code or upload an .html file to get clean, readable plain text. Paragraphs, line breaks and lists are kept, entities like & are decoded, and scripts, styles and comments are removed. Everything happens in your browser.

Last updated:

0 characters

0 characters

Advertisement
Advertisement

How to use the Strip HTML Tags

  1. Paste your HTML into the left box, or click Open file to load an .html or .htm file.
  2. Choose the options: keep line breaks, decode entities, remove scripts and styles, show link URLs and more.
  3. Read the plain text on the right. It updates instantly, or press Strip tags.
  4. Copy the text or download it as a .txt file.

What gets removed and what is kept

In the HTMLIn the plain text
<p>, <h1>–<h6>, <blockquote>, <table>Text separated by a blank line
<div>, <section>, <tr>, <li>Starts on a new line
<br>A line break
<ul><li> / <ol><li>• bullet or 1. 2. 3. numbering (nested lists are indented)
<td>, <th>Cells separated by a tab, so you can paste the result into a spreadsheet
<pre>, <textarea>Spacing and line breaks kept exactly
<b>, <span>, <a> and other inline tagsRemoved, text kept (optionally followed by the link URL)
<img alt="…">Removed, or [Image: alt text] when that option is on
<script>, <style>, <noscript>, <template>Removed together with their content
<head>, <meta>, comments, <svg>, <iframe>, form fieldsRemoved

Common HTML entities

With Decode entities turned on, every named and numeric entity is converted to its character. These are the ones you will meet most often:

EntityCharacterMeaning
&amp;&Ampersand
&lt; / &gt;< / >Less than / greater than
&quot; / &#39;" / 'Double / single quote
&nbsp;(space)Non-breaking space, output as a normal space
&rsquo; or &#8217;’Curly apostrophe
&ndash; / &mdash;– / —En dash / em dash
&hellip;…Ellipsis
&copy; / &reg; / &trade;© / ® / ™Copyright, registered, trademark
&euro; / &pound;€ / £Euro, pound sign

Tips

  • Email newsletters and Word documents are full of nested tables and inline styles; the text still comes out clean, with table cells separated by tabs.
  • Want Markdown instead? If you need to keep headings, bold text and links as formatting, use the HTML to Markdown converter.
  • Getting one long line? Make sure Keep line breaks is on. Turn it off when you need a single line of text, for example for a meta description.

Frequently asked questions

How do I remove HTML tags from text?

Paste the HTML into the input box. The tool parses it like a browser would, throws away every tag, comment, script and style, and shows only the visible text on the right. Click Copy text to use the result anywhere.

Will the line breaks and paragraphs be kept?

Yes, with Keep line breaks turned on. Block elements such as paragraphs, headings, divs and list items start on a new line, <br> becomes a line break, and paragraphs are separated by a blank line. Turn it off to get one continuous line of text.

What does decode HTML entities mean?

HTML uses codes called entities for some characters, for example &amp; for &, &lt; for < and &nbsp; for a non-breaking space. Decoding turns them back into the real characters. Turn it off if you want to keep the codes exactly as written.

Is it safe to paste HTML with scripts?

Yes. The HTML is read with the browser's DOMParser, which creates an inert document: scripts do not run and images or other resources are not loaded. Script and style content is removed from the output by default.

Is a regular expression good enough to strip HTML?

A simple pattern like <[^>]*> works for basic snippets, but it fails on comments, scripts, attributes that contain >, and entities, and it loses all line breaks. Parsing the HTML properly, as this tool does, gives reliable results.

Is my HTML uploaded anywhere?

No. The conversion happens entirely in your browser, and files you open are read locally. Nothing is sent to a server.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.HTML Table to CSVExtract any table from HTML or page source to CSV, TSV or JSON, with colspan and rowspan handled.PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.Word to HTML ConverterConvert Word .docx files or pasted rich text into clean, semantic HTML with live preview.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Memo GeneratorWrite a business memo in standard To/From/Date/Subject format, then print, copy or save as .docx.PDF Text CleanerFix text copied from a PDF: join broken lines, undo hyphen splits, drop page numbers and headers.Pros and Cons List MakerWeigh a decision with a weighted pros and cons list, a score, a verdict and easy export.Remove Numbers from TextStrip all numbers and digits from text, keep MP3-style words or ordinals, and tidy the spaces.Return Policy GeneratorCreate a return and refund policy for your store as text or HTML, with a refund example.Screenplay FormatterType a script in plain text (Fountain) and get a properly formatted screenplay, page count and PDF.Word ChangerSwap words for synonyms in your text, then click any word to cycle through alternatives.Words That End WithFind English words ending in any letters or suffix, filtered by length and sorted by score.Annotated Bibliography GeneratorBuild an APA or MLA annotated bibliography with hanging indents and download it as DOCX.EPUB to Text ConverterExtract plain text from EPUB e-books, pick chapters, count words and download a TXT file.Extract Dates from TextFind every date in text, in any common format, and convert them all to one format you choose.Extract Text Between DelimitersPull out every piece of text between brackets, quotes, HTML tags or your own start and end markers.Recipe Shopping List GeneratorPaste several recipes and get one combined grocery list with merged amounts, by store section.One Word Per LineSplit any text into a list with one word per line; strip punctuation, dedupe, lowercase and sort.Recipe FormatterPaste a messy recipe and get clean ingredients, numbered steps, scaling and a printable card.Remove Words from TextDelete a list of words or phrases from any text and see how many times each one was removed.Reverse Line OrderFlip the order of lines, list items or paragraphs so the last becomes first.Pairwise Sequence Alignment ToolAlign two DNA or protein sequences, global (Needleman-Wunsch) or local (Smith-Waterman), with identity %.Sort Lines by LengthSort lines from shortest to longest or the reverse, with ties sorted A-Z and lengths shown.Sort Words AlphabeticallyPut the words in any text in A-Z or Z-A order, remove duplicates and pick a separator.Sentence SplitterSplit text into one sentence per line, smart about abbreviations, decimals and quotes.Text to Table ConverterTurn tab, comma, pipe or space separated text into a table to copy as rich text, Markdown or plain text.Text TruncatorShorten text to a character, word or sentence limit without cutting words, with an ellipsis.Bulk Find and ReplaceApply a whole list of find → replace pairs to your text at once, with a per-pair change log.Contraction ConverterExpand contractions (don't → do not) for formal writing or contract phrases for a casual tone.Count Duplicate LinesCount how many times each line appears, sorted by frequency, with duplicates-only and CSV export.Double Space TextAdd blank lines between lines or paragraphs (1.5, double, triple spacing) or remove them again.Em Dash ReplacerReplace em and en dashes with commas, hyphens or periods and normalize ellipses and fancy punctuation.Extract Domains from URLsPull hostnames or root domains out of URL lists, strip www, dedupe and count links per domain.List to Sentence ConverterTurn a list into a natural sentence with commas and “and” or “or”, with an Oxford comma toggle.
See all 96 Text Cleaning & Formatting →