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.
Tips and notes
- Always escape
&,<and>as&,<and>inside text content to keep the parser happy. - Inside attribute values, also escape quotes with
"or'. - Numeric references such as
€for the euro sign are the safest choice when you are unsure a named entity is supported. - HTML entities are for HTML display only; they are not the same as URL percent-encoding, which escapes characters for use inside links.