HTML Entities Reference

Look up HTML named entities, numeric references and the characters they produce.

Searchable HTML character reference with named entity, numeric and hex forms plus the rendered glyph. Find the right code for ampersand, copyright, em dash, arrows, fractions and more. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is the difference between named and numeric HTML entities?

A named entity such as © uses a memorable keyword, while a numeric reference such as © or © uses the character's code point in decimal or hex. Numeric references always work, whereas named ones rely on the document recognising that name.

Quick HTML character reference

HTML entities (character references) let you write characters that would otherwise break markup or be hard to type. This tool lists common HTML5 named references alongside their numeric and hexadecimal equivalents and the glyph each one renders. Search by name, description, glyph or decimal code point, then copy the form you need with one click.

How it works

Each character is stored by its Unicode code point. From that single number the tool derives three interchangeable forms: the named entity &name;, the numeric reference &#decimal;, and the hex reference &#xHEX;. The rendered glyph comes from String.fromCodePoint(cp). All three forms produce the same character in a browser, so you can pick whichever is most readable for your codebase.

The three forms side by side

CharacterNamed entityDecimalHex
& (ampersand)&&&
< (less-than)&lt;&#60;&#x3C;
> (greater-than)&gt;&#62;&#x3E;
" (double quote)&quot;&#34;&#x22;
' (apostrophe)&apos;&#39;&#x27;
© (copyright)&copy;&#169;&#xA9;
(em dash)&mdash;&#8212;&#x2014;
(euro)&euro;&#8364;&#x20AC;
(right arrow)&rarr;&#8594;&#x2192;
½ (one half)&frac12;&#189;&#xBD;

When to use named vs numeric

Named entities (&copy;, &mdash;) read well in source code and are the natural choice for the everyday characters above. Use them freely as long as the document declares UTF-8 — every modern browser supports all HTML5 named references.

Numeric references (&#8364; or &#x20AC;) are the safer bet when:

  • You are unsure whether a named entity is in scope (older HTML4 had a smaller set).
  • The character has no named form but you still want to keep the file ASCII-safe.
  • You are generating markup programmatically and want a single consistent escaping strategy.

Which characters must always be escaped?

Five characters carry special meaning in HTML and must be escaped whenever they appear as literal text content or inside attribute values:

  • &&amp; — always, even in plain text nodes.
  • <&lt; — prevents the parser from opening a tag.
  • >&gt; — technically only required in certain contexts but safer to escape.
  • "&quot; — inside double-quoted attribute values.
  • '&apos; or &#39; — inside single-quoted attribute values.

HTML entities are for HTML display only; they are not the same as URL percent-encoding (%26, %3C), which escapes characters for use inside links. The two encoding systems serve different layers and are not interchangeable.