PocketPlay
中文

HTML Entities Encode / Decode

Convert text to HTML entities (named, decimal or hex) and decode entities back to plain text, with a searchable entity table.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

Safe for putting text inside HTML: only the five characters that could break markup are escaped.

Plain text

Encoded result

Common HTML entities

Click any row to copy its entity name.

CharacterNameDecimalHexDescription

How to use the HTML entity encoder

  1. Choose Encode to turn characters into entities, or Decode to turn entities back into readable text.
  2. When encoding, pick the format — named (&copy;), decimal (&#169;) or hex (&#xA9;) — and whether to escape only & < > " ' or every non-ASCII character.
  3. Paste your text on the left and copy the result on the right; use the table below to look up a single entity.

FAQ

Which characters must I escape in HTML?

Inside page text you must escape &, < and >. Inside an attribute value you must also escape the quote character you used — " or '. The default “Only & < > " '” setting covers all five.

Do emoji and Chinese characters survive encoding?

Yes. Astral characters such as 🎉 are encoded as one code point (&#x1F389;), not as two broken halves, so decoding gives you the original character back.

Is decoding here safe?

Yes. The decoder works on the text itself with its own lookup table — it never writes your input into the page as HTML, so a pasted <script> can never run.