KitBench

HTML Entity Decoder

Decode named (&, <), decimal ('), and hexadecimal (') HTML entities.

Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.

Interactive Browser Workspace

Loading the interactive HTML Entity Decoder workspace. Enable JavaScript in your browser to run calculations and conversions locally.

How to Use HTML Entity Decoder

  1. Paste text containing HTML entities.
  2. Read or copy the safely decoded plain text.

Methodology & Accuracy

Decodes standard named, decimal, and hex entities via pure string lookup and `String.fromCodePoint` without `innerHTML`.

Examples

  • `5 &lt; 10 &amp; 10 &gt; 5` decodes to `5 < 10 & 10 > 5`.

Scope & Limitations

  • Supports common HTML entities and all valid numeric Unicode code points.

Frequently Asked Questions

Is decoding pasted HTML safe?

Yes. Because this tool uses pure string mapping instead of injecting into `innerHTML`, embedded scripts cannot run.

Does the decoder handle both decimal (`&#8364;`) and hexadecimal (`&#x20AC;`) entities?

Yes. Named entities, decimal numeric references, and hex references are decoded back to their plain Unicode characters.

Why does double-encoded text like `&amp;lt;` decode to `&lt;`?

Because the outer `&amp;` decodes to `&` in one pass. Running decode once more converts the remaining `&lt;` into `<`.

Related Tools

  • HTML Entity Encoder - Escape <, >, &, quotes, and optional non-ASCII characters into safe HTML entities.
  • URL Decoder - Decode percent-encoded URLs and query strings back into readable text.