TEXT TO ASCII GUIDE
Text to ASCII Converter – Convert Text to ASCII Code, Hex, Binary and Octal Online Free
Every letter, number and symbol on your screen is stored as a number, and the most famous numbering system behind them is ASCII, the American Standard Code for Information Interchange. Our free text to ASCII converter lets you see those numbers instantly. Type or paste any text and the tool converts it to ASCII codes in decimal, hexadecimal, binary or octal, with the separator and prefix style you prefer. It also works in reverse as an ASCII to text converter, so you can decode a list of ASCII values back into readable words. Unlike a basic converter, this page adds a full character breakdown table, a count of ASCII and non-ASCII characters, a warning when your text contains characters outside the standard 0 to 127 range, and a complete ASCII table with control characters at the bottom of the page. Developers, students, security researchers, puzzle fans and anyone who just wants to turn text into numbers can use it with no signup, no installation and no uploads, because everything runs inside your browser.
This text to ASCII converter works as an ASCII code generator, an ASCII to text decoder, a text to decimal, hex, binary and octal converter and a non-ASCII character finder in one page. Use it to find the ASCII value of a letter or word, to decode a list of ASCII numbers back to readable text, to clean text before an import, or to complete a computer science assignment. Everything is processed in your browser, so it is fast, private and works on Windows, Mac, Linux, Android and iPhone with no signup.
72
Text to ASCII Code Converter
Turn any sentence into its ASCII code values. The word Hello becomes 72 101 108 108 111 in decimal, 48 65 6C 6C 6F in hex and a series of 8-bit groups in binary. Choose commas, spaces or new lines between codes for easy copying into code or documents.
H
ASCII to Text Decoder
Paste decimal, hex, binary or octal ASCII values and get plain text back. The decoder understands common separators and prefixes such as 0x, \x and 0b, and it groups unseparated hex and binary strings automatically.
?!
Non-ASCII Character Detector
The converter highlights accented letters, emoji, currency symbols and hidden characters that are not part of ASCII. It is a quick way to find the one odd character that breaks an import, a password field or a script.
What Is ASCII and Why Is It Still Important?
ASCII is a character encoding standard created in the 1960s so that computers, teleprinters and communication equipment from different makers could exchange text. It defines 128 characters, numbered from 0 to 127: the uppercase letters A to Z, the lowercase letters a to z, the digits 0 to 9, common punctuation marks, the space character and 33 control codes that were originally used to control printers and data links. Every one of those characters fits into 7 bits, which is why classic ASCII is described as a 7-bit encoding, although in practice it is stored in a full 8-bit byte with the highest bit set to zero.
More than half a century later, ASCII is still everywhere. The first 128 characters of Unicode and UTF-8 are identical to ASCII, which means that every plain English text file, source code file, JSON document, HTML page and configuration file is built on ASCII values. Programming languages use ASCII codes for comparisons and sorting, network protocols such as HTTP and SMTP are defined in terms of ASCII text, and countless file formats begin with ASCII signatures. Understanding ASCII is therefore a basic skill for anyone who works with data, code or the web.
How to Convert Text to ASCII (Step by Step)
Converting text to ASCII with this tool takes only a few seconds, and the result updates live as you type. Follow these steps to turn text into ASCII codes.
- Select Text to ASCII: Make sure the mode switch at the top of the converter is set to Text to ASCII.
- Enter your text: Type or paste a word, a sentence, a paragraph or even a block of code into the input box.
- Choose the number format: Pick Decimal for classic ASCII values, Hex for programming and web work, Binary for 8-bit patterns or Octal for Unix style escape codes.
- Set the separator and options: Use a space, comma or new line between codes, add a prefix such as 0x, and decide whether to skip non-ASCII characters.
- Copy or download: Click Copy result, or download the ASCII codes as a text file.
Need the same text in another encoding? Try text to binary, text to hex or text to Unicode for characters beyond the 128 ASCII codes.
To decode, switch to ASCII to Text, choose the format of your numbers, and paste them into the input box. The tool shows the decoded text immediately and tells you if some values could not be read.
Text to ASCII Example: How the Word Hello Is Encoded
A short example makes the idea clear. Each character in the word Hello has its own ASCII number. The capital H is 72, the lowercase e is 101, the lowercase l is 108 and the lowercase o is 111. Written in the other number systems, the same characters become hexadecimal values from 48 to 6F, 8-bit binary groups and octal values. Notice that the two l characters have the same code, because ASCII assigns one number to each distinct character, and that uppercase and lowercase letters have different codes, which is why H and h are treated as different characters by computers.
The word Hello converted to ASCII in four formats
| 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 |
ASCII Character Ranges: Control Codes, Printable Characters and DEL
The 128 ASCII characters are divided into a few clear groups. Codes 0 to 31 are control characters, which do not print anything visible but give instructions such as a line feed, a carriage return or a tab. Code 32 is the space. Codes 33 to 126 are the printable characters that you see on a keyboard, and code 127 is the DEL control character. Knowing these ranges helps you recognize patterns, for example that every digit character lies between 48 and 57, every uppercase letter between 65 and 90 and every lowercase letter between 97 and 122.
ASCII ranges and what they contain
| Decimal range | Hex range | Contains |
| 0 - 31 | 00 - 1F | Control characters such as tab, line feed and carriage return |
| 32 | 20 | Space |
| 33 - 47 | 21 - 2F | Punctuation and symbols such as ! " # $ % & ( ) * + , - . / |
| 48 - 57 | 30 - 39 | Digits 0 to 9 |
| 58 - 64 | 3A - 40 | Symbols such as : ; < = > ? and the at sign |
| 65 - 90 | 41 - 5A | Uppercase letters A to Z |
| 91 - 96 | 5B - 60 | Symbols such as [ \ ] ^ _ and the backtick |
| 97 - 122 | 61 - 7A | Lowercase letters a to z |
| 123 - 126 | 7B - 7E | Symbols such as braces, the vertical bar and the tilde |
| 127 | 7F | DEL control character |
Decimal, Hex, Binary and Octal ASCII: Which Format Should You Use?
The same ASCII value can be written in several number systems, and each one has its natural home. Decimal is the format used in the classic ASCII chart and in most introductory courses. Hexadecimal is the favorite of programmers, because two hex digits describe exactly one byte, which makes it ideal for memory dumps, color codes, URL encoding and network debugging. Binary shows the actual bits and is perfect for learning how computers store text. Octal appears in older Unix tools, in escape sequences in C-style languages and in file permissions. This converter lets you switch between all four with one click, so you never have to calculate by hand.
- Decimal ASCII: Best for learning, quick lookups and functions like ord and charCodeAt.
- Hex ASCII: Best for programming, escape sequences such as \x41, URL encoding and hex editors.
- Binary ASCII: Best for understanding bits, bytes and for classroom exercises and puzzles.
- Octal ASCII: Best for Unix and C escape sequences such as \101 and for legacy documentation.
How to Convert Text to ASCII in Python, JavaScript and PHP
If you want to convert text to ASCII inside your own code, every popular language has a simple built-in function. In Python, the ord function returns the code of a character, so a list comprehension turns a whole string into numbers. In JavaScript the charCodeAt method does the same job, and in PHP the ord function is the equivalent. To go back from numbers to characters, use chr in Python and PHP, and String.fromCharCode in JavaScript.
# Python
[ord(c) for c in "Hello"] # [72, 101, 108, 108, 111]
"".join(chr(n) for n in [72, 101]) # "He"
// JavaScript
Array.from("Hello").map(c => c.charCodeAt(0)) // [72, 101, 108, 108, 111]
String.fromCharCode(72, 101) // "He"
// PHP
array_map('ord', str_split("Hello")); // [72, 101, 108, 108, 111]
chr(72) . chr(101); // "He"
These snippets work perfectly for pure ASCII text. For characters outside ASCII, such as accented letters and emoji, the result depends on the encoding, which is why this tool warns you when your input contains non-ASCII characters.
ASCII vs Extended ASCII vs Unicode vs UTF-8
People often search for text to ASCII when they really need to understand how ASCII relates to the other encodings they meet every day. Standard ASCII only covers 128 characters and cannot represent accented letters, non-Latin alphabets or emoji. Extended ASCII is a loose name for several 8-bit code pages that use the values 128 to 255 for extra characters, and the exact characters differ between code pages such as Windows-1252 and ISO 8859-1. Unicode is the modern universal character set, which assigns a code point to every character in every writing system, and UTF-8 is the most common way to store Unicode, using one to four bytes per character while keeping ASCII characters at a single byte with the same values.
ASCII, Extended ASCII, Unicode and UTF-8 compared
| Encoding | Characters | Size per character | Typical use |
| ASCII | 128 | 7 bits (1 byte) | Plain English text, protocols, source code |
| Extended ASCII | 256 per code page | 1 byte | Legacy Western European text and old systems |
| Unicode | More than 140,000 | Depends on the encoding | A universal character set for all languages |
| UTF-8 | All Unicode characters | 1 to 4 bytes | Web pages, APIs, databases, modern files |
The practical takeaway is that ASCII is a safe subset. If your text only contains the first 128 characters, the ASCII codes, the Unicode code points and the UTF-8 bytes are all the same numbers. As soon as a character such as the accented e or a coffee emoji appears, the values go beyond 127 and are no longer plain ASCII.
Common Uses of a Text to ASCII Converter
- Programming and debugging: Check the exact character codes behind a string, find hidden characters and compare values in conditions.
- Learning computer science: See how text becomes numbers and bits, a core idea in programming, networking and data storage courses.
- Cybersecurity and CTF puzzles: Decode ASCII, hex and binary strings that appear in capture the flag challenges and simple obfuscation.
- Data cleaning: Detect non-ASCII characters such as smart quotes, non-breaking spaces and zero-width characters that break imports.
- Web development: Prepare values for URL encoding, HTML entities, escape sequences and character references.
- Embedded systems and hardware: Create the byte values you need to send text to displays, serial ports and microcontrollers.
- Fun and puzzles: Send secret messages as numbers, build escape room clues or create binary greetings.
Why Non-ASCII Characters Cause Problems (and How to Find Them)
One of the most common reasons people look for an ASCII converter is a mysterious error caused by a single unusual character. Text copied from a word processor, a website or a chat app often contains smart quotes instead of straight quotes, long dashes instead of hyphens, non-breaking spaces instead of normal spaces, or invisible characters such as the zero-width space. These look almost identical to ASCII characters on screen, but they have values above 127 and can break scripts, fail validation rules, corrupt CSV files or make a password look correct while still being rejected.
This converter helps you track them down. Paste the suspicious text, look at the non-ASCII count and the warning message, and open the character breakdown table where every non-ASCII character is marked. If you only want clean ASCII output, turn on Skip non-ASCII characters and the tool removes everything outside the 0 to 127 range from the result.
ASCII Control Characters Explained: Tab, Line Feed and Carriage Return
Control characters are the invisible half of ASCII, and three of them matter in almost every project. Code 9 is the horizontal tab, code 10 is the line feed that ends a line on Linux and macOS, and code 13 is the carriage return, which combined with a line feed ends a line on Windows. When a file created on one system looks wrong on another, the difference between these codes is usually the reason. If you paste multiline text into this tool, the new line characters appear in the breakdown table with their ASCII names, so you can see at a glance which line ending your text uses.
Other control characters such as the escape character, code 27, are still used in terminal color codes, and code 0 marks the end of a string in the C language. The full ASCII reference table below lists every control code with its abbreviation and full name.
Tips for Getting Accurate Text to ASCII Results
- Check for hidden characters: If the character count looks higher than expected, there may be spaces, tabs or line breaks you cannot see.
- Pick a separator that matches your use: Use commas for arrays in code, spaces for readability and new lines for one code per row.
- Use prefixes for code: Turn on prefixes to get values like 0x48 that you can paste directly into source code.
- Remember that case matters: Uppercase A is 65 and lowercase a is 97, a difference of exactly 32.
- Use the swap button to round trip: Convert text to ASCII, send the output to the input and decode it to confirm nothing was lost.
- Treat values above 127 with care: They are not standard ASCII and may mean different things in different encodings.
Complete ASCII Table: All 128 Characters with Decimal, Hex, Octal and Binary
Use this ASCII chart as a quick reference. It lists every standard ASCII character from 0 to 127 with its decimal, hexadecimal, octal and binary value, together with the abbreviation and full name for each control code. Scroll inside the table to see all rows.
ASCII table: decimal, hex, octal, binary and character for codes 0 to 127
| Dec |
Hex |
Oct |
Binary |
Char |
Description |
| 0 |
00 |
000 |
00000000 |
NUL |
Null |
| 1 |
01 |
001 |
00000001 |
SOH |
Start of Heading |
| 2 |
02 |
002 |
00000010 |
STX |
Start of Text |
| 3 |
03 |
003 |
00000011 |
ETX |
End of Text |
| 4 |
04 |
004 |
00000100 |
EOT |
End of Transmission |
| 5 |
05 |
005 |
00000101 |
ENQ |
Enquiry |
| 6 |
06 |
006 |
00000110 |
ACK |
Acknowledge |
| 7 |
07 |
007 |
00000111 |
BEL |
Bell |
| 8 |
08 |
010 |
00001000 |
BS |
Backspace |
| 9 |
09 |
011 |
00001001 |
TAB |
Horizontal Tab |
| 10 |
0A |
012 |
00001010 |
LF |
Line Feed |
| 11 |
0B |
013 |
00001011 |
VT |
Vertical Tab |
| 12 |
0C |
014 |
00001100 |
FF |
Form Feed |
| 13 |
0D |
015 |
00001101 |
CR |
Carriage Return |
| 14 |
0E |
016 |
00001110 |
SO |
Shift Out |
| 15 |
0F |
017 |
00001111 |
SI |
Shift In |
| 16 |
10 |
020 |
00010000 |
DLE |
Data Link Escape |
| 17 |
11 |
021 |
00010001 |
DC1 |
Device Control 1 |
| 18 |
12 |
022 |
00010010 |
DC2 |
Device Control 2 |
| 19 |
13 |
023 |
00010011 |
DC3 |
Device Control 3 |
| 20 |
14 |
024 |
00010100 |
DC4 |
Device Control 4 |
| 21 |
15 |
025 |
00010101 |
NAK |
Negative Acknowledge |
| 22 |
16 |
026 |
00010110 |
SYN |
Synchronous Idle |
| 23 |
17 |
027 |
00010111 |
ETB |
End of Transmission Block |
| 24 |
18 |
030 |
00011000 |
CAN |
Cancel |
| 25 |
19 |
031 |
00011001 |
EM |
End of Medium |
| 26 |
1A |
032 |
00011010 |
SUB |
Substitute |
| 27 |
1B |
033 |
00011011 |
ESC |
Escape |
| 28 |
1C |
034 |
00011100 |
FS |
File Separator |
| 29 |
1D |
035 |
00011101 |
GS |
Group Separator |
| 30 |
1E |
036 |
00011110 |
RS |
Record Separator |
| 31 |
1F |
037 |
00011111 |
US |
Unit Separator |
| 32 |
20 |
040 |
00100000 |
SP |
Space |
| 33 |
21 |
041 |
00100001 |
! |
Symbol |
| 34 |
22 |
042 |
00100010 |
" |
Symbol |
| 35 |
23 |
043 |
00100011 |
# |
Symbol |
| 36 |
24 |
044 |
00100100 |
$ |
Symbol |
| 37 |
25 |
045 |
00100101 |
% |
Symbol |
| 38 |
26 |
046 |
00100110 |
& |
Symbol |
| 39 |
27 |
047 |
00100111 |
' |
Symbol |
| 40 |
28 |
050 |
00101000 |
( |
Symbol |
| 41 |
29 |
051 |
00101001 |
) |
Symbol |
| 42 |
2A |
052 |
00101010 |
* |
Symbol |
| 43 |
2B |
053 |
00101011 |
+ |
Symbol |
| 44 |
2C |
054 |
00101100 |
, |
Symbol |
| 45 |
2D |
055 |
00101101 |
- |
Symbol |
| 46 |
2E |
056 |
00101110 |
. |
Symbol |
| 47 |
2F |
057 |
00101111 |
/ |
Symbol |
| 48 |
30 |
060 |
00110000 |
0 |
Digit |
| 49 |
31 |
061 |
00110001 |
1 |
Digit |
| 50 |
32 |
062 |
00110010 |
2 |
Digit |
| 51 |
33 |
063 |
00110011 |
3 |
Digit |
| 52 |
34 |
064 |
00110100 |
4 |
Digit |
| 53 |
35 |
065 |
00110101 |
5 |
Digit |
| 54 |
36 |
066 |
00110110 |
6 |
Digit |
| 55 |
37 |
067 |
00110111 |
7 |
Digit |
| 56 |
38 |
070 |
00111000 |
8 |
Digit |
| 57 |
39 |
071 |
00111001 |
9 |
Digit |
| 58 |
3A |
072 |
00111010 |
: |
Symbol |
| 59 |
3B |
073 |
00111011 |
; |
Symbol |
| 60 |
3C |
074 |
00111100 |
< |
Symbol |
| 61 |
3D |
075 |
00111101 |
= |
Symbol |
| 62 |
3E |
076 |
00111110 |
> |
Symbol |
| 63 |
3F |
077 |
00111111 |
? |
Symbol |
| 64 |
40 |
100 |
01000000 |
@ |
Symbol |
| 65 |
41 |
101 |
01000001 |
A |
Uppercase letter |
| 66 |
42 |
102 |
01000010 |
B |
Uppercase letter |
| 67 |
43 |
103 |
01000011 |
C |
Uppercase letter |
| 68 |
44 |
104 |
01000100 |
D |
Uppercase letter |
| 69 |
45 |
105 |
01000101 |
E |
Uppercase letter |
| 70 |
46 |
106 |
01000110 |
F |
Uppercase letter |
| 71 |
47 |
107 |
01000111 |
G |
Uppercase letter |
| 72 |
48 |
110 |
01001000 |
H |
Uppercase letter |
| 73 |
49 |
111 |
01001001 |
I |
Uppercase letter |
| 74 |
4A |
112 |
01001010 |
J |
Uppercase letter |
| 75 |
4B |
113 |
01001011 |
K |
Uppercase letter |
| 76 |
4C |
114 |
01001100 |
L |
Uppercase letter |
| 77 |
4D |
115 |
01001101 |
M |
Uppercase letter |
| 78 |
4E |
116 |
01001110 |
N |
Uppercase letter |
| 79 |
4F |
117 |
01001111 |
O |
Uppercase letter |
| 80 |
50 |
120 |
01010000 |
P |
Uppercase letter |
| 81 |
51 |
121 |
01010001 |
Q |
Uppercase letter |
| 82 |
52 |
122 |
01010010 |
R |
Uppercase letter |
| 83 |
53 |
123 |
01010011 |
S |
Uppercase letter |
| 84 |
54 |
124 |
01010100 |
T |
Uppercase letter |
| 85 |
55 |
125 |
01010101 |
U |
Uppercase letter |
| 86 |
56 |
126 |
01010110 |
V |
Uppercase letter |
| 87 |
57 |
127 |
01010111 |
W |
Uppercase letter |
| 88 |
58 |
130 |
01011000 |
X |
Uppercase letter |
| 89 |
59 |
131 |
01011001 |
Y |
Uppercase letter |
| 90 |
5A |
132 |
01011010 |
Z |
Uppercase letter |
| 91 |
5B |
133 |
01011011 |
[ |
Symbol |
| 92 |
5C |
134 |
01011100 |
\ |
Symbol |
| 93 |
5D |
135 |
01011101 |
] |
Symbol |
| 94 |
5E |
136 |
01011110 |
^ |
Symbol |
| 95 |
5F |
137 |
01011111 |
_ |
Symbol |
| 96 |
60 |
140 |
01100000 |
` |
Symbol |
| 97 |
61 |
141 |
01100001 |
a |
Lowercase letter |
| 98 |
62 |
142 |
01100010 |
b |
Lowercase letter |
| 99 |
63 |
143 |
01100011 |
c |
Lowercase letter |
| 100 |
64 |
144 |
01100100 |
d |
Lowercase letter |
| 101 |
65 |
145 |
01100101 |
e |
Lowercase letter |
| 102 |
66 |
146 |
01100110 |
f |
Lowercase letter |
| 103 |
67 |
147 |
01100111 |
g |
Lowercase letter |
| 104 |
68 |
150 |
01101000 |
h |
Lowercase letter |
| 105 |
69 |
151 |
01101001 |
i |
Lowercase letter |
| 106 |
6A |
152 |
01101010 |
j |
Lowercase letter |
| 107 |
6B |
153 |
01101011 |
k |
Lowercase letter |
| 108 |
6C |
154 |
01101100 |
l |
Lowercase letter |
| 109 |
6D |
155 |
01101101 |
m |
Lowercase letter |
| 110 |
6E |
156 |
01101110 |
n |
Lowercase letter |
| 111 |
6F |
157 |
01101111 |
o |
Lowercase letter |
| 112 |
70 |
160 |
01110000 |
p |
Lowercase letter |
| 113 |
71 |
161 |
01110001 |
q |
Lowercase letter |
| 114 |
72 |
162 |
01110010 |
r |
Lowercase letter |
| 115 |
73 |
163 |
01110011 |
s |
Lowercase letter |
| 116 |
74 |
164 |
01110100 |
t |
Lowercase letter |
| 117 |
75 |
165 |
01110101 |
u |
Lowercase letter |
| 118 |
76 |
166 |
01110110 |
v |
Lowercase letter |
| 119 |
77 |
167 |
01110111 |
w |
Lowercase letter |
| 120 |
78 |
170 |
01111000 |
x |
Lowercase letter |
| 121 |
79 |
171 |
01111001 |
y |
Lowercase letter |
| 122 |
7A |
172 |
01111010 |
z |
Lowercase letter |
| 123 |
7B |
173 |
01111011 |
{ |
Symbol |
| 124 |
7C |
174 |
01111100 |
| |
Symbol |
| 125 |
7D |
175 |
01111101 |
} |
Symbol |
| 126 |
7E |
176 |
01111110 |
~ |
Symbol |
| 127 |
7F |
177 |
01111111 |
DEL |
Delete |
What Is a Text to ASCII Converter?
A text to ASCII converter changes each character of your text into its ASCII number, which is the code a computer uses to store that character. The word Hi becomes 72 105 in decimal, 48 69 in hexadecimal and 01001000 01101001 in binary. A good converter also works in reverse, which is called ASCII to text, so you can turn a list of numbers back into words.
Related searches include ASCII code converter, ASCII value of a character, text to ASCII decimal, string to ASCII, ASCII to string and ASCII translator. They all lead to the same conversion, and this page covers each of them.
ASCII Code vs ASCII Art: Do Not Mix Them Up
The phrase text to ASCII can mean two different things. This tool creates ASCII codes, which are numbers such as 65 for the letter A. ASCII art is something else: a picture or large banner letters drawn with keyboard characters. If you wanted big text made of symbols, you need an ASCII art generator. If you wanted the numeric value of each character, you are in the right place.
ASCII Cheat Sheet: The Codes You Will Use Most
You do not need to memorize the whole table. These values cover most everyday work. For every one of the 128 characters, use the complete ASCII table further down this page.
Most used ASCII codes
| Character |
Decimal |
Hex |
Binary |
Why it matters |
| Space |
32 |
20 |
00100000 |
Separates words in text |
| 0 to 9 |
48 to 57 |
30 to 39 |
00110000 to 00111001 |
Digits are consecutive |
| A to Z |
65 to 90 |
41 to 5A |
01000001 to 01011010 |
Uppercase letters |
| a to z |
97 to 122 |
61 to 7A |
01100001 to 01111010 |
Lowercase letters, 32 more than uppercase |
| Tab |
9 |
09 |
00001001 |
Indents and column separators |
| Line feed |
10 |
0A |
00001010 |
New line on Linux and macOS |
| Carriage return |
13 |
0D |
00001101 |
Part of the Windows line ending |
| Escape |
27 |
1B |
00011011 |
Starts terminal color sequences |
| DEL |
127 |
7F |
01111111 |
Last ASCII code |
How to Convert ASCII to Text (Step by Step)
Decoding is just as easy as encoding. Use these steps when you have a list of ASCII numbers and want to read the message.
- Switch the mode at the top of the converter to ASCII to Text.
- Choose the format that matches your numbers: Decimal, Hex, Binary or Octal.
- Paste the values into the input box. Spaces, commas and new lines all work as separators, and prefixes such as 0x, \x and 0b are understood.
- Read the decoded text in the output box. If some values cannot be read, the tool tells you.
- Copy the text or use the output as the new input to convert it again.
ASCII Code Examples: Words, Numbers and Symbols
These examples show how common inputs look in decimal ASCII. Try them in the converter to see the same values in hex, binary and octal.
Text to ASCII decimal examples
| Text |
ASCII decimal codes |
Note |
| Hi |
72 105 |
Uppercase H is 72, lowercase i is 105 |
| ABC |
65 66 67 |
Letters are consecutive |
| abc |
97 98 99 |
32 higher than ABC |
| 123 |
49 50 51 |
Digits are text characters, not numbers |
| Hello World |
72 101 108 108 111 32 87 111 114 108 100 |
The space between words is 32 |
| A@1 |
65 64 49 |
Symbols have their own codes |
Convert Text to ASCII in Excel, Google Sheets, SQL and Linux
Besides the online converter, you can get ASCII values inside the tools you already use. The table lists the quickest built-in options.
Built-in ways to get ASCII values
| Tool |
Text to ASCII |
ASCII to text |
| Excel and Google Sheets |
=CODE("A") returns 65 |
=CHAR(65) returns A |
| MySQL |
SELECT ASCII("A"); |
SELECT CHAR(65); |
| SQL Server |
SELECT ASCII('A'); |
SELECT CHAR(65); |
| Linux or Mac terminal |
printf "%d" "'A" |
printf "\x41" |
These functions handle one character at a time, so for a whole sentence it is faster to paste the text into the online converter and copy all the codes at once.
Is ASCII Encryption? Why ASCII Codes Are Not Secret
ASCII is an encoding, not encryption. Anyone can convert ASCII numbers back to text with a free tool, so writing a message as ASCII codes hides it from nobody. Use ASCII codes for learning, puzzles and compatibility, and use real encryption and a password manager for anything private.
Troubleshooting: ASCII Conversion Problems and Fixes
- Decoded text looks wrong: Check that the number format matches your values. Decimal numbers will not decode if the tool is set to Hex.
- Some values are rejected: ASCII only goes up to 127. Larger numbers belong to other encodings such as UTF-8 or Unicode.
- The code count is higher than expected: Spaces, tabs and line breaks are characters too and have their own codes.
- Accented letters or emoji are missing: They are not ASCII. Turn off Skip non-ASCII characters to see them flagged, or use a Unicode converter.
- Output has no separators: Pick a separator such as a space or comma, or paste a continuous hex or binary string and let the decoder group it for you.
Is My Text Private When I Convert It to ASCII?
Yes. The conversion happens in your browser. Your text is not uploaded, saved or stored on a server, and it disappears when you close or refresh the page.
More Free Text Tools You May Need
ASCII is one of several ways to represent text as numbers. These related free tools cover the others:
Free Online ASCII Converter for Developers, Students and Curious Minds
Whether you need a text to ASCII converter for a homework assignment, a binary text generator for a puzzle, a hex to ASCII decoder for a debugging session or a quick way to find the character code of a symbol, this tool brings all of it into one clean page. It converts in both directions, supports four number formats, explains every character in a table, flags non-ASCII characters and keeps your data private by running locally in your browser. Bookmark it, share it with your classmates or team, and come back whenever you need to look at text the way a computer sees it.
Ready to try it? Scroll up, type your text and watch the ASCII codes appear. If you work with text, colors or PDF files often, explore the other free tools on our site as well.