Developer Tools

HTML Entity Encoder / Decoder

Convert text to HTML entities and back, handling reserved characters and numeric entities.

<a href="x">Tom & Jerry</a>

How to use it

  1. Choose a direction Encode to entities, or decode back to text.
  2. Paste your text Plain text to encode, or entities to decode.
  3. Copy the result Grab the converted output with one click.

Examples

<b> &lt;b&gt;
&amp; &

About this tool

Displaying code or user text inside a web page means escaping the characters that would otherwise be treated as markup. This tool encodes those reserved characters into HTML entities, and decodes entities back into readable text.

Encoding protects against broken layouts and a class of security bugs, while decoding is handy for reading escaped content. It handles named entities and numeric references in both decimal and hexadecimal form, all locally in your browser.

Frequently asked questions

Which characters are encoded?

The reserved HTML characters — ampersand, less-than, greater-than, double quote and apostrophe — which keeps text safe to place inside markup.

Can it decode numeric entities?

Yes. Decoding handles named entities plus decimal (&#65;) and hexadecimal (&#x41;) numeric references.

Related tools

Updated June 13, 2026