HTML Entity Articles & Guides

Everything you need to know about HTML entities — encoding, decoding, reference tables, and real-world fixes.

Practical HTML Entity References

These guides focus on the entity problems developers actually hit in production: the complete entity reference table, encoding and decoding in JavaScript, PHP, and Python, double-encoded text, and the non-breaking space.

Start with the complete HTML entities list if you need a reference, or jump to the language guide and double-encoding fix when debugging escaped output, CMS content, feeds, or API responses.

Guide thumbnail: How to Fix Double-Encoded HTML Entities

How to Fix Double-Encoded HTML Entities

Seeing & or < as literal text on your page? Learn what double-encoding is, why CMSes cause it, and how to detect and fix it for good.

Guide thumbnail: Encode & Decode HTML Entities in JS, PHP & Python

Encode & Decode HTML Entities in JS, PHP & Python

The canonical, copy-paste code for encoding and decoding HTML entities in JavaScript, PHP, and Python — with the gotchas that bite each one.

Guide thumbnail: What Is  ? The Non-Breaking Space Explained

What Is  ? The Non-Breaking Space Explained

What   does, when to use it instead of a normal space, how it relates to   and Unicode U+00A0, how to type it, and the pitfalls to avoid.

Guide thumbnail: HTML Entities List: Complete Reference Table

HTML Entities List: Complete Reference Table

A complete, scannable HTML entities list grouped by category, with named, decimal, and hex codes plus the rendered character for every symbol you need.

Recommended Learning Path

  1. Learn the reserved characters and the named, decimal, and hex notations from the entities list.
  2. Compare the encoding functions in JavaScript, PHP, and Python before escaping output in code.
  3. Read the double-encoding guide when entities show up as literal text like & on a page.
  4. Use the encoder on the homepage to test edge cases like quotes, symbols, Unicode, and already-encoded strings.

Need to Encode HTML Entities?

Encode and decode HTML entities instantly — supports named entities, decimal codes, hex codes, and Unicode symbols.

Open HTML Entity Encoder