HTML Entity Encoder and Decoder

Encode and decode HTML entities with preview.

No external services
Built by Derar Sattouf

HTML Entities

Input

Output

Encoded<section class="note">Ada & Grace</section>
Decoded<section class="note">Ada & Grace</section>

Preview

What is the HTML Entity Encoder?

The HTML Entity tool converts characters such as <, >, & and quotes into HTML entities and decodes entities back to plain text. Escaping prevents markup from being interpreted as HTML, which is how you show code samples on a page safely; the live preview shows exactly how a browser will render the result.

How to use it

  1. Paste text or HTML.
  2. Choose encode or decode.
  3. Check the preview and copy the result.

Features

  • Encode and decode entities
  • Live rendered preview
  • Named and numeric entities

Frequently asked questions

Why should I escape HTML?

Escaping turns < and > into &lt; and &gt; so the browser shows them as text instead of running them as tags. It is essential for displaying code and a basic defense against injected markup.

Related tools

See all 26 developer tools

Last updated: October 2026 · Built by Derar Sattouf