Developer tools ● Local processing

HTML Entity Decoder

Decode named and numeric HTML character references recognized by the browser.

Preparing tool…
Try a small example

Try a small example

Load the fictional example in a cleared form. Check the options, run the tool if needed, and compare the result below.

Decode character references recognized by the browser into literal characters. Paste encoded text and run the decoder. It turns browser-recognized named and numeric character references back into literal characters; for example, &amp; becomes &. The result is text, not sanitized HTML—keep untrusted output in a text context. Decoding does not sanitize the result: for example, &lt; becomes <. Keep untrusted output as text instead of interpreting it as HTML.

Text with HTML character references

&lt;p&gt;Tea &amp; coffee&lt;/p&gt;

Expected output

<p>Tea & coffee</p>

The example is unavailable until the tool is ready.

Text is processed in your browser.

✓ Local processing✓ No account✓ Inputs processed here✓ Free

Quick answer

Decode character references recognized by the browser into literal characters.

The page and its assets load from the site; this operation uses your entered values only in this browser and does not send them to a calculation endpoint.

How to use it

Paste encoded text and run the decoder. It turns browser-recognized named and numeric character references back into literal characters; for example, &amp; becomes &. The result is text, not sanitized HTML—keep untrusted output in a text context.

Limits

Decoding does not sanitize the result: for example, &lt; becomes <. Keep untrusted output as text instead of interpreting it as HTML.

Frequently asked questions

Which references are decoded?

It uses the browser to decode recognized named and numeric HTML character references, such as &amp; or &#60;. Text that is not a recognized reference is left as text.

Does decoding make the result safe HTML?

No. Decoding can turn &lt; into < and &amp; into &. The result is text, not sanitized markup; keep untrusted output in a text context.

Sources and references

These references document the cited standard or browser API; they do not validate the tool’s output.