HTML Entity Encoder / Decoder

Convert between special characters and & < and other HTML entities

How to use

  1. Paste the content into the input box.
  2. Click "Encode →" to turn & < > into HTML entities.
  3. Click "Decode →" to restore entities to original characters.
  4. Tip: decoding uses the browser parser, so decimal and hex numeric entities are supported.

FAQ

Does encoding handle all characters?

It escapes the five characters with special meaning in HTML: & < > " '. Others are kept as-is to avoid breaking rendering.

Does decoding support numeric entities?

Yes. Decoding uses the browser parser, so decimal/hex entities like { and named entities are correctly restored.