HTML Entity Encoder

Convert regular characters into HTML entities and decode entities for symbols and special characters.

Entity Encoder

HTML entity encoder and decoder

Encode characters such as &, <, >, and quotes as named, decimal, or hexadecimal HTML entities, or decode common entities back to text. It is useful for HTML source escaping, rich text, attribute values, API responses, and email templates.

Three encoding styles

Choose named entities, decimal numeric entities, or hexadecimal numeric entities.

Unicode support

Encode Chinese, emoji, and other Unicode characters as numeric entities when non-ASCII mode is enabled.

Local browser processing

Encoding and decoding happen in the browser, which is convenient for text you do not want to upload.

How to use

  1. Choose encode or decode. For encoding, select named, decimal, or hexadecimal output.
  2. Paste text, optionally encode quotes and non-ASCII characters, then convert.
  3. Copy or download the result for HTML source, attribute values, API requests, or email templates.

FAQ

Will decoding execute HTML?

No. Decoding reads the entity result through a textarea value and does not insert it into an executable page or run scripts.

What is the difference between named and numeric entities?

Named entities are easier to read, such as & and <. Numeric entities use character codes such as & or & and are more general for characters without a common name.

Recommended utilities

You may also need these file utilities