Convert text to ASCII decimal, hex, or binary codes.
Type or paste your text into the input box. Choose the output format (decimal, hexadecimal, or binary) and the separator between codes. The ASCII codes appear instantly in the output box.
The standard ASCII representation. Each character maps to a number from 0 to 127 (standard ASCII) or 0 to 255 (extended ASCII). For example, 'A' = 65, 'a' = 97, '0' = 48.
Each character maps to a two-digit hex code. Commonly used in programming and Unicode documentation. 'A' = 41, 'a' = 61, '0' = 30 (hex).
Each character represented as an 8-bit binary string. 'A' = 01000001, 'a' = 01100001. Used in computing education and low-level debugging.
All conversion runs locally in your browser. No text is sent to a server.
Capital A is 65 in decimal, 41 in hexadecimal, and 01000001 in binary. Lowercase a is 97 (hex 61). The two cases always differ by exactly 32, which is why flipping a single bit converts between them. Type any character above to see its code in all three formats instantly.
Type your text, select Binary as the output format, and the tool renders each character as an 8-bit binary number — H becomes 01001000, i becomes 01101001. Choose a separator such as a space so the bytes stay readable. The conversion runs instantly in your browser as you type.
ASCII defines 128 characters covering English letters, digits, and basic punctuation. Unicode is a superset that assigns a code point to every character in every writing system — more than 150,000 characters. UTF-8, the dominant Unicode encoding, was deliberately designed so its first 128 code points match ASCII exactly.