HTML Escape / Unescape

Escapes <, >, &, quotes and apostrophe to entities, and decodes back.

Overview

Useful when embedding snippets in HTML, templates, and attributes. Decoding uses the browser DOM for common entities.

Technical deep dive

Common questions summarized

  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Before / after — <script> → &lt;script&gt;

Tool guide

  • What HTML is Markup for pages: tags like <p>, attributes, and entities. Special characters inside text or attributes must be escaped so they are not parsed as markup.

  • What HTML entities are Representations such as &lt; for <, &amp; for &, etc., to insert literal text without breaking the document.

  • What the tool does Converts text to entities (escape) or decodes entities back to text.

  • Why use it Embed examples in docs, templates, HTML email, or value attributes without accidentally running tags.

Code Snippets

Code example
<script> → &lt;script&gt;

Before / after

<script> → &lt;script&gt;

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.