Developer Tools

HTML Entity Encoder & Decoder

Encode text into HTML entities, or decode entities back into text, safely, entirely in your browser.

HTML Entity Encoder and Decoder Tool

Encode or Decode HTML Entities

How to Use This Tool

  1. Choose Encode (plain text → entities) or Decode (entities → plain text).
  2. Type or paste your input.
  3. The result updates automatically. Copy it when you're ready.

Examples

Common characters and their HTML entity equivalents.
CharacterEntity
&&
<&lt;
>&gt;
"&quot;
'&#39;

Decoded Output Is Always Plain Text

Decoding never renders your input as live HTML on this page. The result -- even something like a decoded <div> tag -- is always displayed as plain, inert text in a read-only field, never built into real markup or executed as a script.

Frequently Asked Questions

Which characters get encoded?

Only the five characters that are structurally meaningful in HTML: & (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&#39;). Every other character, including accented letters and emoji, is left exactly as you typed it -- this tool doesn't convert your whole text into an entity-soup.

Why does this tool decode HTML entities without rendering them as HTML?

Because the whole point is showing you what the decoded text IS, safely, as plain text -- never actually building or displaying live HTML from your input. Decoding uses a detached <textarea> element internally (a well-known, safe technique: a textarea's content model treats everything as plain text, so even something like "&lt;img src=x onerror=alert(1)&gt;" decodes to inert text, never a real image element), and the result is always shown in a plain, read-only text field.

What happens with an unknown or incomplete entity, like &foo; or &amp (missing the semicolon)?

An entity your browser doesn't recognize is left exactly as written, unchanged, rather than causing an error -- this matches how browsers themselves handle unrecognized entities in real HTML.

Can I decode numeric entities too, like &#169; or &#x00A9;?

Yes -- both decimal (&#169;) and hexadecimal (&#x00A9;) numeric character references are supported, in addition to named entities like &copy;.

Is my text uploaded anywhere?

No. Every conversion happens locally in your browser using JavaScript. Nothing you type here is sent to Brekzy or stored anywhere.

Find More Useful Tools

Explore Brekzy's growing collection of free calculators, converters, AI tools, and practical resources.