HTML Entity Encoder & Decoder

Encode special characters as HTML entities or decode entities like & and © back to text.

How to use HTML Entity Encoder & Decoder

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

Supported features and limitations

Encoding covers & < > " and '. Optionally encode every non-ASCII character numerically. Decoding supports named and numeric entities known to your browser.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

When should I encode entities?

When showing code or user text inside HTML so it is not interpreted as markup.

Does it prevent XSS?

Encoding output is one part of safe HTML handling, but this tool is not a complete security solution.

Related tools

More Text & Document Tools · All free tools