HTML Entities List & Encoder

Every named HTML entity with its codes, plus an encoder and decoder.

Free tools that run in your browser. Nothing you type, open or create is uploaded to NerdBible or anyone else.

Spaces and invisible characters 22

Spaces of fixed width, the soft hyphen, joiners and direction marks. They render as nothing or as blank space, so the entity is often the clearest way to write them.

CharEntityDecimalHexUnicode name
␣Tab Character
␣Line Feed
␣ Non-Breaking Space
␣Soft Hyphen
␣En Space
␣Em Space
␣Three-Per-Em Space
␣Four-Per-Em Space
␣Figure Space
␣Punctuation Space
␣ Thin Space
␣ Hair Space
␣​ ​ ​ ​Zero Width Space
␣Zero Width Non-Joiner
␣Zero Width Joiner
␣Left-to-Right Mark
␣Right-to-Left Mark
␣Medium Mathematical Space
␣Word Joiner
␣⁡Function Application
␣⁢Invisible Times
␣⁣Invisible Separator

HTML syntax and ASCII punctuation 30

Characters on every keyboard. Only the ampersand, the less than sign and quotes inside attributes ever need escaping; the other names exist but are rarely used.

CharEntityDecimalHexUnicode name
!Exclamation Mark
""Quotation Mark
#Number Sign
$Dollar Sign
%Percent Sign
&&Ampersand
'Apostrophe
(Left Parenthesis
)Right Parenthesis
**Asterisk
+Plus Sign
,Comma
.Full Stop
/Solidus (Slash)
:Colon
;Semicolon
<&LT;Less-Than Sign
=Equals Sign
>&GT;Greater-Than Sign
?Question Mark
@At Sign
[&lbrack;Left Square Bracket
\Backslash
]&rbrack;Right Square Bracket
^Circumflex Accent
_&UnderBar;Underscore
`&DiacriticalGrave;Grave Accent (Backtick)
{&lbrace;Left Curly Bracket
|&verbar; &VerticalLine;Vertical Line
}&rbrace;Right Curly Bracket

Punctuation and typography 50

Typographic quotes, dashes, bullets, the ellipsis and marks such as the section sign and pilcrow.

CharEntityDecimalHexUnicode name
¡Inverted Exclamation Mark
§Section Sign
¨&die; &Dot; &DoubleDot;Diaeresis
«Left Guillemet
¯&strns;Macron
´&DiacriticalAcute;Acute Accent
Pilcrow
·&CenterDot; &centerdot;Middle Dot
¸&Cedilla;Cedilla
»Right Guillemet
¿Inverted Question Mark
ˆModifier Letter Circumflex Accent
ˇ&Hacek;Caron
˘&Breve;Breve
˙&DiacriticalDot;Dot Above
˚Ring Above
˛Ogonek
˜&DiacriticalTilde;Small Tilde
˝&DiacriticalDoubleAcute;Double Acute Accent
‐&dash;Hyphen
–En Dash
—Em Dash
―Horizontal Bar
‖&Verbar;Double Vertical Line
‘&OpenCurlyQuote;Left Single Quote
’&CloseCurlyQuote; &rsquor;Right Single Quote
‚&lsquor;Single Low Quote
“&OpenCurlyDoubleQuote;Left Double Quote
”&CloseCurlyDoubleQuote; &rdquor;Right Double Quote
„&ldquor;Double Low Quote
†Dagger
‡&ddagger;Double Dagger
•&bullet;Bullet
‥Two Dot Leader
…&mldr;Ellipsis
‰Per Mille Sign
‱Per Ten Thousand Sign
′Prime
″Double Prime
‴Triple Prime
‵&backprime;Reversed Prime
‹Single Left Angle Quote
›Single Right Angle Quote
‾&OverBar;Overline
⁁Caret Insertion Point
⁃Hyphen Bullet
⁏Reversed Semicolon
⁗Quadruple Prime
❲Light Left Tortoise Shell Bracket Ornament
❳Light Right Tortoise Shell Bracket Ornament

Currency 5

Currency signs with a named entity. Most other currency signs, such as the rupee or the bitcoin sign, have no name and are written as numbers.

CharEntityDecimalHexUnicode name
¢Cent Sign
£Pound Sign
¤Currency Sign
¥Yen Sign
€Euro Sign

Symbols and signs 54

Copyright and trademark signs, the degree sign, card suits, stars, check marks and other symbols.

CharEntityDecimalHexUnicode name
¦Broken Bar
©&COPY;Copyright Sign
®&circledR; &REG;Registered Sign
°Degree Sign
̑Combining Inverted Breve
⃛&TripleDot;Combining Three Dots Above
⃜Combining Four Dots Above
™&TRADE;Trademark Sign
⌅&barwedge;Projective
⌆&doublebarwedge;Perspective
⌌Bottom Right Crop
⌍Bottom Left Crop
⌎Top Right Crop
⌏Top Left Crop
⌐Reversed Not Sign
⌒Arc
⌓Segment
⌕Telephone Recorder
⌖Position Indicator
⌜&ulcorner;Top Left Corner
⌝&urcorner;Top Right Corner
⌞&llcorner;Bottom Left Corner
⌟&lrcorner;Bottom Right Corner
⌢&sfrown;Frown
⌣&ssmile;Smile
⌭Cylindricity
⌮All Around-Profile
⌶Apl Functional Symbol I-Beam
⌽Apl Functional Symbol Circle Stile
⌿Apl Functional Symbol Slash Bar
⎴&OverBracket;Top Square Bracket
⎵&UnderBracket;Bottom Square Bracket
⎶Bottom Square Bracket over Top Square Bracket
⏢White Trapezium
⏧Electrical Intersection
␣Open Box
Ⓢ&circledS;Circled Latin Capital Letter S
★&bigstar;Black Star
☆White Star
☎Black Telephone
♀Female Sign
♂Male Sign
♠&spadesuit;Spade Suit
♣&clubsuit;Club Suit
♥&heartsuit;Heart Suit
♦&diamondsuit;Diamond Suit
♪Eighth Note
♭Music Flat Sign
♮&natural;Music Natural Sign
✓&checkmark;Check Mark
✗Ballot X
✠&maltese;Maltese Cross
✶Six Pointed Black Star
❘Light Vertical Bar

Shapes and box drawing 66

Geometric shapes, box drawing lines and block elements, used for diagrams, tables in plain text and simple icons.

CharEntityDecimalHexUnicode name

Arrows 86

Single, double, curved and harpoon arrows from the Arrows blocks.

CharEntityDecimalHexUnicode name

Maths operators 263

Operators, relations, set notation, logic and brackets from the Mathematical Operators blocks.

CharEntityDecimalHexUnicode name

Letterlike symbols, numbers and fractions 56

Superscript digits, vulgar fractions, Roman numeral forms and letterlike signs such as the real part symbol.

CharEntityDecimalHexUnicode name

Latin letters with accents 194

Accented and special Latin letters used in European languages, plus ligatures.

CharEntityDecimalHexUnicode name

Greek letters 59

The Greek alphabet in upper and lower case, plus the variant forms used in maths.

CharEntityDecimalHexUnicode name

Cyrillic letters 92

Russian and other Cyrillic letters. HTML has names for them, though typing the letters directly is the normal way to write Cyrillic.

CharEntityDecimalHexUnicode name

Advanced maths and arrows 399

Specialist operators, negated relations written as a base character plus a combining mark, and long arrows used in mathematical notation.

CharEntityDecimalHexUnicode name

Maths letters: script, fraktur and double-struck 135

Letter styles used as distinct symbols in mathematics, such as the double-struck R for the real numbers. They are not a way to style ordinary text.

CharEntityDecimalHexUnicode name

Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).

How to use it

  1. Search the list by name, character, number or description, or jump to a section.
  2. Click a code to copy it, or open a character for every escape format and notes on when to use it.
  3. To convert text, open the Encode & decode tab, choose a direction and paste.

Questions

Which characters must be escaped in HTML?

The ampersand and the less than sign in text, plus the quote character that wraps an attribute value. Escaping > and both kinds of quote as well is a safe habit.

Do I need entities for accents and emoji?

Not on a page saved as UTF-8, which is nearly every page today. Entities for them are only needed when a system mangles non-ASCII text, such as some email tools and old databases.

Named or numeric entities?

Both work in every browser. Names such as &copy; are easier to read; numbers such as &#169; work for every character, including the ones without a name, and in XML.

Why do some characters have several names?

HTML5 took over the names used in MathML, so many characters have a short HTML 4 name and longer MathML ones, such as &rarr; and &RightArrow;. They all produce the same character; each character here has one page, listing every name.

Does escaping make user input safe?

Escaping text before putting it in HTML is the core defence against cross-site scripting, but the right escaping depends on where the text goes: a URL, a script or a style need their own rules.

About this tool

What is an HTML entity?

An HTML entity is a way to write a character with plain ASCII text. A named reference such as &copy; or a numeric one such as &#169; both display the copyright sign. Browsers know 2,125 names, taken from the WHATWG HTML Standard, and many characters have several names because HTML5 adopted the names used in MathML.

What this page covers

  • The full list, one row per character, grouped into sections such as spaces, punctuation, currency, arrows, maths and Greek letters.
  • A page per character with every name, the decimal and hex references, CSS, JavaScript, Python and URL escapes, its Unicode name, block and category, and notes on when to use it for the most common ones.
  • An encoder and decoder on the second tab, which escapes text with names or numbers and decodes every name in the list.

Which ones you actually need

On a page saved as UTF-8 you can type almost any character directly. The ones that matter are &amp; and &lt; in text, the quote that wraps an attribute value, and invisible characters such as the no-break space, which are easier to see in source as entities. In XML only five names are predefined, so use numeric references there. The list is built from the WHATWG entity file and the Unicode Character Database; nothing on the page is sent anywhere.

Related tools