HTML Entity Encoder & Decoder

Encode and decode HTML entities. Convert special characters to named, decimal, or hexadecimal HTML entities and vice versa

Encoding Options
Plain Text
Encoded Text

What this tool does

  • Encodes plain text as named, decimal, or hexadecimal HTML entities.
  • Decodes entity-encoded snippets back into readable text.
  • Runs entirely in your browser, so your input stays local.

When to use it

  • Escape special characters before pasting HTML into docs, templates, or demos.
  • Inspect copied markup that contains &, <, or <.
  • Compare named, decimal, and hexadecimal entities for compatibility needs.

Notes on entity formats

  • Named entities are easiest to read, but not every character has one.
  • Decimal and hexadecimal entities can represent any Unicode character, including emoji.
  • Unknown or invalid entities are left unchanged when decoding.