Developer tools

HTML Entity Encoder and Decoder

Free, no sign-up, works in your browser. Encode text into HTML entities so it shows safely on a web page, or decode entities like &, é and é back into readable text.

Direction
Encode

Enough to show code or user text safely inside a web page or an attribute.

Encoding happens on your device. Nothing you paste is sent anywhere.

How to use the HTML Entity Encoder and Decoder

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

Frequently asked questions

What are HTML entities?
Codes that stand for characters, such as &lt; for < and &amp; for &. Browsers show the character instead of treating it as part of the page's code.
Which characters must be encoded?
In page text and attributes, & < > " and ' are enough. Encoding accents and symbols as well helps when a page might not be saved as UTF-8.
Named or numbered entities?
Both work in every browser. Names like &eacute; are easier to read; numbers like &#233; exist for every character, including emoji.
Is my text uploaded?
No. Encoding happens on your device.
Is the HTML Entity Encoder and Decoder free?
Yes. It's free to use, with no sign-up and nothing to install.