Skip to content
MoneyDeck

ASCII Table

Look up any ASCII character code in decimal, hex, octal and binary

Updated · Free, no signup

Numbers are read as decimal codes. Use “Treat input as text” to look up digit characters.

Result

A = 65 decimal = 0x41

Character

A

Decimal

65

Hexadecimal

0x41

Octal

101

Binary

01000001

HTML entity

A

Description

Latin capital letter A

Character breakdown (char dec hex oct binary)

A	65	0x41	101	01000001

ASCII reference table

DecHexOctBinaryCharHTMLDescription
320x2004000100000SP Space
330x2104100100001!!Exclamation mark
340x2204200100010""Quotation mark (double quote)
350x2304300100011##Number sign (hash)
360x2404400100100$$Dollar sign
370x2504500100101%%Percent sign
380x2604600100110&&Ampersand
390x2704700100111''Apostrophe (single quote)
400x2805000101000((Left parenthesis
410x2905100101001))Right parenthesis
420x2A05200101010**Asterisk
430x2B05300101011++Plus sign
440x2C05400101100,,Comma
450x2D05500101101--Hyphen-minus
460x2E05600101110..Full stop (period)

About the ASCII Table

This ASCII table lets you look up any character or code in one box. Type a character (A), a decimal code (65), a hex code (0x41 or \x41), a binary code (0b1000001), a control-code name (LF, ESC, NUL), caret notation (^C) or an escape sequence (\n) and you get the character with its decimal, hexadecimal, octal, binary and HTML entity forms plus a plain-English description. Paste a word or a short string instead and every character is broken down line by line.

Below the lookup, a reference table lists the 33 control characters, the 95 printable characters (32–126) or the extended range 128–255. Standard ASCII only defines codes 0–127; the extended range shown here is ISO-8859-1 (Latin-1), which is also the first 256 code points of Unicode, and for 128–159 the table notes the Windows-1252 character that many legacy files use instead of the invisible C1 controls.

It is meant for programmers debugging byte streams and escape sequences, students learning number bases, and anyone decoding a stray %0A or ' in a log. Everything runs in your browser.

How to use the ascii table

  1. 1Type a character, a code (65, 0x41, 0b1000001) or a control name such as LF or ESC.
  2. 2Read the decimal, hex, octal, binary and HTML entity values.
  3. 3Paste a word and turn on “Treat input as text” to break down every character.
  4. 4Pick a reference table range to browse control, printable or extended characters.

Formula and method

code = d₆·2⁶ + d₅·2⁵ + … + d₀·2⁰ • hex = code in base 16 • octal = code in base 8

ASCII assigns each character a number from 0 to 127, which fits in 7 bits. The same number is simply written in different bases: decimal (base 10), hexadecimal (base 16, prefixed 0x), octal (base 8) and binary (base 2, padded here to a full 8-bit byte). For example A is 65 = 64 + 1, so its binary form is 01000001, its hex form is 0x41 and its octal form is 101.

Codes 0–31 and 127 are control characters with standard abbreviations (LF, CR, ESC…). Codes 128–255 are not ASCII; this tool shows them as ISO-8859-1, which matches the first 256 Unicode code points, and notes the Windows-1252 character for 128–159. HTML entities use the named form where one exists (&, <) and the numeric &#n; form otherwise.

code
Character code (0–127 ASCII, 128–255 Latin-1)
d
Binary digit (bit) at each position

Worked examples

Look up the letter A

Capital A is code 65. 65 = 4×16 + 1, so it is 0x41 in hex; 65 = 1×64 + 0×8 + 1, so 101 in octal; and 64 + 1 sets bits 6 and 0, giving 01000001.

Decode a hex code from a log

0x7E = 7×16 + 14 = 126, the tilde. In octal 126 = 1×64 + 7×8 + 6 = 176, and in binary it is 01111110 — the last printable ASCII character before DEL (127).

What is LF (newline)?

Line Feed is control code 10 (0x0A), written \n in most languages. Windows text files end lines with CR LF (13, 10) while Linux and macOS use LF alone.

Break down a short string

H is 72 (0x48), lowercase i is 105 (0x69) and the exclamation mark is 33 (0x21). Lowercase letters are always 32 higher than their capitals, which is why i (105) = I (73) + 32.

Frequently asked questions

What is the ASCII code for a space?+

A space is ASCII 32 decimal, 0x20 in hex, 040 in octal and 00100000 in binary. It is the first printable character; everything below it is a control code.

What is the difference between ASCII and extended ASCII?+

ASCII is a 7-bit standard with 128 codes (0–127). “Extended ASCII” is an informal name for 8-bit code pages that add 128 more characters; the most common are ISO-8859-1 (Latin-1) and Windows-1252, which differ only in the 128–159 range.

How do I convert between uppercase and lowercase with ASCII codes?+

Lowercase letters are exactly 32 higher than uppercase: A is 65 and a is 97. In binary that is bit 5 (value 32), so toggling that single bit switches case — a classic trick in C and assembly.

What do CR and LF mean?+

CR (carriage return, 13, \r) moves to the start of the line and LF (line feed, 10, \n) moves down a line. Windows uses CR LF to end lines, while Linux and modern macOS use LF only, which is why files can show stray ^M characters.

Is ASCII the same as UTF-8?+

UTF-8 is backward compatible with ASCII: codes 0–127 are encoded as the same single byte. Characters above 127, including the Latin-1 range, take two to four bytes in UTF-8, so a byte value of 233 in a Latin-1 file is not é in UTF-8.

What is ASCII 0 (NUL) used for?+

NUL (0) marks the end of strings in C and is used as padding in binary formats. It is invisible, and many text tools strip or reject it, so a stray NUL often signals a binary file or encoding mismatch.

Related tools