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.

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.

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.Word CounterCount words and characters and clean up text.Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Word Count to PagesHow many pages is 1,000 words? Estimate pages by font, size, spacing and margins.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.Citation GeneratorCreate APA, MLA and Chicago citations for books, websites and articles.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Bibliography GeneratorBuild an alphabetized bibliography in APA 7, MLA 9, Chicago or Harvard style.Essay Length & Reading TimeWords to reading time, speaking time and handwritten or typed pages.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Instagram Caption FormatterKeep line breaks and spacing in Instagram captions and bios.Instagram Bio GeneratorCreate Instagram bios with templates, fancy fonts and emojis.X Post Character CounterCount X (Twitter) post characters and split long text into a thread.TikTok Caption CounterCount TikTok caption characters and hashtags against the 2,200 limit.Speech Length CalculatorPaste a speech to see how long it takes to say at any speaking speed.Text to SpeechTurn text into natural-sounding speech.Fancy Text GeneratorTurn text into cool Unicode fonts for bios.Reverse Text GeneratorWrite text backwards, reverse words or lines, mirror or flip it upside down.Upside Down Text GeneratorFlip text upside down with Unicode characters, or turn it back to normal.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.YouTube Title Length CheckerCheck YouTube title length, preview truncation and score it for clicks.YouTube Description & Chapters GeneratorBuild a YouTube description with chapters, links and hashtags from templates.Text CompareFind the differences between two texts.AI Prompt GeneratorBuild better prompts for ChatGPT, Midjourney and more.Email Signature GeneratorBuild HTML email signatures for Gmail and Outlook.Flashcard MakerMake flashcard decks and study them with flip cards and spaced repetition, saved in your browser.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.YouTube Tag GeneratorGenerate YouTube tag ideas from your title and keywords and fit them in the 500-character limit.Quiz MakerMake a multiple-choice quiz, take it with instant scoring and share it with a link.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.LinkedIn Post FormatterAdd bold, italic and other Unicode styles to LinkedIn posts and preview the fold.Word Frequency CounterFind the most used words and phrases in any text and turn them into a word cloud.Social Media Post PreviewMock up a post for X, Facebook, Instagram, LinkedIn or Threads and save it as a PNG.Sentence CounterCount sentences and paragraphs, see average sentence length and spot long sentences.Emoji CounterCount every emoji in your text, including flags, skin tones and ZWJ sequences.Readability CheckerScore your text with Flesch, Flesch-Kincaid, Gunning Fog, SMOG and more readability tests.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Keyword Density CheckerFind the most used 1, 2 and 3-word phrases in your text and their keyword density %.Title Capitalization ToolCapitalize titles and headlines in AP, APA, Chicago and MLA style side by side, with one-click copy.Accent KeyboardClick to insert é, ñ, ü, ç, ß and other accented letters for 11 languages, then copy.Small Text GeneratorTurn text into tiny superscript, subscript and small caps letters you can copy and paste.Headline AnalyzerScore your headline 0–100 on length, word balance, power words, sentiment and type, with tips.Cyrillic TransliterationConvert Bulgarian, Russian and Ukrainian Cyrillic to Latin and back using official rules.Zalgo Text GeneratorMake creepy glitch text with separate up, middle and down sliders, or clean zalgo back to normal.Arabic KeyboardType Arabic online with a full on-screen keyboard, harakat and Arabic-Indic digits, then copy.Invisible CharacterCopy blank and invisible characters (ㅤ U+3164, U+2800, zero width space) for names and messages.Reading Time CalculatorEstimate how long a text takes to read or speak at any speed, and copy a “5 min read” badge.Russian KeyboardType Russian online with a ЙЦУКЕН or phonetic on-screen keyboard, then copy your Cyrillic text.Emoji PickerSearch 1,900+ emoji by name, pick skin tones and copy and paste them with one click.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Special CharactersCopy and paste 1,500+ symbols: arrows, math, currency, stars, checkmarks, © ® ™ and more.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Word UnscramblerUnscramble letters into every possible word, with blank tiles, length filters and Scrabble scores.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.ROT13 Encoder / DecoderEncode and decode ROT13, ROT47, ROT5, ROT18 and any Caesar shift live as you type.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.Palindrome CheckerCheck if a word, sentence or number is a palindrome and find the longest palindrome in text.Syllable CounterCount syllables per word, line and total, and check haiku 5-7-5 instantly.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.NATO Phonetic Alphabet TranslatorSpell any text as Alfa, Bravo, Charlie, hear it spoken, or decode code words back to text.Braille TranslatorTranslate English text to Grade 1 Unicode braille and back, with dot numbers and printing.Text SummarizerSummarize long text into its key sentences and keywords, privately in your browser.Speech to TextDictate with your voice and get editable text in 50+ languages, with voice punctuation.ASCII Art GeneratorTurn text into big ASCII banners or convert any image into ASCII art you can copy.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Bold Text GeneratorConvert text to bold Unicode letters you can copy and paste anywhere.Italic Text GeneratorConvert text to italic Unicode letters you can copy and paste anywhere.Cursive Text GeneratorConvert text to cursive Unicode letters you can copy and paste anywhere.Strikethrough Text GeneratorConvert text to strikethrough Unicode letters you can copy and paste anywhere.Underline Text GeneratorConvert text to underlined Unicode letters you can copy and paste anywhere.Bubble Text GeneratorConvert text to bubble Unicode letters you can copy and paste anywhere.Wide Text GeneratorConvert text to wide Unicode letters you can copy and paste anywhere.Old English Text GeneratorConvert text to Old English Unicode letters you can copy and paste anywhere.Superscript GeneratorConvert text to superscript Unicode letters you can copy and paste anywhere.Subscript GeneratorConvert text to subscript Unicode letters you can copy and paste anywhere.