Skip to tool

Python Strip tags Online

Remove 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 Python

The interactive result uses JavaScript. Python str stores Unicode text. Encode to bytes when an API expects UTF-8 or another byte representation.

Python reference