Skip to content
toolsdocks

HTML Entity Decoder

Paste text full of & and < and read it as plain characters. This page opens the encoder and decoder with HTML entities and Decode selected.

Runs on your device

More options in the full Encoding toolkit.

Loading tool…

How to use it

  1. Paste the escaped text.
  2. Leave Encoding on HTML entities and Direction on Decode (preselected here).
  3. Check the warning for any unknown entity names.
  4. Copy the result or download decoded.txt.

Worked example

&lt;p&gt;Caf&eacute; &amp; cr&#232;me &#x1F370;&lt;/p&gt; decodes to <p>Café & crème 🍰</p>. In the same text, &foo; would stay as it is and be listed as unknown.

Formats and limits

InputHTML-escaped text
OutputText
EngineTextEncoder/TextDecoder with strict validation

Limitations

  • References need the closing semicolon; &amp without it is left as written.
  • References to code point 0, surrogates or values above U+10FFFF are reported as errors.
  • The decoder runs once; text escaped twice (&amp;lt;) needs a second pass.

Questions

Which entities are known?

Every named entity HTML defines, looked up with your browser's own HTML parser, plus decimal references such as &#232; and hex references such as &#x1F370;.

Why is &amp left as it is?

The closing semicolon is required here, so &amp without it is not decoded. Names the browser does not know, such as &foo;, are left in place and listed in a warning.

Is the decoded HTML run?

No. The result is shown as plain text, so <p> or <script> in it is displayed, not interpreted.

Is my text uploaded?

No. The text is processed in your browser and nothing is uploaded.

Privacy

Runs on your device. Files and text are processed in this browser tab and are not uploaded.

This page opens the Encoding toolkit ready for this task. See the privacy policy for how toolsdocks handles data.