HTML Entities

Encode & decode HTML entities (named + numeric).

A free HTML entity encoder/decoder: encoding escapes characters like & < > " ' into named entities (with an option to turn every non-ASCII character into a numeric entity), and decoding resolves named and numeric (decimal/hex) entities back to text. It all runs locally in your browser.

How to use

  1. Choose Encode or Decode.
  2. Paste your text or entity-encoded content.
  3. When encoding, optionally enable Non-ASCII → numeric.
  4. Copy the result on the right.

FAQ

What is the difference between named and numeric entities?
Named entities use a name (e.g. &amp; for &); numeric entities use the code point (decimal &#38; or hex &#x26;). Decoding handles both; when encoding, core characters use named entities and other non-ASCII can use numeric ones.
Is decoding safe?
Yes. Decoding reads the plain-text value out of a detached textarea, whose content is parsed as RCDATA — no tags are parsed or executed, so even tag-like input never runs.
Is my text private?
Yes. Both encoding and decoding happen locally; nothing is uploaded.

Related tools