Back to home

ASCII Table and HTML Entities

Find the code of a character or the HTML entity for a symbol. Switch between the ASCII table and the entity list and copy what you need.

  1. Choose ASCII or HTML entities
  2. Search by character, name or code
  3. Copy the character or entity
Loading the tool...

Your files never leave your device

How to find a code or entity

Switch between the ASCII table and the list of HTML entities, and search by character, name or code. In the ASCII table each row shows the decimal and hexadecimal code and the character, with a Copy button for the character. In the entity list each row shows the character, its named entity and its numeric entity, with a Copy button for the named entity. The entity list covers about 70 common symbols and reserved characters. It is handy when you need a symbol that is not on your keyboard or want to know how to write a reserved character in HTML.

A worked example

The capital letter A is code 65 in decimal and 41 in hexadecimal, and the space is 32. To show the text <b> on a web page without it being read as a tag, write &lt;b&gt;. The copyright sign has the named entity &copy; and the numeric entity &#169;, and the euro sign is &euro; or &#8364;. Both forms display the same character.

Common mistakes

Forgetting the semicolon at the end of an entity can make a browser show the text instead of the symbol. Always escape the ampersand itself as &amp; when you want to show a literal one in HTML. Do not overuse entities: if your page is saved as UTF-8, you can type most characters directly, and entities are needed mainly for the reserved characters and for symbols that are hard to type.

Frequently asked questions

What is ASCII?

A character set of 128 codes for letters, digits, punctuation and control characters. It is the base of most modern text encodings.

What are control characters?

Codes 0 to 31 and 127, used for things like line feed and tab, not printable symbols.

What is an HTML entity?

A text code that starts with an ampersand and ends with a semicolon, used to show reserved or special characters.

When should I use entities?

When a character would be read as HTML code, or when it is hard to type.

What is the difference between named and numeric entities?

Named ones use a word; numeric ones use the Unicode code point and work for any character.

Is anything uploaded?

No. The tables run on your device.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D