100% FREE  -  NO SIGN-UP  -  YOUR FILES NEVER LEAVE YOUR DEVICE

Text to ASCII

Type text and get the ASCII code for every character, in four bases, with a per character table and an exact download.

100% free, no premium plan No sign-up Files never leave your device
Drop your text here
or click to choose a file from your device

Your files are processed in your browser, on your own device. Nothing is uploaded to a server.

    Type any text and this tool lists the ASCII code for every character, in decimal, hex, binary or octal, with a table that shows all four side by side. It all happens in your browser, nothing is uploaded, and there is no sign-up or cap on text length.

    How do you convert text to ASCII codes here?

    1. Type or paste your text into the box.
    2. Pick the base for the code list. Decimal is the common choice, and hex, binary and octal are one click away.
    3. Pick a separator for the list, a space, a comma or a new line for each code.
    4. Optionally pad each code to a fixed width, or add the 0x, 0b or 0o prefix, if the place you are pasting into expects that style.
    5. Read the code list, check the per character table, and press the button under the tool to download the codes exactly as shown.

    What do the text to ASCII codes actually mean?

    ASCII gives every common character a number, and that number is how the character is stored. The anchors are worth learning. Capital A is 65, lowercase a is 97, the digit character 0 is 48, and a space is 32. Classic ASCII stops at 127, which is why everything familiar, from punctuation to the full English alphabet, fits inside that range.

    The gap between the cases carries a pattern. Lowercase letters sit 32 above their capitals, so A at 65 pairs with a at 97, and B at 66 pairs with b at 98. That constant gap of 32 is no accident. In binary it is a single bit, which made case flipping cheap for early hardware.

    The per character table is where this page earns its keep. For each of the first 200 characters of your text, it prints the character next to its decimal, hex, binary and octal codes, all on one row. If a code in the list ever looks wrong, the table lets you find the exact character behind it.

    Formatting choices do not touch the values. Padding a hex code to two characters, or a binary code to eight, only lines the output up neatly. Prefixes like 0x in front of a hex code only announce the base to whoever reads it next. The list with spaces and no decoration carries the same codes as the styled one.

    The honest details and limits of this text to ASCII tool

    The honest wrinkle is text beyond plain English. ASCII ends at 127, so a character like an accented letter has no ASCII code at all. This page labels that openly instead of carrying on as if nothing changed. In the table, such a character shows its Unicode code point, the number Unicode assigns to it.

    The code list treats those characters differently again, and the page says which is which. The list uses the UTF-8 bytes the character actually travels as, because bytes are what get stored and sent. An accented letter takes two bytes in UTF-8, and characters from many other scripts take three, so one character can produce more than one code in the list.

    That means the count of codes can exceed the count of characters. For plain English text the two counts match exactly, and the moment they stop matching, you know your text holds something outside the basic set, and the table shows you where.

    The table covers the first 200 characters, which is enough to inspect any normal word, name or line of code. The download gives you exactly the codes on screen, with the same separator, padding and prefixes you chose, so what you paste elsewhere matches what you checked here.

    FAQs

    What is the ASCII code for the letter A?

    Capital A is 65 in decimal, 41 in hex, 1000001 in binary and 101 in octal. Lowercase a is 97. The 32 point gap between the cases runs through the whole alphabet, so every lowercase letter sits 32 above its capital.

    Why does one of my characters produce two codes?

    Because it sits outside classic ASCII, which ends at 127. The code list uses the bytes the character travels as in UTF-8, and an accented letter takes two of those bytes. The table flags such a character and shows its Unicode code point in place of an ASCII code.

    Which separator should I choose for the code list?

    Spaces suit most pasting jobs and are easy to read. Commas suit anything heading for a spreadsheet or a data file. A new line per code suits lists you plan to read down or count. The codes themselves are the same in all three.

    What do the 0x, 0b and 0o prefixes mean?

    They announce the base of the number that follows. 0x marks hex, 0b marks binary and 0o marks octal, a habit borrowed from programming languages. Add them if the code or document you are pasting into uses that convention.

    Does padding change the codes?

    No. Padding only adds leading zeros so every code has the same width, like writing a hex byte as 0A instead of A. The value is untouched, and the download carries the padded form you see on screen.

    How do I get the codes out of the page?

    Press the button under the tool. It downloads exactly the codes shown in the list, with your separator, padding and prefix choices kept, so the file matches what you checked on screen.

    More Calculators and Converters

    Same rules as this one: free, in your browser, with nothing uploaded.

    Scroll to Top