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.
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 HTML Standard – Named character references
As of:
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).
- 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.
- Morse Code TranslatorTranslate text to Morse code and Morse code to text instantly. Play it as sound or flashing light, with adjustable speed (WPM and Farnsworth). Free.
- Aspect Ratio CalculatorCalculate the aspect ratio from width and height (1920 × 1080 = 16:9), find the missing side, decimal value, nearest standard ratio and CSS aspect-ratio.