Skip to tool

JavaScript Strip tags Online

Strip HTML tags.

The output updates as you type. The tool processes input in your browser.

Worked example

Tag removal is useful for plain-text extraction. Use an HTML sanitizer before rendering untrusted markup.

Allowed tags
""
Sample input
<b>Hello</b> <i>world</i>
Sample output
Hello world

Using this operation in JavaScript

The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.

JavaScript reference