Developer Tools

HTML Entity Encoder/Decoder

Encode special characters into HTML entities, or decode entities back into readable text — useful for safely embedding text in HTML.

How to use this tool

  1. 1Paste your text or HTML.
  2. 2Choose Encode or Decode.
  3. 3Copy the result.

Frequently asked questions

Why encode characters like < and & in HTML?+

Left unencoded, characters like < and & can be misinterpreted as the start of a tag or entity, breaking the page or opening an XSS risk — encoding them as entities keeps them safely displayed as literal text.