Related Tools
HTML encoding and decoding tool, providing HTML entity online Decode and Encode functions. This tool supports encoding reserved characters in HTML into HTML character entities, and converting HTML character entities into corresponding characters.
What is HTML entity
An HTML entity is a piece of text ("string") that begins with an ampersand (&) and ends
with
a
semicolon (;) . Entities are frequently used to display reserved characters (which would
otherwise be interpreted as HTML code), and invisible characters (like non-breaking
spaces).
You
can also use them in place of other characters that are difficult to type with a
standard
keyboard.
A numeric character reference refers to a character by its Universal Character
Set/Unicode code point, and uses the format:
nnnn;(decimal format)
or
hhhh;(hex format)
where nnnn is the code point in decimal form, and hhhh is the code point in hexadecimal form. The x must be lowercase in XML documents. The nnnn or hhhh may be any number of digits and may include leading zeros. The hhhh may mix uppercase and lowercase, though uppercase is the usual style. In contrast, a character entity reference refers to a character by the name of an entity which has the desired character as its replacement text. The entity must either be predefined (built into the markup language) or explicitly declared in a Document Type Definition (DTD). The format is the same as for any entity reference:
&name;
where name is the case-sensitive name of the entity. The semicolon is required, unless marked otherwise in the table below.
nnnn;(decimal format)
or
hhhh;(hex format)
where nnnn is the code point in decimal form, and hhhh is the code point in hexadecimal form. The x must be lowercase in XML documents. The nnnn or hhhh may be any number of digits and may include leading zeros. The hhhh may mix uppercase and lowercase, though uppercase is the usual style. In contrast, a character entity reference refers to a character by the name of an entity which has the desired character as its replacement text. The entity must either be predefined (built into the markup language) or explicitly declared in a Document Type Definition (DTD). The format is the same as for any entity reference:
&name;
where name is the case-sensitive name of the entity. The semicolon is required, unless marked otherwise in the table below.
HTML reserved characters
Display | Names | Description | Unicode code point(decimal) |
---|---|---|---|
< | < | less-than sign | < |
> | > | greater-than sign | > |
& | & | ampersand | & |
" | " | quotation mark | " |
HTML common character entity references
HTML entity names are case sensitive
Display | Names | Description | Unicode code point(decimal) |
---|---|---|---|
| space |   | |
< | < | less-than sign | < |
= | = | equals sign | = |
> | > | greater-than sign | > |
& | & | ampersand | & |
" | " | quotation mark | " |
' | ' | apostrophe | ' |
$ | $ | dollar sign | $ |
£ | £ | pound sign | £ |
¥ | ¥ | yuan sign | ¥ |
€ | € | euro sign | € |
© | © | copyright sign | © |
® | ® | registered sign | ® |
™ | ™ | trademark symbol | ™ |
¢ | ¢ | cent sign | ¢ |