Type text and get the ASCII code for every character, in four bases, with a per character table and an exact download.
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.
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 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.
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.
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.
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.
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.
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.
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.
Same rules as this one: free, in your browser, with nothing uploaded.
Exact age in years, months and days for any form.
Marks, discounts and change, worked out properly.
Body mass index from height and weight, with its range.
Monthly loan payment, total interest and full cost.
The final price after a discount, and what you saved.
Add or remove GST at the rate your invoice uses.
Add tax to a price or pull it back out.
Work out a tip and split a bill between people.