AllKit

HTML Entity Encoder & Decoder (& → &)

100% freeRuns in your browserNo sign-up

About the HTML Entity Encoder / Decoder

HTML reserves characters like <, >, & and quotes for markup, so displaying them as text requires entities such as &lt; and &amp;. This tool encodes plain text into safe entities and decodes entity soup back into readable characters — including named accents (&eacute;), decimal (&#233;) and hex (&#xE9;) forms.

Typical uses: pasting code snippets into blog posts, sanitizing user-provided strings before templating, and cleaning text copied from badly exported documents.

How to use the HTML Entity Encoder / Decoder

  1. Paste your text into the input.
  2. Click Encode or Decode.
  3. Copy the converted result.

Frequently asked questions

Which characters actually need encoding?

Only & < > (and quotes inside attributes) are mandatory; encoding others is optional. This tool encodes the safe minimal set by default and offers an “encode all non-ASCII” mode for paranoid contexts like XML.

Why did my &amp;amp; become &amp;?

You decoded once — the original text was double-encoded. Encode/decode repeatedly to step through each layer.

Does it decode numeric entities like &#8212;?

Yes — decimal and hexadecimal numeric references for any code point are supported, including emoji.

Related tools