ConvertAnyFiles

HTML Entity Encoder & Decoder

Escape text so it displays safely inside HTML, or turn entities like & and € back into readable characters.

Free · No sign-up · Files stay on your device

How to use HTML Entity Encoder / Decoder

  1. 1Choose Encode or Decode.
  2. 2Paste your text or HTML.
  3. 3Copy the result.

Features

  • Encode & < > " and '
  • Optionally encode all non-ASCII characters
  • Decode named, decimal and hex entities
  • Instant results
  • Runs locally

Why encode HTML?

Characters like <, > and & have special meaning in HTML. To show them as text, for example in a code sample or a user comment, they must be written as &lt;, &gt; and &amp;. Encoding user input is also a basic defence against cross-site scripting (XSS).

Frequently asked questions

Which entities can be decoded?

All of them: named entities like &copy; and &nbsp;, decimal like &#169; and hex like &#xA9;.

When should I encode non-ASCII characters?

Only for old systems that do not support UTF-8. Modern pages can use characters like é and € directly.

Is this the same as URL encoding?

No. URL encoding (%20) is for URLs. Use our URL Encoder for that.

Related tools