HTML Entity Encoder and Decoder

Encode and decode HTML entities.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

HTML Entity Encoder and Decoder

How to use this tool

  1. Enter your values in the fields above.
  2. Press Generate to see the result.
  3. Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.

Worked example

Encoding “<b>Tom & Jerry</b>” gives “&lt;b&gt;Tom &amp; Jerry&lt;/b&gt;”. Decoding that string returns the original text.

What this tool does not do / Limits

This handles the common named entities and numeric entities. It does not validate HTML or repair broken markup.

Frequently asked questions

Which characters are encoded?

Ampersand, less-than, greater-than, double quotes and single quotes.

Are numeric entities decoded?

Yes. Both decimal forms like &#65; and hex forms like &#x41; are decoded.

Related tools