HTML Entity Encoder & Decoder

Encode special characters as HTML entities and decode entities back to text.

This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.

Input
Text or HTML entities
Output
Encoded or decoded text
Category
Developer Tools
Status
Available now
Price
Free — no subscription, no account

How to use HTML Entity Encoder & Decoder

  1. Paste text to encode, or paste HTML entities to decode.
  2. Pick the encoding level — minimal, named, numeric or encode-everything.
  3. Copy the result; the stats show how many characters were converted.

Frequently asked questions

What is the difference between the encoding levels?

Minimal encodes only the characters that are unsafe in HTML (&, <, >, " and '). Named uses friendly entities like &copy; where one exists. Numeric uses &#NNN; everywhere. Encode-everything turns every character into a numeric entity.

Does decoding handle both &#169; and &#xA9;?

Yes. Decoding understands named entities, decimal numeric entities and hexadecimal numeric entities in both upper and lower case.

Is my text sent to a server?

No. Encoding and decoding both run in your browser.

Is the HTML Entity Encoder free?

Yes. It is completely free, needs no account, and has no usage limit.

Related tools