Skip to content
Fancy Unicode

HTML Entity Decoder

Turn HTML character references into readable text. Named, decimal, and hexadecimal references ending with a semicolon are decoded once.

Decodes named and numeric references ending with a semicolon, one pass. Markup stays plain text.

Decoded text

<strong>Hello & 世界</strong>

Example decoded. Processing happens in your browser.

Turn character references into readable text

HTML character references represent characters using notation such as &amp;, &#38;, or &#x26;. Each of these represents an ampersand. This HTML entity decoder reads named and numeric references and shows the result as plain text. It is useful when a copied snippet, exported field, or API value contains entity notation you need to inspect.

The input and example result are present immediately. JavaScript is needed to decode your own sample, load another example, or use Copy.

How to use the HTML entity decoder

  1. Paste a sample into Input. References must end with a semicolon on this page.
  2. Read the Decoded text result. Named references use the browser's HTML character-reference rules; decimal and hexadecimal references are supported too.
  3. Press Copy to copy the text, or Reset to clear the workbench. Your original input is not overwritten.

The result is never inserted as live markup. A decoded <strong> or <script> sequence is shown literally; it does not become a formatted element or execute code.

Compare three kinds of references

Named entities

Tom &amp; Jerry becomes Tom & Jerry. Other named references include &lt;, &gt;, &quot;, &copy;, and &nbsp;. Named references can be case-sensitive, so use the spelling expected by HTML.

Decimal numeric references

&#65;&#66;&#67; becomes ABC. Decimal references describe Unicode code points using base-ten numbers. The character produced follows browser HTML parsing rules, including replacement behavior for invalid numeric values.

Hexadecimal numeric references

&#x4E16;&#x754C; becomes 世界. A supplementary character can also use one numeric reference: &#x1F600; becomes 😀. These are character references rather than UTF-8 byte sequences.

One pass keeps encoding layers visible

Input &amp;lt; becomes &lt; after one pass. It does not immediately become <. This lets you inspect a second encoded layer before deciding whether to decode again. Unknown reference names remain unchanged and are reported in the status line. A string without references also remains unchanged.

This tool deliberately requires a terminating semicolon. It does not try to reproduce every context-dependent rule for incomplete references in an entire HTML document. It is a text decoder, not a full document renderer or an HTML sanitizer. Copying decoded text into another application may give it a different meaning, so use that application's escaping and validation rules.

Keep spaces and characters in context

A decoded &nbsp; is a non-breaking space, not an ordinary space. Use the invisible character detector to inspect spacing and joiners before changing stored data. Percent escapes such as %26 belong in the URL decoder; backslash escapes and U+ notation belong in Unicode to text. Return to the Unicode converter for additional byte and character views. Processing is local to your browser.

Frequently asked questions

Which entity formats are supported?

Named HTML references and decimal or hexadecimal numeric references ending with a semicolon are supported. Unknown named references are left unchanged.

Will decoded HTML run on this page?

No. The output is displayed as plain text. This decoder does not render the decoded markup and is not an HTML sanitizer for use in another application.

Why is a nested entity still encoded after decoding?

Each pass decodes one layer. Review the result before deciding whether a second pass is appropriate.

Is a non-breaking space the same as a normal space?

No. It becomes U+00A0, a non-breaking space. Inspect it with the invisible character detector if matching or whitespace handling matters.