Content pasted from a web page, email, or CMS often carries hidden HTML tags, inline styles, and scripts. This strip HTML tags tool removes all of them and returns clean, readable plain text — useful for notes, imports, word counts, and feeding text into other tools.
How it works
The cleaning is pure text processing, never rendering:
- Remove code blocks. Entire
<script>and<style>blocks and HTML comments are deleted along with their contents, because that content is code, not text. - Strip tags. Every remaining
<...>tag is removed, leaving the text between them. - Optional entity decoding. Codes such as
&,<, and numeric references become their real characters when the option is on. - Optional whitespace collapse. Long runs of spaces and blank lines are squeezed for readable output.
Because no markup is ever inserted into the page, even hostile HTML cannot execute.
Example
Input:
<p>Hello <b>world</b> & welcome!</p><script>alert(1)</script>
Output (entities decoded, whitespace collapsed):
Hello world & welcome!
The <script> block is dropped entirely, the tags are stripped, and & decodes to &. Everything runs in your browser — nothing is uploaded.