Remove HTML tags
Paste text or code that contains HTML tags and keep only the content: <p>Hello <b>world</b></p> becomes Hello world. The text is processed in your browser and nothing is uploaded.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
Copy or download
Copy the result with one click, save it as a file or use it as input for a next step.
Example
<p>Hello <b>world</b>,<br>this is <i>text</i> with & entities.</p><style>p{color:red}</style> becomes Hello world, and this is text with & entities. on two lines. The style rule is gone too, and the note says that 4 tags were removed.
Options
<br>and paragraphs become a new line (on by default), so text doesn't run together.- Also remove the content of
<script>and<style>(on by default), so no code is left behind.
Entities like & are converted back to their characters.
When to use it
Use it to clean text pasted from a web page, to pull the words out of an HTML e-mail, or to prepare content for a plain-text field. If you want a tidier layout, with bullets and links, use HTML to text. To get the characters of entities without removing tags, use the HTML entities converter, and to remove other unwanted characters, remove special characters.
Frequently asked questions
Does this make untrusted HTML safe?
No. This is a text tool, not a security filter. It reads the HTML in an inert document, so nothing runs while you use it, but use a proper sanitiser before putting untrusted HTML on a web page.
What happens to the content of script and style tags?
By default it is removed too, so no code is left behind. Untick the option that also removes the content of script and style tags and `<script>x()</script>` leaves `x()` in the text.
Why do paragraphs run together in some tools?
Because the tags that separated them are gone. Here `<br>` and paragraph ends become a new line by default. Untick that option and `<p>a</p><p>b</p>` gives `ab`.
Are entities like & converted?
Yes, they become the characters they stand for, so `&` turns into `&` and `é` into é.