HTML entities

Encode or decode HTML entities. Unknown names stop.

Added 2026-10-31

What it does

HTML entity encoding and decoding run in this tab. Named mode encodes only the markup characters ampersand, less-than, greater-than, double quote, and apostrophe, and leaves other letters as they are. Decimal mode and hexadecimal mode write numeric character references for those characters and for non-ASCII letters, so a character that has a name such as e acute still becomes a number. Decoding uses the HTML5 named set, including a non-breaking space. An unknown name stops instead of being left in place. A numeric reference outside Unicode stops. The page does not parse a document or fetch anything. The text is not uploaded.

How to use it

  1. Paste text. It stays in this tab.
  2. Choose named, decimal, hexadecimal, or decode.
  3. Named mode leaves ordinary letters alone. Decimal and hex write numeric references.

Common mistakes

  • Named mode is narrow. Named mode encodes only & < > " and '. 世界 stays as 世界.
  • Unknown names stop. A name that HTML5 does not define stops. It is not left unchanged.

Encoding stays in this tab. The text is not uploaded.

Related guides

  • Base64 is not URL encoding

    Base64 maps bytes to an alphabet. URL encoding percent-escapes characters. A query string needs the second, not the first.

Related tools