ASCII Table Reference
Look up any character’s ASCII code in every base.
What you provide
Result
'A' = 65
A printable ASCII character shown in every common base.
- Character
- A
- Decimal
- 65
- Hex
- 0x41
- Octal
- 0101
- Binary
- 01000001
- Name
- A
What this cannot tell you
- Covers standard 7-bit ASCII (0–127). Characters beyond that are Unicode, handled by other tools.
Take this with you
How this calculation works
Enter one character, a decimal code (65), or a hex code (0x41), and the tool resolves it to a single ASCII code point, then shows that code in decimal, hexadecimal, octal and binary at once, along with its name if it is a control character. Because ASCII is only 7 bits, every value fits in the range 0–127; anything you type that lands outside it is Unicode rather than ASCII.
What the results mean
- Control characters
- Codes 0–31 and 127 have no printable glyph — they signal formatting like tab (9), newline (10) and carriage return (13), or once-hardware signals like null (0) and escape (27).
- Printable range
- Codes 32–126 are the visible characters: space (32), then digits, punctuation, and the upper- and lower-case letters. 'A' is 65, 'a' is 97 — exactly 32 apart, which is how case conversion flips a single bit.
- The four bases
- The same code shown as decimal, hex, octal and binary. Hex (0x41) appears in string escapes and colour codes; octal (\101) turns up in older tools and file permissions; binary shows the 7 bits directly.
Common problems and fixes
- My character shows nothing, or says it is out of range
- It is beyond code 127 — an accented letter, a curly quote, an emoji or a symbol. Those are Unicode, not ASCII, and have no 7-bit code. A Unicode or code-point lookup tool will resolve them; this table deliberately stops at 127 so it never reports a false ASCII value.
- I can't tell which code a space or a tab is
- Space is 32 (the first printable code). Tab is 9, newline (line feed) is 10, and carriage return is 13 — all control codes, so they show a name rather than a visible glyph.
Frequently asked questions
What is the difference between ASCII and Unicode?
ASCII is the original 7-bit set of 128 characters covering English letters, digits and basic punctuation. Unicode is the vast superset that adds every other script, emoji and symbol — and its first 128 code points are identical to ASCII, which is why ASCII text is always valid Unicode.
What is the ASCII code for Enter or a new line?
There isn't one single code. Line feed (LF) is 10 and is what Unix and macOS use; carriage return (CR) is 13 and was used by classic Mac OS; Windows uses both, CR then LF (13, 10). This is the source of most 'wrong line endings' problems when moving text files between systems.
Why do hex codes start with 0x and octal with a backslash?
Those are the conventional prefixes so a base is never ambiguous. 0x marks hexadecimal, so 'A' is 0x41; in string literals it is usually written \x41. A leading zero or backslash (\101) marks octal. Decimal needs no prefix. This tool accepts the 0x form on input and shows all four bases on output.
Put this on your own site
Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.
<iframe src="https://runthetests.com/embed/ascii-table/" width="100%" height="560" style="border:1px solid #e5e5e5;border-radius:8px" title="ASCII Table Reference" loading="lazy"></iframe>
Preview it at https://runthetests.com/embed/ascii-table/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.