Text to ASCII Converter

Fast, accurate and free online text to ascii tool running directly in your browser.

No account
No installation
Free
Instructions
  • 1
    Enter data
    Enter content, paste text or load a file from disk.
  • 2
    Click the button
    The tool will immediately process your data in the browser.
  • 3
    Get the result
    Copy the finished text or save the file to your device.
function runTool() {
  return "Result ready in 0.1s";
}
Enter text and click "Convert" to generate ASCII codes.

Rate this tool:

Related tools

Other tools you may find useful

Pass it on

Will someone else find this useful?

Send a friend the link. It opens right away, with no account and no fees.

Text to ASCII online – converting text into character codes

The text to ASCII converter turns each character into the number under which the computer stores it: A is 65, a is 97 and a space is 32. You type text and the result is calculated as you go in decimal, hexadecimal (HEX) or binary notation. The same tool reads the codes back as text and removes Polish diacritics from text.

Introduction to converting text into ASCII codes

People see letters, digits and special characters, but a computer stores and transmits numbers. Converting text into ASCII codes shows this layer directly: instead of the word Hello you get the sequence 72 101 108 108 111.

This lets you quickly check the numeric value of a given character, prepare data for low-level tests, find an invisible character in text (a tab is 9, a carriage return 13) or practise the basics of character encoding without manually looking up codes in an ASCII table.

ASCII basics

ASCII (American Standard Code for Information Interchange) is a character encoding standard developed to unify the way text is stored in computers and communication devices. Each character is assigned a number from 0 to 127, which the computer stores as one byte.

Examples of ASCII codes:

  • the letter A has ASCII code 65
  • the letter a has ASCII code 97
  • the digit 0 has ASCII code 48
  • a space has ASCII code 32

The basic ASCII set contains 128 characters: Latin letters, digits, punctuation marks and control characters. Extended code pages and Unicode were built on it, but knowing classic ASCII still helps you understand how text files and communication protocols work.

Polish letters: why one letter gives two numbers

ASCII has no letters with diacritics. The tool stores text in UTF-8 and lists its consecutive bytes, each as a number from 0 to 255. An ASCII character takes 1 byte, so its code equals the value of the byte. A Polish letter takes 2 bytes: ą (Unicode U+0105, i.e. 261) gives 196 133. The euro sign is 3 bytes (226 130 172), and an emoji is 4.

LowercaseUTF-8 bytes (DEC)UTF-8 bytes (HEX)UppercaseUTF-8 bytes (DEC)UTF-8 bytes (HEX)
ą196 133C4 85Ą196 132C4 84
ć196 135C4 87Ć196 134C4 86
ę196 153C4 99Ę196 152C4 98
ł197 130C5 82Ł197 129C5 81
ń197 132C5 84Ń197 131C5 83
ó195 179C3 B3Ó195 147C3 93
ś197 155C5 9BŚ197 154C5 9A
ź197 186C5 BAŹ197 185C5 B9
ż197 188C5 BCŻ197 187C5 BB

Numbers from 128 to 255 in the result are not separate ASCII characters, but parts of such multi-byte letters.

How the text to ASCII converter works

The result is recalculated as you type. The “Convert” button or the Ctrl+Enter shortcut starts the calculation manually.

  1. Choose a mode: “Text to codes” (letters to numbers 0–255), “Codes to text” (numbers back to letters) or “Without Polish characters” (ą → a, ł → l, ż → z).
  2. Enter the text: type or paste up to 10,000 characters – a single word, a sentence or a longer passage.
  3. Code notation and layout: decimal (72), hexadecimal (48) or binary, always with 8 digits (01001000). The codes can be separated by a space, a comma or placed one per line.
  4. Read the result: copy the finished sequence with the “Copy codes” button. The tiles show the length of the text in characters, the size in UTF-8 bytes, the number of codes and the number of non-ASCII characters, and the breakdown table for the first 50 characters gives each character, its Unicode code point and its bytes in DEC and HEX.

There is nothing to install. Below the tool there is a cheat sheet with the codes of the most common characters: tab, new line, carriage return, digits, letters and Polish letters.

Examples of using the text to ASCII converter

Example 1: Converting the text “Hello”

You enter the text Hello in the input field. The tool converts each character into its corresponding ASCII code:

  • H → 72
  • e → 101
  • l → 108
  • l → 108
  • o → 111

The result in decimal notation: 72 101 108 108 111. After switching to hexadecimal you get 48 65 6C 6C 6F, and in binary 01001000 01100101 01101100 01101100 01101111.

Example 2: Converting the text “World”

For the text World the tool does the same: W → 87, o → 111, r → 114, l → 108, d → 100. The final sequence of ASCII codes is 87 111 114 108 100.

Example 3: Text with a space and a digit

The text Hi 5 gives 72 105 32 53. A space also has its own code (32), and the digit 5 has the code 53, not 5, because digit codes start at 48.

Example 4: A word with Polish letters

The word Cześć has 5 characters but 7 bytes: 67 122 101 197 155 196 135. The letters ś and ć each give two numbers, and the “Non-ASCII characters” tile will show 2. In HEX the same result is 43 7A 65 C5 9B C4 87.

Example 5: Codes back to text

In “Codes to text” mode you paste 72, 101, 108, 108, 111 and get Hello. The codes can be separated by a space, comma, semicolon or new line. In HEX notation the 0x prefix is optional, so 0x48 0x69 gives Hi. 196 on its own will end with an error message, because it is only the first byte of the letter “ą”. Control codes 0–31 (except 9, 10 and 13) and 127 are also rejected.

Example 6: Text without Polish characters

The “Without Polish characters” mode turns Zażółć gęślą jaźń into Zazolc gesla jazn and counts that it replaced 9 letters. Other non-ASCII characters, e.g. € or emoji, are left unchanged, and the tool shows their number separately.

Practical uses of converting text to ASCII

Character codes are useful in programming and testing systems, in data analysis and when learning computer science. The converter saves you from browsing tables and working out codes by hand.

Programming and software development

Programmers use ASCII codes when working with text protocols, file formats and low-level data handling, for example when:

  • analyzing data in logs and memory dumps
  • testing communication between a server and a client
  • preparing logins, file names and addresses without Polish letters

Data analysis and diagnostics

When debugging encoding problems, the breakdown table immediately shows which bytes a suspicious fragment consists of. You can use it to:

  • detect Windows (13 10) and Linux (10) line endings
  • find a non-breaking space, a tab or another invisible character
  • check whether “ó” is stored in UTF-8 (195 179) or in another code page

Education and learning computer science basics

In computer science lessons, the converter shows how text turns into numbers and, in binary notation, numbers into bits. This makes it:

  • easier to understand the role of character encoding
  • possible to build simple exercises with the ASCII table and substitution ciphers
  • clear how a character code differs from the number of bytes it takes up

Digital communication and protocols

Text protocols such as HTTP or SMTP send commands as ASCII bytes. The converter helps you read or generate them quickly when working with:

  • servers and clients that communicate in text
  • packet analysis in network tools
  • API tests where every byte of the content counts

Interesting facts about ASCII

ASCII was created in the 1960s in response to the need to standardize how text is written in telecommunications and computing. Despite the arrival of Unicode, ASCII is still the basis of many systems.

  • the basic ASCII set covers 128 characters, from 0 to 127
  • codes 0–31 and 127 are control characters, for example 7 (bell), 9 (tab), 10 (new line) and 13 (carriage return)
  • digits have codes 48–57, uppercase letters 65–90 and lowercase letters 97–122, so an uppercase and a lowercase letter always differ by 32, i.e. by one bit
  • UTF-8 is backward compatible with ASCII: the first 128 Unicode characters have the same codes and take one byte each

Understanding ASCII helps you see where later standards came from and why so many applications still rely on a simple mapping of characters to numbers.

Frequently asked questions (FAQ)

What is the ASCII code of the letter A?

The uppercase letter A has the code 65 (HEX 41, binary 01000001), and the lowercase a is 97. Every lowercase letter has a code 32 higher than its uppercase counterpart.

Does the converter support Polish characters?

Yes, but pure ASCII does not contain them, so the tool gives the UTF-8 bytes: each Polish letter is two numbers, e.g. ł = 197 130. When you need text in ASCII only, choose the “Without Polish characters” mode.

How do I convert ASCII codes back to text?

Choose the “Codes to text” mode and paste the numbers separated by a space, comma, semicolon or new line, in the same notation (DEC, HEX or BIN) in which you received them. The separate ASCII to text tool does the same.

How long a text can I convert?

Up to 10,000 characters at once. The breakdown table shows the first 50 characters, but the list of codes covers the whole text.

Is the data entered into the converter saved?

The text is sent to the server only to calculate the result. After you click “Convert”, the usage history keeps the mode, the code notation and the number of codes, without the content of the text you entered.

Why is it worth knowing ASCII codes when we have Unicode?

Unicode extends the character set, but its first 128 positions are exactly ASCII, and in UTF-8 they take one byte each. That is why you still come across ASCII in protocols, file formats and source code.

See also

Install Webp.pl Have the tools in your own pocket!