Developer Tool

Strip HTML Tags

Strip HTML Tags helps clean or transform pasted text quickly in the browser. Use it online on EasyTools99.

Tool area

Everything runs in the browser.

Reference results

InputResult
<h2>Schedule</h2><p>Friday</p>" Schedule Friday "
<a href="https://example.org/menu">Menu</a>" Menu "
<p>Tea &amp; coffee</p>" Tea &amp; coffee "

How it works

The filter replaces sequences from an opening angle bracket to a closing bracket with a space. Text outside those matches remains, including entity strings. It operates on text, so the spacing may need another cleanup pass.

Worked examples

  1. An editor extracts a title and date from a fragment and tidies the spacing for a note.

    Input: <h2>Schedule</h2><p>Friday</p>

    Result: " Schedule Friday "

  2. A colleague extracts a link label and keeps the original fragment because they also need its destination.

    Input: <a href="https://example.org/menu">Menu</a>

    Result: " Menu "

  3. An operator copies a menu snippet and decodes the ampersand entity in a separate step.

    Input: <p>Tea &amp; coffee</p>

    Result: " Tea &amp; coffee "

Common mistakes

  • Use a dedicated sanitizer for security-sensitive HTML.
  • Keep the source if you need link destinations.
  • Review entities such as &amp; and the spaces around removed tags.

FAQ

Does it decode entities?

They remain as plain strings. Decode them separately if needed.

What happens to script and style contents?

The surrounding tags may disappear while the text between them remains.

What happens to link text?

The label stays. The address was in the attribute that got removed.

Related guides

Previous tool HTML Encode Text Next tool Strip Markdown Formatting