How to Convert Text to ASCII
To convert text to ASCII, enter or paste your text into the input box above. The converter automatically displays the corresponding numerical codes. Choose decimal, hexadecimal, binary, or octal from the Number Format menu.
For example, the word Hello converts to the following decimal ASCII values:
Hello
72 101 108 108 111
Each letter has its own ASCII value. Uppercase H is 72, lowercase e is 101, and lowercase l is 108. Spaces, punctuation marks, and numbers also have ASCII values.
How to Convert ASCII to Text
Select ASCII to Text to reverse the conversion. Enter the numerical ASCII codes, select the correct number format, and the tool will decode them into text.
For example, enter
72 101 108 108 111
with Decimal selected to get
Hello.
When using hexadecimal, you can enter
separated values such as
48 65 6C 6C 6F
or a continuous hexadecimal string
such as 48656C6C6F.
The converter also supports hexadecimal
byte values prefixed with
0x.
ASCII Decimal, Hexadecimal, Binary, and Octal
ASCII codes can be written in several number systems. The underlying character stays the same; only the numerical representation changes.
| Format | Letter A | Letter a |
|---|---|---|
| Decimal | 65 | 97 |
| Hexadecimal | 41 | 61 |
| Binary | 01000001 | 01100001 |
| Octal | 101 | 141 |
Text to ASCII Decimal
Decimal is the most familiar way to display ASCII codes. It uses base 10 numbers from 0 to 127. For example, uppercase A is 65, uppercase B is 66, and the space character is 32.
Text to ASCII Hexadecimal
Hexadecimal uses base 16 and represents
values with digits 0–9 and letters A–F.
It is commonly used in programming,
debugging, and examining encoded data.
The word Hi becomes
48 69 in ASCII hexadecimal.
Text to ASCII Binary
Binary uses only 0 and 1. This converter
displays each ASCII code using eight
bits, including leading zeros.
For example, the letter A becomes
01000001.
Standard ASCII is a 7-bit encoding, but displaying ASCII values as eight-bit binary groups is common when working with bytes.
Text to ASCII Octal
Octal uses base 8 and digits 0–7. The decimal ASCII value 65, which represents uppercase A, is 101 in octal. Octal notation is sometimes used in programming and older computing systems.
ASCII vs. Unicode vs. UTF-8
ASCII is a character encoding standard containing 128 values, numbered 0 through 127. These include English letters, digits, punctuation, whitespace, and control characters.
Unicode supports a much larger range of characters, including accented letters, symbols, and emojis. UTF-8 is a Unicode encoding that uses one to four bytes for each Unicode code point.
For example, the letter
é is not part of
standard ASCII. In UTF-8, it is
represented by two hexadecimal bytes:
C3 A9.
Select UTF-8 in the Encoding menu when you need to convert characters outside the ASCII range. For more detailed character information, use our Character Identifier.
ASCII Reference Table (0–127)
The standard ASCII table contains 128 codes. Values 0–31 and 127 represent control characters. Values 32–126 include spaces, punctuation, numbers, and English letters.
Use the complete reference table below to look up a character's decimal and hexadecimal ASCII values.
View Complete ASCII Table (0–127)
| Decimal | Hex | Character / Name |
|---|---|---|
| 0 | 00 | NUL - Null |
| 1 | 01 | SOH - Start of Heading |
| 2 | 02 | STX - Start of Text |
| 3 | 03 | ETX - End of Text |
| 4 | 04 | EOT - End of Transmission |
| 5 | 05 | ENQ - Enquiry |
| 6 | 06 | ACK - Acknowledge |
| 7 | 07 | BEL - Bell |
| 8 | 08 | BS - Backspace |
| 9 | 09 | HT - Horizontal Tab |
| 10 | 0A | LF - Line Feed |
| 11 | 0B | VT - Vertical Tab |
| 12 | 0C | FF - Form Feed |
| 13 | 0D | CR - Carriage Return |
| 14 | 0E | SO - Shift Out |
| 15 | 0F | SI - Shift In |
| 16 | 10 | DLE - Data Link Escape |
| 17 | 11 | DC1 - Device Control 1 |
| 18 | 12 | DC2 - Device Control 2 |
| 19 | 13 | DC3 - Device Control 3 |
| 20 | 14 | DC4 - Device Control 4 |
| 21 | 15 | NAK - Negative Acknowledge |
| 22 | 16 | SYN - Synchronous Idle |
| 23 | 17 | ETB - End of Transmission Block |
| 24 | 18 | CAN - Cancel |
| 25 | 19 | EM - End of Medium |
| 26 | 1A | SUB - Substitute |
| 27 | 1B | ESC - Escape |
| 28 | 1C | FS - File Separator |
| 29 | 1D | GS - Group Separator |
| 30 | 1E | RS - Record Separator |
| 31 | 1F | US - Unit Separator |
| 32 | 20 | Space |
| 33 | 21 | ! |
| 34 | 22 | " |
| 35 | 23 | # |
| 36 | 24 | $ |
| 37 | 25 | % |
| 38 | 26 | & |
| 39 | 27 | ' |
| 40 | 28 | ( |
| 41 | 29 | ) |
| 42 | 2A | * |
| 43 | 2B | + |
| 44 | 2C | , |
| 45 | 2D | - |
| 46 | 2E | . |
| 47 | 2F | / |
| 48 | 30 | 0 |
| 49 | 31 | 1 |
| 50 | 32 | 2 |
| 51 | 33 | 3 |
| 52 | 34 | 4 |
| 53 | 35 | 5 |
| 54 | 36 | 6 |
| 55 | 37 | 7 |
| 56 | 38 | 8 |
| 57 | 39 | 9 |
| 58 | 3A | : |
| 59 | 3B | ; |
| 60 | 3C | < |
| 61 | 3D | = |
| 62 | 3E | > |
| 63 | 3F | ? |
| 64 | 40 | @ |
| 65 | 41 | A |
| 66 | 42 | B |
| 67 | 43 | C |
| 68 | 44 | D |
| 69 | 45 | E |
| 70 | 46 | F |
| 71 | 47 | G |
| 72 | 48 | H |
| 73 | 49 | I |
| 74 | 4A | J |
| 75 | 4B | K |
| 76 | 4C | L |
| 77 | 4D | M |
| 78 | 4E | N |
| 79 | 4F | O |
| 80 | 50 | P |
| 81 | 51 | Q |
| 82 | 52 | R |
| 83 | 53 | S |
| 84 | 54 | T |
| 85 | 55 | U |
| 86 | 56 | V |
| 87 | 57 | W |
| 88 | 58 | X |
| 89 | 59 | Y |
| 90 | 5A | Z |
| 91 | 5B | [ |
| 92 | 5C | \ |
| 93 | 5D | ] |
| 94 | 5E | ^ |
| 95 | 5F | _ |
| 96 | 60 | ` |
| 97 | 61 | a |
| 98 | 62 | b |
| 99 | 63 | c |
| 100 | 64 | d |
| 101 | 65 | e |
| 102 | 66 | f |
| 103 | 67 | g |
| 104 | 68 | h |
| 105 | 69 | i |
| 106 | 6A | j |
| 107 | 6B | k |
| 108 | 6C | l |
| 109 | 6D | m |
| 110 | 6E | n |
| 111 | 6F | o |
| 112 | 70 | p |
| 113 | 71 | q |
| 114 | 72 | r |
| 115 | 73 | s |
| 116 | 74 | t |
| 117 | 75 | u |
| 118 | 76 | v |
| 119 | 77 | w |
| 120 | 78 | x |
| 121 | 79 | y |
| 122 | 7A | z |
| 123 | 7B | { |
| 124 | 7C | | |
| 125 | 7D | } |
| 126 | 7E | ~ |
| 127 | 7F | DEL - Delete |
Frequently Asked Questions
What is a text to ASCII converter?
A text to ASCII converter changes characters into their corresponding numerical ASCII values. For example, the uppercase letter A has the decimal ASCII value 65.
How do I convert ASCII numbers to text?
Select ASCII to Text, choose the
number format, and enter your ASCII
codes. For example, decimal values
67 97 116 decode to
Cat.
Can I convert hexadecimal ASCII to text?
Yes. Select ASCII to Text and choose
Hexadecimal. Enter hexadecimal
ASCII values such as
48 65 6C 6C 6F
to decode them into readable text.
What is the ASCII code for a space?
The ASCII code for a space is 32 in decimal, 20 in hexadecimal, and 00100000 in eight-bit binary.
What is the difference between ASCII and UTF-8?
ASCII represents 128 character values, while UTF-8 can encode all valid Unicode characters. UTF-8 uses the same byte values as ASCII for characters 0–127, but uses additional bytes for other characters.
Can ASCII represent emojis?
No. Standard ASCII does not contain emoji characters. Select UTF-8 to convert emojis into their encoded byte values. You can also explore characters with our Emoji Copy and Paste tool.
Can I convert ASCII to binary?
Yes. Select Binary from the Number Format menu. Standard ASCII values are displayed as eight-bit binary groups. You can also use our Bit Counter to analyze text in bits.
Is this ASCII converter free?
Yes. The Text to ASCII Converter is free to use. The conversion runs directly in your browser, without requiring an account or uploading your text to a conversion server.
More Text and Character Tools
CharacterCounter.com offers other tools for working with text, characters, and encodings. Use our Character Counter to count characters and words, or our Unicode Detector to find characters outside the ASCII range.
For decorative text made with ASCII characters rather than numerical ASCII codes, use our ASCII Art Generator.