iLoveMyFile

HTML Entity Encode/Decode

Convert special characters to HTML entities, or turn HTML entities back into characters.

Input

Paste HTML or text above.

How to use HTML Entity Encode/Decode

  1. Paste your HTML or text.
  2. Click Encode to escape special characters, or Decode to turn entities back into characters.
  3. Copy or download the result.

Frequently asked questions

Which characters are encoded?

The five characters that have a special meaning in HTML: & < > " and '. This is what you need to show code safely on a web page.

Which entities can be decoded?

All named entities such as &copy; and &nbsp;, and numeric ones such as &#169; and &#x1F600;.

What happens to an entity it does not recognise?

It is left exactly as it was, so nothing is lost.

Is my text uploaded to a server?

No. This tool runs entirely in your browser, so what you paste never leaves your device.