ASCII Converter
Convert text into ASCII decimal, hexadecimal, binary, or octal codes, or turn numeric character codes back into readable text. ASCII characters use codes 0–127. For other characters, the tool can show their Unicode code points where supported.
What is ASCII?
ASCII stands for American Standard Code for Information Interchange. It defines numeric codes for 128 characters, including English letters, digits, punctuation, spaces, and control characters.
Standard ASCII uses values from 0 through 127. Each value fits within 7 bits, although ASCII values are commonly shown as 8-bit binary with a leading zero for readability. For example, uppercase A is decimal 65, hexadecimal 41, binary 01000001, and octal 101.
How to convert text to ASCII codes
- Enter source text Enter or paste text into the input area.
- Select output format Select Decimal, Hexadecimal, Binary, or Octal as the output format.
- Choose a delimiter Choose how codes should be separated, such as spaces, commas, new lines, or a custom delimiter.
- Copy or inspect results Copy the result or inspect individual characters in the character details table.
Text to ASCII code examples
Each standard ASCII character has the same numeric value regardless of whether that value is displayed in decimal, hexadecimal, binary, or octal.
| Character | Decimal | Hex | Binary | Octal |
|---|---|---|---|---|
| H | 72 |
48 |
01001000 |
110 |
| e | 101 |
65 |
01100101 |
145 |
| l | 108 |
6C |
01101100 |
154 |
| l | 108 |
6C |
01101100 |
154 |
| o | 111 |
6F |
01101111 |
157 |
With spaces between values, Hello becomes:
- Decimal:
72 101 108 108 111 - Hexadecimal:
48 65 6C 6C 6F - Binary:
01001000 01100101 01101100 01101100 01101111 - Octal:
110 145 154 154 157
How to convert ASCII codes back to text
You can also reverse the conversion and turn numeric character codes back into readable text.
- Switch to decode mode Select Codes → Text mode from the top switcher.
-
Paste character codes
Enter your numeric sequence, such as
84 114 121. - Select the numeric format Choose Decimal, Hexadecimal, Binary, or Octal, or use automatic detection when the input format is clear.
-
Review the decoded text
The converter maps each value back to its character. In this example,
84maps to T,114to r, and121to y, producingTry.
ASCII vs Unicode
Standard ASCII contains only 128 codes from 0 through 127. It covers basic English letters, digits, punctuation, whitespace, and control characters.
Unicode supports a much larger range of characters, including accented letters, non-Latin scripts, currency symbols, mathematical symbols, and emoji. The first 128 Unicode code points match standard ASCII values exactly.
- A: ASCII
65/ UnicodeU+0041 - é: Unicode
U+00E9— not standard ASCII - ₹: Unicode
U+20B9— not standard ASCII - 😀: Unicode
U+1F600— not standard ASCII
If the input contains a character outside the ASCII range, the tool should label it as a Unicode code point instead of incorrectly calling it an ASCII value.
Decimal, hexadecimal, binary, and octal ASCII values
The same character code can be displayed using different number systems:
- Decimal: Base 10. Uppercase
Ais65. - Hexadecimal: Base 16 using digits 0–9 and letters A–F.
Ais41or0x41. - Binary: Base 2 using only 0 and 1.
Ais commonly shown as01000001. - Octal: Base 8 using digits 0–7.
Ais101.
Hexadecimal and binary are especially useful when inspecting bytes, debugging low-level data, or working with embedded systems. Decimal is often easier for learning and quick character-code lookups.
ASCII control characters and whitespace
Not every ASCII value is a visible character. Codes 0–31 and 127 are control characters.
- TAB: Decimal
9, hexadecimal09 - LF (Line Feed): Decimal
10, hexadecimal0A - CR (Carriage Return): Decimal
13, hexadecimal0D - ESC (Escape): Decimal
27, hexadecimal1B - SPACE: Decimal
32, hexadecimal20
The character details view should use labels such as TAB, LF, and SPACE so invisible characters are easy to identify.
Use cases: when ASCII conversion is useful
- Character lookup: Find the decimal, hexadecimal, binary, or octal value of a character.
- Debugging text data: Inspect spaces, tabs, line endings, and other characters that may not be visible in normal text.
- Embedded development: Prepare or inspect character values used in serial communication and byte-oriented applications.
- Log inspection: Decode numeric character values found in diagnostic output or low-level data.
- Learning: Compare how the same ASCII character appears in different number systems.
- Testing: Create predictable numeric character sequences for parsers, protocols, or application test cases.
Common ASCII conversion mistakes
- Calling values above 127 standard ASCII: Standard ASCII ends at decimal
127. Values from 128–255 may have different meanings in legacy single-byte encodings and should not automatically be labeled ASCII characters. - Confusing ASCII with UTF-8: ASCII defines character codes from 0–127. UTF-8 is a Unicode encoding that represents those same ASCII characters using identical single-byte values.
- Removing delimiters: A decimal string such as
72101108is ambiguous because individual character codes can contain different numbers of digits. Use spaces, commas, or new lines between decimal values. - Dropping binary padding:
1000001and01000001represent the same numeric value, but the 8-bit form makes byte boundaries easier to read. - Treating Unicode characters as ASCII: Characters such as
₹,é, and emoji require Unicode handling and should be identified separately.
ASCII reference table (0–127)
Standard ASCII contains 128 values. Codes 0–31 and 127 are control characters, while codes 32–126 are printable characters.
Use the expandable reference table to compare decimal, hexadecimal, binary, octal, and character names.
View full ASCII reference table
| Dec | Hex | Binary | Oct | Char / Name | Category |
|---|---|---|---|---|---|
| 0 | 00 | 00000000 | 000 | NUL (Null) | Control |
| 1 | 01 | 00000001 | 001 | SOH (Start of Heading) | Control |
| 2 | 02 | 00000010 | 002 | STX (Start of Text) | Control |
| 3 | 03 | 00000011 | 003 | ETX (End of Text) | Control |
| 4 | 04 | 00000100 | 004 | EOT (End of Transmission) | Control |
| 5 | 05 | 00000101 | 005 | ENQ (Enquiry) | Control |
| 6 | 06 | 00000110 | 006 | ACK (Acknowledge) | Control |
| 7 | 07 | 00000111 | 007 | BEL (Bell / Beep) | Control |
| 8 | 08 | 00001000 | 010 | BS (Backspace) | Control |
| 9 | 09 | 00001001 | 011 | HT (Tab, ) | Control / Whitespace |
| 10 | 0A | 00001010 | 012 | LF (Newline, ) | Control / Whitespace |
| 11 | 0B | 00001011 | 013 | VT (Vertical Tab) | Control |
| 12 | 0C | 00001100 | 014 | FF (Form Feed) | Control |
| 13 | 0D | 00001101 | 015 | CR (Carriage Return, ) | Control / Whitespace |
| 14 | 0E | 00001110 | 016 | SO (Shift Out) | Control |
| 15 | 0F | 00001111 | 017 | SI (Shift In) | Control |
| 16 | 10 | 00010000 | 020 | DLE (Data Link Escape) | Control |
| 17 | 11 | 00010001 | 021 | DC1 (XON) | Control |
| 18 | 12 | 00010010 | 022 | DC2 (Device Control 2) | Control |
| 19 | 13 | 00010011 | 023 | DC3 (XOFF) | Control |
| 20 | 14 | 00010100 | 024 | DC4 (Device Control 4) | Control |
| 21 | 15 | 00010101 | 025 | NAK (Negative Ack) | Control |
| 22 | 16 | 00010110 | 026 | SYN (Synchronous Idle) | Control |
| 23 | 17 | 00010111 | 027 | ETB (End of Trans. Block) | Control |
| 24 | 18 | 00011000 | 030 | CAN (Cancel) | Control |
| 25 | 19 | 00011001 | 031 | EM (End of Medium) | Control |
| 26 | 1A | 00011010 | 032 | SUB (Substitute) | Control |
| 27 | 1B | 00011011 | 033 | ESC (Escape) | Control |
| 28 | 1C | 00011100 | 034 | FS (File Separator) | Control |
| 29 | 1D | 00011101 | 035 | GS (Group Separator) | Control |
| 30 | 1E | 00011110 | 036 | RS (Record Separator) | Control |
| 31 | 1F | 00011111 | 037 | US (Unit Separator) | Control |
| 32 | 20 | 00100000 | 040 | SPACE | Printable / Whitespace |
| 33 | 21 | 00100001 | 041 | ! | Printable |
| 34 | 22 | 00100010 | 042 | " | Printable |
| 35 | 23 | 00100011 | 043 | # | Printable |
| 36 | 24 | 00100100 | 044 | $ | Printable |
| 37 | 25 | 00100101 | 045 | % | Printable |
| 38 | 26 | 00100110 | 046 | & | Printable |
| 39 | 27 | 00100111 | 047 | ' | Printable |
| 40 | 28 | 00101000 | 050 | ( | Printable |
| 41 | 29 | 00101001 | 051 | ) | Printable |
| 42 | 2A | 00101010 | 052 | * | Printable |
| 43 | 2B | 00101011 | 053 | + | Printable |
| 44 | 2C | 00101100 | 054 | , | Printable |
| 45 | 2D | 00101101 | 055 | - | Printable |
| 46 | 2E | 00101110 | 056 | . | Printable |
| 47 | 2F | 00101111 | 057 | / | Printable |
| 48 | 30 | 00110000 | 060 | 0 | Printable (Digit) |
| 49 | 31 | 00110001 | 061 | 1 | Printable (Digit) |
| 50 | 32 | 00110010 | 062 | 2 | Printable (Digit) |
| 51 | 33 | 00110011 | 063 | 3 | Printable (Digit) |
| 52 | 34 | 00110100 | 064 | 4 | Printable (Digit) |
| 53 | 35 | 00110101 | 065 | 5 | Printable (Digit) |
| 54 | 36 | 00110110 | 066 | 6 | Printable (Digit) |
| 55 | 37 | 00110111 | 067 | 7 | Printable (Digit) |
| 56 | 38 | 00111000 | 070 | 8 | Printable (Digit) |
| 57 | 39 | 00111001 | 071 | 9 | Printable (Digit) |
| 58 | 3A | 00111010 | 072 | : | Printable |
| 59 | 3B | 00111011 | 073 | ; | Printable |
| 60 | 3C | 00111100 | 074 | < | Printable |
| 61 | 3D | 00111101 | 075 | = | Printable |
| 62 | 3E | 00111110 | 076 | > | Printable |
| 63 | 3F | 00111111 | 077 | ? | Printable |
| 64 | 40 | 01000000 | 100 | @ | Printable |
| 65 | 41 | 01000001 | 101 | A | Printable (Uppercase) |
| 66 | 42 | 01000010 | 102 | B | Printable (Uppercase) |
| 67 | 43 | 01000011 | 103 | C | Printable (Uppercase) |
| 68 | 44 | 01000100 | 104 | D | Printable (Uppercase) |
| 69 | 45 | 01000101 | 105 | E | Printable (Uppercase) |
| 70 | 46 | 01000110 | 106 | F | Printable (Uppercase) |
| 71 | 47 | 01000111 | 107 | G | Printable (Uppercase) |
| 72 | 48 | 01001000 | 110 | H | Printable (Uppercase) |
| 73 | 49 | 01001001 | 111 | I | Printable (Uppercase) |
| 74 | 4A | 01001010 | 112 | J | Printable (Uppercase) |
| 75 | 4B | 01001011 | 113 | K | Printable (Uppercase) |
| 76 | 4C | 01001100 | 114 | L | Printable (Uppercase) |
| 77 | 4D | 01001101 | 115 | M | Printable (Uppercase) |
| 78 | 4E | 01001110 | 116 | N | Printable (Uppercase) |
| 79 | 4F | 01001111 | 117 | O | Printable (Uppercase) |
| 80 | 50 | 01010000 | 120 | P | Printable (Uppercase) |
| 81 | 51 | 01010001 | 121 | Q | Printable (Uppercase) |
| 82 | 52 | 01010010 | 122 | R | Printable (Uppercase) |
| 83 | 53 | 01010011 | 123 | S | Printable (Uppercase) |
| 84 | 54 | 01010100 | 124 | T | Printable (Uppercase) |
| 85 | 55 | 01010101 | 125 | U | Printable (Uppercase) |
| 86 | 56 | 01010110 | 126 | V | Printable (Uppercase) |
| 87 | 57 | 01010111 | 127 | W | Printable (Uppercase) |
| 88 | 58 | 01011000 | 130 | X | Printable (Uppercase) |
| 89 | 59 | 01011001 | 131 | Y | Printable (Uppercase) |
| 90 | 5A | 01011010 | 132 | Z | Printable (Uppercase) |
| 91 | 5B | 01011011 | 133 | [ | Printable |
| 92 | 5C | 01011100 | 134 | \ | Printable |
| 93 | 5D | 01011101 | 135 | ] | Printable |
| 94 | 5E | 01011110 | 136 | ^ | Printable |
| 95 | 5F | 01011111 | 137 | _ | Printable |
| 96 | 60 | 01100000 | 140 | ` (Backtick) | Printable |
| 97 | 61 | 01100001 | 141 | a | Printable (Lowercase) |
| 98 | 62 | 01100010 | 142 | b | Printable (Lowercase) |
| 99 | 63 | 01100011 | 143 | c | Printable (Lowercase) |
| 100 | 64 | 01100100 | 144 | d | Printable (Lowercase) |
| 101 | 65 | 01100101 | 145 | e | Printable (Lowercase) |
| 102 | 66 | 01100110 | 146 | f | Printable (Lowercase) |
| 103 | 67 | 01100111 | 147 | g | Printable (Lowercase) |
| 104 | 68 | 01101000 | 150 | h | Printable (Lowercase) |
| 105 | 69 | 01101001 | 151 | i | Printable (Lowercase) |
| 106 | 6A | 01101010 | 152 | j | Printable (Lowercase) |
| 107 | 6B | 01101011 | 153 | k | Printable (Lowercase) |
| 108 | 6C | 01101100 | 154 | l | Printable (Lowercase) |
| 109 | 6D | 01101101 | 155 | m | Printable (Lowercase) |
| 110 | 6E | 01101110 | 156 | n | Printable (Lowercase) |
| 111 | 6F | 01101111 | 157 | o | Printable (Lowercase) |
| 112 | 70 | 01110000 | 160 | p | Printable (Lowercase) |
| 113 | 71 | 01110001 | 161 | q | Printable (Lowercase) |
| 114 | 72 | 01110010 | 162 | r | Printable (Lowercase) |
| 115 | 73 | 01110011 | 163 | s | Printable (Lowercase) |
| 116 | 74 | 01110100 | 164 | t | Printable (Lowercase) |
| 117 | 75 | 01110101 | 165 | u | Printable (Lowercase) |
| 118 | 76 | 01110110 | 166 | v | Printable (Lowercase) |
| 119 | 77 | 01110111 | 167 | w | Printable (Lowercase) |
| 120 | 78 | 01111000 | 170 | x | Printable (Lowercase) |
| 121 | 79 | 01111001 | 171 | y | Printable (Lowercase) |
| 122 | 7A | 01111010 | 172 | z | Printable (Lowercase) |
| 123 | 7B | 01111011 | 173 | { | Printable |
| 124 | 7C | 01111100 | 174 | | | Printable |
| 125 | 7D | 01111101 | 175 | } | Printable |
| 126 | 7E | 01111110 | 176 | ~ | Printable |
| 127 | 7F | 01111111 | 177 | DEL (Delete) | Control |
Privacy and browser-based processing
Text and numeric character-code conversion runs in your browser. TryFormatter does not need to upload the entered text to its server to perform the conversion.
Frequently Asked Questions
What is the ASCII code for uppercase A?
Uppercase A has decimal ASCII code 65, hexadecimal 41, binary 01000001, and octal 101.
What is the ASCII code for a space?
The ASCII code for a space is decimal 32, hexadecimal 20, binary 00100000, and octal 040.
What is the standard ASCII range?
Standard ASCII contains 128 codes numbered from 0 through 127. Codes 0–31 and 127 are control characters, while codes 32–126 are printable characters.
Can ASCII codes be converted back to text?
Yes. In Codes → Text mode, numeric character codes can be converted back into readable characters. For example, decimal values 72 101 108 108 111 decode to Hello.
What is the difference between ASCII and Unicode?
ASCII defines 128 basic character codes from 0 through 127. Unicode supports a much larger range of writing systems, symbols, and emoji while preserving those original ASCII values as its first 128 code points.
Can this tool convert binary, hexadecimal, and octal ASCII values?
Yes. The converter supports text and character-code conversion using decimal, hexadecimal, binary, and octal formats. Prefixes such as 0x or 0b should only be described as automatically detected if the implemented parser supports them.
Does TryFormatter upload my text to a server?
No server upload is required for the conversion. Text and numeric character-code processing run locally in your browser.