HTML Entity Encoder and Decoder

Encode special HTML characters or decode common named entities and numeric character references.

Workspace

Result

Your result will appear here.

How to use it

  1. Fill in text or html entities, direction.
  2. Select “Convert” to see the result.

Worked example

Input
<h1>Tea & coffee</h1>
Output
&lt;h1&gt;Tea &amp; coffee&lt;/h1&gt;

Frequently asked questions

Which HTML entities can I decode?

The tool handles numeric references in decimal or hexadecimal and common names such as amp, lt, gt, quot, apos and nbsp. End entities with a semicolon.