Skip to content
UniKit

HTML tag stripper

Remove tags without losing text: list the tags to drop (comma separated, empty means all); text between tags, entity decoding and bare `<` all follow the tokenizer result, and script/style content only disappears when drop-scripts is checked.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

HTML source

Result

The result can be copied directly.

Paste HTML to see the tag-free text

Characters: 0 · Lines: 0 · Tags removed: 0

What this tool does

  • Turn rich text into plain text for search or summaries.
  • Strip only a few named tags, for example drop table but keep its text.
  • Check how entity decoding and script content are handled.

Example

Input

<p>a < b</p><span>x</span>

Output

a < bx

A bare `<` is text; script/style keep their content unless drop-scripts is checked.

Frequently asked questions

How is it different from strip-tag?

They overlap: this is the general entry point with named-tag selection and an entity-decoding switch; strip-tag additionally reports the tags it kept.

Does `<p>a < b</p>` become `a`?

No, it becomes `a < b`. The tokenizer treats the bare `<` as text; a regex strip would eat the rest.

What does an empty `tags` field mean?

Drop every tag; script/style lose only the tag and keep their content unless drop-scripts is checked.

What about input that is all tags?

It returns an empty string instead of failing; only blank input throws `invalid-input`.

Keywords:html-stripstrip tagsdeveloper

Related tools