ASCII Converter & ASCII Cipher Decoder
An “ASCII cipher” substitutes each character with its ASCII code: encoding, not encryption, with no key. Decode numbers or convert text to decimal, hex, binary and octal.
How to decode an ASCII cipher in 3 steps
- Paste the numbers: choose ASCII → Text and enter one code per character. Spaces, commas, tabs and newlines separate codes; a separator is not itself an encoded space.
- Check the base: Auto-detect explains whether the codes look decimal, hexadecimal, binary or octal. Select the number base manually when you know it, especially for short or ambiguous sequences.
- Read and copy the text:
72 101 108 108 111in decimal spells Hello. If a token is invalid, correct it before copying. Values above 127 need a base check or a different character encoding.
An ASCII cipher decoder, sometimes called an ASCII cypher translator, only reverses the character-code substitution. If a puzzle also shifts, reverses or encrypts the message, decode that separate layer too. ASCII itself provides no secrecy.
Worked ASCII decode: Hello in four number bases
These four sequences all represent the exact text Hello. The converter generated each sequence and decoded it using Auto-detect. The numbers describe the same five characters; only their notation changes.
Decimal ASCII codes → Hello
72 101 108 108 111No distinctive prefix or fixed-width pattern; defaulting to decimal. The decoded decimal values are 72 101 108 108 111
Hexadecimal ASCII codes → Hello
48 65 6C 6C 6FA–F digits suggest hexadecimal; decimal, binary and octal cannot use those letters. The decoded decimal values are 72 101 108 108 111
Binary ASCII codes → Hello
01001000 01100101 01101100 01101100 01101111Seven- or eight-digit groups containing only 0 and 1 suggest binary. The decoded decimal values are 72 101 108 108 111
Octal ASCII codes → Hello
110 145 154 154 157Multiple three-digit groups use only 0–7, with leading zeroes or values above decimal 127; octal is a likely reading. The decoded decimal values are 72 101 108 108 111
For the decimal example, 8 and 9 are not allowed in octal, and these short groups do not match padded binary bytes. Reading 101 as hexadecimal would exceed ASCII’s range, so decimal is the only valid whole-message reading here. In the hex example, the C and F digits distinguish hexadecimal from the other three bases.
For H alone: 0x48 = 4 × 16 + 8 = 72; binary 01001000 = 64 + 8; octal 110 = 1 × 64 + 1 × 8 + 0. All three calculations give ASCII decimal 72.
How to tell whether ASCII codes are decimal, hex, binary or octal
| Format | Allowed digits | Typical token length | Prefixes | Code for H |
|---|---|---|---|---|
| Decimal (base 10) | 0 1 2 3 4 5 6 7 8 9 | 1–3 digits | None | 72 |
| Hexadecimal (base 16) | 0 1 2 3 4 5 6 7 8 9 A B C D E F (a–f also accepted) | 2 padded digits (1–2 unpadded) | 0x or \x | 48 or 0x48 |
| Binary (base 2) | 0 1 | 7 bits, often padded to 8 | 0b | 01001000 or 0b01001000 |
| Octal (base 8) | 0 1 2 3 4 5 6 7 | 3 padded digits (1–3 unpadded) | 0o | 110 or 0o110 |
Need character-by-character values? Open the full decimal ASCII table, printable octal table, binary ASCII table or hex ASCII table.
Detection is a clue, not proof. Prefixes take priority, then A–F digits, then 7- or 8-digit binary-looking groups, then multiple 3-digit octal-looking groups. Otherwise this tool defaults to decimal. Octal is suggested when all groups use 0–7 and at least one starts with zero or exceeds decimal 127. A single unprefixed 110 defaults to decimal n; octal 110 is H and binary 110 is a control character. Use a prefix or manual base to settle the ambiguity.
Short numeric-only hex is ambiguous too: 48 65 defaults to decimal and becomes 0A; 0x48 0x65 or the Hexadecimal override gives He. Auto-detect lists other readings that fit the selected encoding’s range. It never guarantees that a plausible result is the intended message.
A bare 0B can be hex for decimal 11 (vertical tab). This tool recognizes 0b as a binary prefix only when followed by a nonempty payload made entirely of 0 and 1. Otherwise it considers hexadecimal and shows a hint; invalid digits and out-of-range values still produce errors. Use 0x0B to make the hex reading explicit.
Generated October 31, 2026. Inputs: the literal strings “Hello” and “H”, the four radices, and ASCII’s maximum value 127. Method: encode with this page’s library, format each integer in each base, then auto-decode each sequence; derive digit alphabets and unpadded widths from the radix. Binary is displayed in 8-bit groups with a leading zero. Download the generated guide and worked examples as JSON.
Text to ASCII codes: using the converter as an ASCII calculator
Choose Text → ASCII and enter text. Decimal, hexadecimal, binary and octal results appear together. Select space, comma, newline or tab separators, and keep the optional prefixes when you want the base to be unambiguous. Copy a single format, copy all four labeled results, or download them as a text file.
Text and numbers are different inputs: typing 72 in Text → ASCII encodes the two digit characters as decimal 55 50. Decoding decimal 72 produces one H. A space inside text becomes decimal 32, hex 20, binary 00100000 or octal 040. This converter produces numeric character codes; ASCII art instead arranges visible characters into a picture.
In JavaScript, 'H'.charCodeAt(0) returns 72, and String.fromCharCode(72) returns H. Those operations alone do not validate ASCII: check that every value is within 0–127. The full decimal ASCII reference covers character assignments without needing to switch among number systems. Its text encoder emits decimal UTF-16 code units, not UTF-8 bytes: é → 233 (also its Unicode code point), while 😀 → 55357 56832 is a surrogate pair, not the single code point 128512.
ASCII character ranges, Unicode and UTF-8 bytes
ASCII means American Standard Code for Information Interchange. Its 128 values run from 0 through 127. Values 0–31 and 127 are control characters; 32–126 are printable, including the space at 32. Uppercase A–Z occupy 65–90 and lowercase a–z occupy 97–122: matching letter pairs differ by 32. These assignments follow RFC 20’s ASCII table.
Why a value above 127 is not 7-bit ASCII
Decimal 233 is not ASCII. “Extended ASCII” refers to several different encodings, so a value above 127 does not have one universal character meaning. ASCII mode flags it instead of wrapping, skipping or substituting it. Seven-bit ASCII can be stored in an 8-bit byte with its highest bit set to zero.
When to choose UTF-8 bytes instead of ASCII
Choose UTF-8 bytes for accents, non-Latin scripts or emoji when the source uses UTF-8. For example, é is Unicode U+00E9, but its UTF-8 bytes are decimal 195 169 or hex C3 A9. A single decimal 233 is not a valid complete UTF-8 sequence. Each byte must be 0–255; the decoder validates the entire sequence and preserves a leading byte order mark if supplied. See RFC 3629’s UTF-8 definition and the Unicode converter for code points.
ASCII separators, prefixes and decoding errors
Use one number base per message. The decoder accepts 0x48, \x48, 0b01001000 and 0o110 for H in their matching bases. Adjacent hex escapes such as \x48\x69 decode to Hi. Mixed-base prefixes are flagged; split them into separate conversions.
Every token is checked in full. In 72 junk 105, token 2 is invalid and there is no partial output. Empty comma groups, signs, fractions and punctuation inside a token also produce errors. Continuous unprefixed digits are one number, not guessed character boundaries: separate the codes first, or use the dedicated hex, binary or octal tool’s grouping options.
A successfully decoded message can contain invisible control characters, such as tab, line feed or NUL. The tool reports their presence; Copy and Download preserve the actual text. Conversion runs locally in your browser, so the tool does not upload your input for decoding.
ASCII converter and cipher decoder FAQ
Is ASCII a cipher?
An “ASCII cipher” usually means replacing each character with its ASCII number. It is an encoding, not encryption: there is no secret key. Changing from decimal to hex, binary or octal only changes how the same number is written. A puzzle may add a separate cipher step, which ASCII decoding alone will not undo.
How do I decode ASCII numbers to text?
Choose ASCII → Text, paste one code per character separated by spaces, commas or newlines, then check the detected base. Use the base override if the source specifies decimal, hexadecimal, binary or octal. For example, 72 101 108 108 111 in decimal becomes Hello. Correct any token errors before copying the text.
What is 0x48 in ASCII?
0x48 is uppercase H. The 0x prefix indicates hexadecimal: 4 × 16 + 8 = 72 decimal, the ASCII code for H. The same value is binary 01001000 and octal 110. Without the prefix, 48 is ambiguous; decimal 48 is the digit 0.