ASCII Converter Calculator

Every character you type on any keyboard, phone or terminal anywhere is a number wearing a costume, and ASCII is the costume chart: H is 72, a is 97, a space is 32. This converter shows the numbers — enter text and get its ASCII codes in decimal, hexadecimal and binary — or run it backwards, pasting codes to recover the text, for debugging, programming and every puzzle that speaks in numbers.





The Table Behind the Text

ASCII — the American Standard Code for Information Interchange, standardised in 1963 and revised in 1967 — assigns numbers 0–127 to the characters of English text and the control signals of teleprinter machinery. The printable republic runs from 32 (space) to 126 (~): digits at 48–57, capitals at 65–90, lowercase at 97–122, punctuation in the seams. The layout hides deliberate kindnesses this converter makes visible: the digits' codes end in their values (48 is "0", 57 is "9" — the low nibble is the digit), capitals and lowercase differ by exactly 32 (one bit — case-insensitive comparison was a hardware trick before it was a software one), and the control codes below 32 (10 for newline, 13 for carriage return, 27 for escape) still run the terminals of the world. Unicode inherited all 128 assignments untouched, which is why this sixties table remains the ground floor of every text system in use.

Worked Example: Two Letters, Three Bases

The default input is the smallest honest greeting: "Hi". H is ASCII 72 in decimal, 48 in hex, 01001000 in binary; i is 105, 69, 01101001. The three columns are the same two numbers in three notations, and different crafts swear by different ones: decimal is the human reference (character charts, Alt codes), hex is the programmer's working form (compact, byte-shaped — every byte is exactly two hex digits), and binary is the hardware truth, rarely read by choice but always there to settle arguments. Decoding runs the decimal column backwards: paste 72 105 and "Hi" returns — the round trip that verifies any converter, this one included, before it is trusted with a longer string.

Where ASCII Conversion Earns Its Keep

Four working habitats justify the converter's existence beyond curiosity. Debugging: invisible characters (the non-breaking space at 160 in extended sets, the zero-width gremlins of web text) confess instantly when a string is dumped as codes — the "identical" texts that compare unequal are always caught this way. Protocols and files: specifications speak in codes (a CSV's comma is 44, its newline 10 or the 13-10 pair), and hand-building or inspecting payloads needs the table at conversational speed. Programming: character arithmetic (validating ranges, Caesar shifts, checksum toys) is code-point arithmetic, practised here without an IDE. Puzzles: decimal strings in the 65–122 ranges are a genre unto themselves — the sibling A1Z26 page covers the alphabet-position dialect, and the FAQ below gives the telling difference between the two.

ASCII, Extended ASCII and Unicode: The Honest Boundaries

Classic ASCII ends at 127, and this converter says so rather than bluffing: characters beyond it return their Unicode code points, which is what modern systems actually store — é at 233, the euro sign at 8364, emoji in the hundred-thousands. The "extended ASCII" code pages of the DOS era (128–255 varying by language) are historical dialects no current standard endorses, and UTF-8 — the encoding that rules the web — stores ASCII characters in single identical bytes while encoding the rest in two to four bytes whose values are not the code points themselves. A converter's duty is to label which number it is showing; this one shows code points, names them, and keeps the first 128 exactly where 1963 put them.

The Eighth Bit: Parity and Company

ASCII's 7-bit design left the eighth bit of every byte unemployed, and the early networks hired it as a checker: the parity bit, set so each byte's 1-bits counted even (or odd), catching single-bit transmission errors at the character level. The bit's descendants run the world's error detection (the parity calculator on this hub works the same arithmetic by hand), and its other career — the extended characters of code pages — is the history the boundaries section summarised. Converting a character and finding its code under 128 with an even or odd population of 1s is not trivia; it is the visible tip of the reliability machinery that let 1960s hardware move text across noisy telephone lines at all, and whose descendants still checksum the modern internet's every packet.

The Daily Dozen Codes

Working fluency needs only a dozen codes by heart, and the converter explains each one's staying power. 32 space — the most common character in most text, and the pivot of word processors everywhere. 10 and 13, line feed and carriage return — the line-ending schism. 9 tab, whose rendering width is a setting, not a constant — source of a thousand misaligned files. 48–57, the digits, ordered and value-coded. 65 and 97, the two A's, 32 apart. 46 period and 44 comma — sentence punctuation and data punctuation, one code apart, a confusion every CSV parser has survived. 34 and 39, the double and single quotes, whose smart-quote impostors (8220, 8217 in Unicode) break code copied from web pages weekly. Know these and the converter becomes a verifier of hunches rather than a lookup of first resort — which is all fluency ever means.

Reading the Binary Column by Hand

The binary output is not for memorising — it is for the day a string of bits must be read without tools, and the method is place value. Split into bytes of eight; each byte's bits are worth 128, 64, 32, 16, 8, 4, 2, 1 from the left. The greeting's first byte, 01001000, collects 64 + 8 = 72 — H, by the decimal column. Practise on the alphabet's range and a pattern surfaces that programmers carry for life: capitals all begin 010xxxxx (64 plus their 1–26 position's elder bits) and lowercase 011xxxxx — the case bit, 32, sitting visibly in the third position. A converter that prints binary is quietly teaching the machine's handwriting; the lesson costs one worked byte, and it repays the student every time a hex dump or a protocol trace crosses the desk again.

Related Tools

More from the Other Calculators hub: the Letters to Numbers Converter — the puzzle dialect (A=1) of the same idea — and the Password Entropy Calculator, where character sets become security.

Frequently Asked Questions

What is the ASCII code for A?

Capital A is 65; lowercase a is 97 — the 32-apart pairing that runs through the whole alphabet (B 66, b 98, … Z 90, z 122), and which makes case-folding a single-bit operation in the binary this converter prints. The space is 32, the digit characters run 48 ("0") to 57 ("9"), and the common punctuation scatters through the seams: exclamation 33, comma 44, hyphen 45, period 46, question mark 63, at-sign 64. Type any of them into this converter and all three notations return together.

How do I convert ASCII numbers back to text?

Switch the converter to its decoding mode and paste decimal codes separated by spaces or commas — 72 101 108 108 111 becomes "Hello". Hex strings need their pairs converted to decimal first (48 65 6C 6C 6F is the same greeting in hex: 72 101 108 108 111 in decimal) — the encoder's side-by-side output exists precisely to make such translations auditable rather than guessed.

Is ASCII the same as Unicode?

ASCII is Unicode's first chapter: code points 0–127 are identical in both, by design, so every ASCII text is already a valid Unicode text. Beyond 127 the systems part — Unicode assigns the code points for the world's scripts (over 140,000 characters), while ASCII simply stops. When this converter reports a number above 127 it is reporting the Unicode code point, and it says so; "ASCII" stretched beyond 127 is marketing, not standard.

Why do my codes come out above 127 for ordinary letters?

They wouldn't for English — if a plain-looking letter returns a three-digit code, the character is an impostor: a Cyrillic or Greek look-alike, a "smart" punctuation variant, or a letter carrying an invisible combining mark. This is the debugging superpower described above: text that looks identical and codes differently is the root of a thousand password rejections and failed searches, and thirty seconds in a converter finds what hours of squinting cannot.

What are ASCII control codes?

Numbers 0–31 (plus 127, DEL): instructions to machinery rather than marks on a page — 9 Tab, 10 Line Feed, 13 Carriage Return, 27 Escape, 7 Bell (which once rang a physical bell on the teleprinter, and whose name survives in programming slang). They are why text files know about lines at all, and why "CRLF" versus "LF" (13-10 against 10 alone) remains a living dialect difference between operating systems' text files.

How many characters can ASCII represent?

128 in total — 95 printable (counting the space) and 33 control functions — from its 7-bit design. That constraint built the modern world of text (every early network, terminal and file format speaks it fluently to this day) and simultaneously guaranteed its succession: 128 slots cannot hold even Western Europe's accented letters, let alone the world's many scripts, and Unicode's careful expansion from exactly this foundation is the rest of the story this converter's notes sketch in brief.