Skip to main content

HTML Entity Encoder

Encode and decode HTML entities like &, <, >, and more.

htmlentitiesescape
Read the guide
Shortcuts:⌘ KSearch

Encode options

Common entities

NameNumericCharacter

Frequently Asked Questions

Why didn't Encode change every character in my text?

Because the default mode only escapes the special HTML characters `&`, `<`, `>`, `"`, and apostrophes. If you also want characters like `é` or `€` encoded, turn on the non-ASCII option.

Can it decode both named entities and numeric ones?

Yes. The decoder feeds the input through a browser textarea element, so common named entities like `&amp;` and numeric forms like `&#169;` both decode normally.

What does `Encode all non-ASCII chars` do?

It walks every character and converts anything above code point 127 into a numeric entity like `&#8364;`. ASCII characters are left alone unless they were already escaped by the special-character option.

Why is there an option for special chars only?

That matches the most common use case: making HTML-safe text without turning the whole string into entities. It is useful when you just need to escape markup-sensitive characters before embedding text in HTML.

Does the reference table include every HTML entity?

No. It is only a short reference list of common entities such as ampersand, quotes, nbsp, copyright, euro, and a few others. The converter itself is not limited to just those rows.

Related Tools