ASCII Converter
Convert text to character codes in decimal, hexadecimal, binary or octal, or turn a list of codes back into text. Includes an ASCII table for codes 32 to 126.
About the ASCII Converter
ASCII gives a number from 0 to 127 to each English letter, digit, punctuation mark and control character: A is 65, a is 97, a space is 32 and the digit 0 is 48. This converter shows the number behind every character of your text in decimal, hexadecimal, binary or octal. "Hi!" becomes 72 105 33 in decimal, 0x48 0x69 0x21 in hex and 01001000 01101001 00100001 in binary.
The reverse direction takes codes separated by spaces or commas and turns them back into text. Choose the base the codes are written in; hex codes may include a 0x prefix or not. Anything that is not a valid number in the chosen base shows up as a question mark, so a typo is easy to spot. Typical uses are computer-science exercises, puzzles that hide a message in binary, finding out which invisible character is hiding in a string, and reading hex values copied from a debugger or a serial-port log.
For characters outside ASCII, such as é, ₹ or an emoji, the converter shows the Unicode code point (é is 233, ₹ is 8377, 😀 is 128512) and a note says so. Code points are not the bytes stored in a UTF-8 file: é takes two bytes there, 195 and 169. When you need the actual UTF-8 bytes, use the Character Encoding Converter.
How to use the ASCII Converter
- 1
Choose the direction
Click Text → ASCII to get codes from text, or ASCII → Text to turn codes back into characters.
- 2
Pick the number format
Select Decimal, Hexadecimal, Binary or Octal. In ASCII → Text mode this must match how your codes are written.
- 3
Type or paste your input
The result appears as you type. When decoding, separate the codes with spaces or commas.
- 4
Copy, swap or check the table
Press Copy above the result, use the arrow button to swap input and output, or click Show ASCII Reference Table for a list of printable characters.
What it can do
Four number bases
Decimal, hexadecimal with a 0x prefix, 8-bit binary and 3-digit octal.
Works both ways, live
Convert text to codes or codes to text, with output that updates on every keystroke.
Forgiving code input
Codes can be separated by spaces, commas or line breaks, and hex codes work with or without 0x.
Unicode-aware
Each character, including an emoji, gives exactly one number: its Unicode code point.
ASCII reference table
Character, decimal, hex and binary values for every printable ASCII character, codes 32 to 126.
Limitations
- Numbers above 127 are Unicode code points, not ASCII codes and not UTF-8 bytes.
- Codes must be separated. A continuous hex string such as 48656C6C6F is read as one large number and shows as ?; split it into pairs or use the Character Encoding Converter.
- The reference table lists only the printable characters 32 to 126, not control codes such as tab (9) or line feed (10), although those are converted.
- Binary output is padded to 8 digits; characters with code points above 255 need more digits.
Privacy
The conversion is done by JavaScript in your browser; your text is not sent to FlexyPdf's servers.
Frequently asked questions
What are the ASCII codes for A, a and a space?
A is 65, a is 97 and the space is 32. Every lowercase letter is exactly 32 more than its capital, which is why changing case in ASCII flips a single bit.
How do I convert binary to text?
Click ASCII → Text, choose Binary and paste the bits in groups separated by spaces, for example 01001000 01101001. The text, here "Hi", appears in the output box.
Why do some characters give numbers above 127?
They are not ASCII characters. Accented letters, currency signs like ₹ and emoji come from Unicode, and the tool shows their Unicode code point instead.
Why does my decoded text contain question marks?
A code was not valid in the selected base, for example the digit 2 in binary or the letter G in hex, or the format buttons do not match your input. Check the format and the separators between codes.
What is the difference between ASCII and Unicode?
ASCII is a 7-bit standard with 128 codes. Unicode keeps those 128 codes unchanged as its first block and extends the numbering to more than a million possible code points, covering most of the world's writing systems and emoji.
Ratings & Reviews
Rate ASCII Converter
Help others by sharing your experience. Your rating is shown without your name.
More Converters
View all →CSV to JSON
Convert CSV rows into a JSON array of objects
JSON to CSV
Turn a JSON array of objects into CSV for Excel or Google Sheets
JSON to YAML
Convert JSON to YAML, or common YAML config files back to JSON
Base64 Encoder/Decoder
Encode text or files to Base64 and decode Base64 back