1001Ferramentas
📝 Text

Remove HTML Tags

Strip HTML tags (<p>, <a>, <div>...) preserving inner text. Useful for extracting only readable content from a page.

Strip the tags, keep the words

You copied a chunk from a CMS, from an HTML email or from a database export and it arrived wrapped in paragraph tags, spans with inline styles and div after div. What you want is the text in between. Paste the block into the field and the unmarked version shows up as you type, with no code editor and no throwaway script.

The rule is literal: everything between a less-than sign and the next greater-than sign is deleted, and nothing replaces it. That explains two surprising behaviors. Adjacent paragraphs end up glued, because the tag disappears without becoming a space, and two table cells holding Ana and Silva come out as AnaSilva. Script and style content also survives, since only the tag was removed, not the code inside it.

Watch out for text using bare less-than and greater-than signs, such as a math comparison: the stretch between them is read as a tag and vanishes. Entities are not decoded either, so the codes for the ampersand and the non-breaking space stay written the same way. And do not treat this as a sanitizer: deleting tags does not neutralize hostile HTML, there are libraries for that. Everything runs in your browser.

Frequently asked questions

Why are my paragraphs glued together?
Because the tag is deleted without being replaced by a space or a line break. If the text came from a table or a list, split the parts by hand afterwards.
Does it remove the code inside script and style?
No. Only the tags go, so the JavaScript and CSS end up loose in the middle of your text. Delete those blocks before pasting.
Can I use it to clean user-submitted HTML before displaying it?
No. This is a reading tool, not a security tool. To render third-party content, use a sanitizing library that understands the DOM.

Related Tools