HTML Entity Decoder

To decode HTML entities, paste text containing entities like &amp;amp; or &amp;#39; below — they're converted back to the literal characters (&amp;, ', <, > …) instantly and locally. Toggle Encode to go the other way. Everything runs in your browser — nothing is rendered or uploaded.

ENTITIES
TEXT
Waiting for input

How to decode HTML entities

HTML entities are escape sequences that stand in for characters which are reserved or awkward in markup — for example &amp;amp; for an ampersand or &amp;lt; for a less-than sign. To decode them, paste your text above with the toggle on Decode; each entity is turned back into the literal character it represents, and the plain text appears instantly. Click Copy to grab the result.

Named vs numeric entities

Every entity has a named form and one or more numeric forms — all decode to the same character. Named entities use a readable keyword; numeric entities use the character's Unicode code point in decimal (&#NN;) or hexadecimal (&#xNN;).

CharacterNamedNumeric
&amp;&amp;amp;&amp;#38;
<&amp;lt;&amp;#60;
>&amp;gt;&amp;#62;
"&amp;quot;&amp;#34;
'&amp;#39; / &amp;apos;&amp;#39;
(space)&amp;nbsp;&amp;#160;

Is this safe and private?

Yes. Decoding is done by writing your text into a detached <textarea> element that is never inserted into the page, so the browser resolves the entities without rendering any markup or running any scripts — even if the input contains a <script> tag. And because it all happens in JavaScript on your machine, nothing is uploaded to any server. You can confirm in DevTools → Network: decoding fires no request.

Frequently asked questions

How do I decode HTML entities?

Paste text containing entities into the input above with Decode mode on. Entities like &amp;amp;, &amp;#39;, and &amp;lt; are converted back to their literal characters (&amp;, ', <) instantly and locally, then click Copy.

What's the difference between named and numeric entities?

Named entities use a readable keyword, like &amp;amp; for &amp; or &amp;lt; for <. Numeric entities use the character's Unicode code point in decimal (&amp;#39;) or hexadecimal (&amp;#x27;). Both forms decode to the exact same character.

Can I encode text into HTML entities too?

Yes — toggle the button to Encode. The tool escapes the characters that matter in HTML — &amp;, <, >, ", and ' — into &amp;amp;, &amp;lt;, &amp;gt;, &amp;quot;, and &amp;#39;, which is enough to safely embed text in markup.

Is it safe to decode untrusted HTML here?

Yes. A detached <textarea> decodes the entities without ever attaching to the page, so no markup is rendered and no scripts execute. Everything stays in your browser and nothing is uploaded.

Need plain Base64 encode/decode?

The main base64.dev tool handles text, files, and URL-safe mode with auto-detect.

Open base64.dev →