ASCII table with decimal, hex, octal, binary and Unicode lookup
Enter a character or a code above – A, é, €, 65, 0x41 or U+20AC – and see at once how it is written in decimal, hex, binary, UTF-8, HTML, CSS and JavaScript. The complete ASCII table below is there for reference.
Source: IETF RFC 20 – ASCII format for Network Interchange (Codetabelle, Steuerzeichen). Updated: .
How it is calculated
ASCII (American Standard Code for Information Interchange) defines 128 characters: codes 0 to 31 are control characters, 32 is the space, 33 to 126 are printable characters (digits, unaccented letters, punctuation) and 127 is DEL. Each character needs 7 bits, usually stored in a whole byte.
How to use the table
- Look up a character: enter a character or code above – the result shows decimal, hex, octal, binary and how to write it in HTML, CSS and JavaScript.
- Filter the table: under “Show table” pick only control characters, printable characters or the extended range.
- Keep going: the text to binary converter shows whole texts as bytes; the number system converter converts plain numbers.
Control characters
Codes 0–31 date from the teleprinter era and are not printable. Today the important ones are tab (9), line feed LF (10, the line ending on Unix and in the web), carriage return CR (13, together with LF the Windows line ending) and escape (27). The table shows them as visible placeholders (␀, ␊ …) so the row does not look empty.
Extended range 128–255
ASCII ends at 127. Codes 128–255 are not part of ASCII; here the table shows the Unicode block “Latin-1 Supplement” (identical to ISO 8859-1): accented letters and some symbols. Codes 128–159 are control characters there. Windows-1252 assigns 128–159 differently (for example “€” at 128) – it is not the same as Latin-1. In UTF-8 every character from 128 upward takes two or more bytes; the lookup above shows this in the UTF-8 row.
Looking up Unicode characters
The lookup understands any Unicode character, including the euro sign or emoji. It shows the code point (U+…), the UTF-8 bytes (RFC 3629), the UTF-16 units (a surrogate pair above U+FFFF, RFC 2781) and ready-made notations: € or named € in HTML, \20AC in CSS, \u20AC in JavaScript.
Windows-1252, search, converter and printing
"Show table" offers the range 128–255 twice: as Latin-1 (ISO 8859-1, which matches the Unicode code points) and as Windows-1252. They differ only at 128–159: Windows-1252 puts 27 printable characters there, such as € at 128, „ at 132 and ™ at 153; codes 129, 141, 143, 144 and 157 are not assigned. The "Meaning" column then gives the Unicode code point of the character.
"Search the table" filters the rows, a click on a cell copies its content, and "Print table" prints the table only. The converter turns whole texts into codes and back: "Hi" becomes 72 105 in decimal, 48 69 in hexadecimal and 01001000 01101001 in binary. Control characters carry their names from the standard (RFC 20), for example SOH – Start of Heading.
Frequently asked questions
What is the ASCII table?
A mapping of 128 characters to the numbers 0 to 127: control characters, space, digits, unaccented letters and punctuation. It is the foundation of Unicode and UTF-8.
How many characters does the ASCII table have?
128 characters (codes 0–127): 95 printable (32–126) and 33 control characters including DEL. Codes 128–255 belong to extended character sets such as Latin-1.
What are the ASCII codes of space, A and a?
Space is code 32 (hex 20), capital A is 65 (hex 41), lowercase a is 97 (hex 61). Upper and lower case letters differ by 32.
What is the difference between ASCII and Unicode?
ASCII has 128 characters, Unicode over 150,000 from nearly all scripts. The first 128 Unicode characters are identical to ASCII – in UTF-8 even byte for byte.
How do I write a special character like € or é in HTML?
As an entity: € or numeric € for €, é or é for é. The lookup above shows both notations for every character.
What are the ASCII special characters?
The printable punctuation and symbols sit at 33–47, 58–64, 91–96 and 123–126, for example ! # $ % & @ [ ] { } ~. Filter to “Printable characters” above.
Sources and legal basis
- IETF RFC 20 – ASCII format for Network Interchange (Codetabelle, Steuerzeichen)
- § 3: IETF RFC 3629 – UTF-8, a transformation format of ISO 10646
- § 2.1: IETF RFC 2781 – UTF-16, an encoding of ISO 10646 (Surrogatpaare)
- Unicode Consortium – Latin-1 Supplement (U+0080–U+00FF)
- WHATWG Encoding Standard – index windows-1252 (128–159)
- WHATWG HTML Standard – Named character references
As of: · Editorial policy
Related tools
- Text to binary converter (and binary to text)Convert text to binary, hex, decimal or octal and translate binary back to text – with UTF-8 for accents and emoji, right in your browser, nothing uploaded.
- Number base converter with stepsConvert between binary, octal, decimal, hex and any base from 2 to 36 – with full working, fractions, repeating digits and two’s complement (8–64 bit).
- Special Characters to Copy and PasteSpecial characters to copy with one click: symbols, arrows, currency, math and accented letters, with Unicode, HTML and Windows Alt codes. Free, no sign-up.
- HTML Entities Encode and DecodeHTML entities encode and decode: convert special characters into entities or back into text, named, decimal or hexadecimal, locally in your browser.
- Base64 Encode and DecodeEncode and decode Base64 and Base64url with proper UTF-8, plus URL encode/decode (percent-encoding). Clear error messages, runs locally in your browser.
- ASCII art generatorCreate ASCII art: turn text into big lettering made of characters or convert a photo to ASCII – with width, character set and contrast. Copy or save as .txt.
- What is my IP address?What is my IP? See your public IPv4 or IPv6 address at once, plus approximate location, internet provider and browser details. Free, never stored.
- Chmod CalculatorChmod calculator: tick the permissions or type 755, rwxr-xr-x or u=rwx and see every notation at once, plus the command to copy. Free, runs in your browser.
- IEEE 754 converterIEEE 754 converter for half, single and double: convert decimal, hex or bits, and see sign, exponent, mantissa and the exact stored value with rounding error.