Text To ASCII
Convert text into its ASCII code numbers. No signup. Ideal for programmers, students and understanding character encoding.
Share on Social Media:
A text to ASCII converter turns your text into decimal ASCII code numbers — Hi becomes 72 105. Paste your text, click Convert to ASCII, and copy the space-separated codes or save them as a TXT file. It is free, with no signup, and it accepts up to 3,000 words per search.
On this page
- How to Convert Text to ASCII Step by Step
- What ASCII Is and How It Encodes Characters
- ASCII Codes Versus the Characters Themselves
- Who Converts Text to ASCII
- Pro Tips for Working With ASCII Codes
- Common Text to ASCII Mistakes to Avoid
- Related Tools You May Need Next
- Frequently Asked Questions
How to Convert Text to ASCII Step by Step
- Enter your text. Type or paste it into the box above — for example “Hi”. You can also upload a .txt file instead of typing.
- Click “Convert to ASCII”. The tool sends your text to the server and returns the codes.
- Read the result. The codes appear under “Result” as space-separated decimal numbers — “Hi” becomes 72 105.
- Copy or save. Click Copy to Clipboard to copy the codes, or Save as TXT to download them as text-to-ascii.txt.
The tool accepts up to 3,000 words per search. If you paste more than that, or leave the box empty, no result appears — shorten the text and try again.

What ASCII Is and How It Encodes Characters
ASCII, the American Standard Code for Information Interchange, assigns a number from 0 to 127 to each character a computer could originally represent: letters, digits, punctuation and control characters. The printable characters run from 32 (space) to 126 (~). Because the mapping is standard, the same character always has the same code on every system.
| Characters | ASCII codes | How to remember it |
|---|---|---|
| A – Z | 65 – 90 | A is 65, B is 66, and so on |
| a – z | 97 – 122 | a is 97 — exactly 32 more than A |
| 0 – 9 | 48 – 57 | 0 is 48, 1 is 49, and so on |
| Space | 32 | The space character is a real code, not nothing |
| ! “ # $ % & ’ ( ) * + , - . / | 33 – 47 | Punctuation sits just above the space |
| Newline | 10 | Pressing Enter adds a code 10 |
Worked example — “Hi”: H is 72 and i is 105, so the tool returns 72 105. “Hello” becomes 72 101 108 108 111, and “123” becomes 49 50 51 — digits are characters too, so they get codes of their own.
One thing to know about accented letters and emoji: ASCII only covers the first 128 characters. This tool encodes your text as UTF-8 bytes, so a character outside ASCII comes out as two or more numbers — “é” becomes 195 169 and “😀” becomes 240 159 152 128. Those are the UTF-8 byte values, not a single ASCII code, because no single ASCII code exists for them.

ASCII Codes Versus the Characters Themselves
| Aspect | The character | Its ASCII code |
|---|---|---|
| What you see | H | 72 |
| What it is | A letter you read | A number the computer stores |
| Example word | Hi | 72 105 |
| Uppercase vs lowercase | A and a look related | 65 and 97 — 32 apart |
| Space | Looks like nothing | 32 — a real code |
| Accented letter é | One character | 195 169 (two UTF-8 bytes) |
| Same code everywhere? | Depends on the font | Yes — ASCII is a fixed standard |
The same text can be written in other number forms too. ASCII codes are decimal numbers; the same bytes written in hexadecimal are what the Text to Hex tool shows (“Hi” is 48 69 in hex), and in binary they are what the Text to Binary tool shows (“Hi” is 01001000 01101001). The value is the same in each case — only the notation changes.
Who Converts Text to ASCII
Students. Learning how computers store text as numbers, and checking their hand calculations against the tool.
Programmers. Looking up the code for a character while working with strings, keyboard input or file formats.
Computer science learners. Seeing the numeric layer underneath readable text for the first time.
People debugging encoding problems. Finding out exactly which bytes a piece of text contains, including invisible characters like spaces and newlines.
Anyone curious about character encoding. Turning a word into numbers is the quickest way to see that text is, at heart, a sequence of numbers.
Pro Tips for Working With ASCII Codes
Learn the three anchors. A is 65, a is 97 and 0 is 48 — from those three you can work out any letter or digit without a table.
Remember the 32 gap. Every lowercase letter is exactly 32 more than its uppercase twin (A 65, a 97), which is why converting case is just adding or subtracting 32.
Count the space. Spaces are characters with code 32, so “Hi there” gives eight numbers, not seven — count them before you paste the result somewhere.
Stay under 3,000 words. The tool converts up to 3,000 words per search. Split longer text into chunks rather than pasting it all at once.
Use a .txt file for long text. Uploading a file works the same as typing, and it keeps a long passage out of the input box.
Save before you leave. The result is not stored anywhere — copy it or download the TXT file before you close the page.
Need hex or binary instead? The same text in hexadecimal is on Text to Hex and in binary on Text to Binary.

Common Text to ASCII Mistakes to Avoid
Expecting one number per character for accented text. “é” gives two numbers (195 169) and emoji give four — the tool encodes UTF-8 bytes, so only plain ASCII text gives exactly one number per character.
Expecting é to be 233. 233 is é’s Unicode code point, not its ASCII code — ASCII has no code for é at all. What the tool returns (195 169) is the UTF-8 byte form.
Pasting more than 3,000 words. The page shows no result and no error — split the text and convert it in parts.
Confusing ASCII codes with Unicode code points. They agree for the first 128 characters (A is 65 in both), but they part company after that.
Forgetting the space and newline codes. A space is 32 and a newline is 10 — they appear in the output as real numbers, which surprises people counting by hand.
Leaving the box empty. An empty or whitespace-only input returns no result and no message — enter real text first.
Related Tools You May Need Next
Text to Binary — the same text as 8-bit binary groups. Binary to Text — turn binary back into readable text. ASCII to Binary — text to binary with leading zeros stripped. Binary to ASCII — binary groups back to characters. Text to Hex — the same text as two-digit hexadecimal. Base Converter — convert a number between binary, decimal, hex and octal. Character Counter — count the characters before converting. Word Counter — count words, characters and reading time.
Frequently Asked Questions
How do I convert text to ASCII?
Type or paste your text into the box above and click “Convert to ASCII”. The decimal codes appear under “Result” — for example, “Hi” becomes 72 105.
Is this text to ASCII converter free?
Yes. It is completely free with no account and no signup. It accepts up to 3,000 words per search.
What is the ASCII code for A?
65. Lowercase a is 97, the digit 0 is 48, and the space character is 32.
Why does é give two numbers?
ASCII only covers the first 128 characters, so the tool encodes text as UTF-8 bytes. “é” takes two UTF-8 bytes, 195 and 169, so you get two numbers. Plain English text gives exactly one number per character.
What is the ASCII code for a space?
32. A space is a real character with its own code, so it appears in the output — “Hi there” gives eight numbers, not seven.
Can I convert a whole file?
Yes. Upload a .txt file instead of typing, and the tool converts the file’s contents the same way.
Can I convert ASCII codes back to text?
Not on this page — this tool only goes from text to codes. Use Binary to Text if you have binary, or Text to Hex for the hex form of the same text.
Is there a limit on how much text I can convert?
Yes — 3,000 words per search. Longer text returns no result, so split it into parts under 3,000 words each.
Are ASCII codes the same as Unicode code points?
Only for the first 128 characters. A is 65 in both, but é is Unicode code point 233 while this tool returns its UTF-8 bytes, 195 169.
Does the tool upload or store my text?
Your text is sent to the server to be converted, and the result is shown on the reloaded page. Nothing is saved — copy the codes or download the TXT file before you leave.