ASCII Table: Decimal, Hex, Octal, Binary and HTML Codes
ASCII characters with their decimal, hex, octal and binary codes.
ASCII is the 7-bit character code from 1963 (ANSI X3.4-1986 in its final form) that still sits under almost all text: its 128 codes are the first 128 of Unicode and of UTF-8, byte for byte. Codes 0 to 31 and 127 are control characters, made to steer printers and terminals; a few still matter every day, such as tab (9), line feed (10), carriage return (13) and escape (27). Codes 32 to 126 are the space, digits, letters and punctuation. Each row gives the code in decimal, hex, octal and binary, and the character; choose one to see its HTML entity, its escape in C and JavaScript, its caret notation (how a terminal shows a control code: ^C is code 3), and its URL encoding, each with a copy button. Search takes a character, a name (“tilde”, “line feed”) or a code written any of the usual ways: 65, 0x41, 41h, \x41, U+0041, A, 0b1000001, LF or ^J. Codes 128 to 255 are not ASCII: what they mean depends on the code page (Latin-1, Windows-1252 and others), so they are left out. The table can be copied, or sent as CSV.
How to use ASCII table
- Type a character, a code such as 65 or 0x41, or a name such as tilde into the search.
- Choose a row to see its HTML entity, escape, caret notation and URL encoding.
- Press a copy button, or Copy table to copy the whole table as CSV.
ASCII table: common questions
Is anything I search in the ASCII table sent anywhere?
No. The ASCII table is part of the app, so searches run in your browser, on your device, and nothing is sent anywhere. It works offline.
What is the ASCII code for a line feed?
Line feed is ASCII code 10 (0x0A), written \n in C and JavaScript and shown as ^J in caret notation. Carriage return is code 13 (0x0D), written \r.
Why are codes 128 to 255 missing from the ASCII table?
ASCII is a 7-bit code with 128 characters, 0 to 127. Codes 128 to 255 mean different things in different code pages, such as Latin-1 and Windows-1252, so the ASCII table leaves them out.
Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.