HTML Entity Encode / Decode

Escape and unescape HTML entities using named, numeric, or hex references.

Mode
Output

Result will appear here.

Step by step

How to use HTML Entity Encode / Decode

  1. 1

    Paste text or HTML containing the characters or entity references to convert.

  2. 2

    Choose named, decimal, or hexadecimal entities and then encode or decode.

  3. 3

    Verify the visible characters and copy the escaped or unescaped result.

Capabilities

What this tool handles

  • Named, numeric, and hex modes
  • 40+ common named entities
  • Round-trip encoding and decoding

Common uses for HTML Entity Encode / Decode

  • Escape reserved characters before placing text inside HTML markup.
  • Decode copied source containing named or numeric character references.

What to check before using the result

Entity encoding prevents markup interpretation in the correct context, but it is not a complete substitute for context-aware output escaping and sanitization.

Privacy and accuracy

Questions about HTML Entity Encode / Decode

Does this tool upload my input?

The conversion or analysis runs in your browser. The application does not intentionally send the value you enter to a processing API. Standard hosting infrastructure can still receive request metadata when the page loads; see the privacy page for details.

Can I rely on the output without checking it?

Use the result as a focused development aid and verify it in the system where it will be used. Test representative edge cases and confirm the destination uses the same format, standard, and assumptions described on this page.

Related Tools