Developer
Encoders, converters & dev utilities
Text to ASCII Converter — Character Codes
Convert text into ASCII codes — the decimal number for each character. ASCII assigns codes 0–127 to letters, digits, punctuation, and control characters, so "A" is 65, "a" is 97, and the digit "0" is 48. Worked example: "Hi" → 72 105 (H is 72, i is 105). These are the same byte values that underlie the binary and hex views — 72 is 01001000 in binary and 48 in hex. For characters above 127 (accents, emoji, CJK) the tool shows the UTF-8 bytes, since those are not part of 7-bit ASCII. Everything runs 100% in your browser with a step-by-step view. Free, no login.
Text → ASCII = each character → its code point as a decimal number (ASCII covers 0–127)
- Byte-exact worked example: "Hi" → H=72, i=105 → 72 105
- Same byte, three views: "H" = 72 decimal = 01001000 binary = 48 hex
- Common anchors: "A"=65, "a"=97, "0"=48, space=32
- Characters above 127 are shown as their UTF-8 bytes (not 7-bit ASCII); runs 100% client-side
Frequently asked questions
How do I convert text to ASCII codes?
Take each character and look up its code point as a decimal number. ASCII defines codes 0 through 127, so "H" is 72 and "i" is 105, making "Hi" → 72 105. The tool lists the code for every character and can show the same values in binary and hex, since they are just different notations for the identical byte.
What is the ASCII code for "A"?
Capital "A" is ASCII 65. From there the alphabet is sequential: B is 66, C is 67, and so on. Lowercase letters start higher — "a" is 97 — and the digits "0"–"9" are 48–57. Knowing a few anchors (A=65, a=97, 0=48, space=32) lets you sanity-check any conversion.
What about characters that are not in ASCII?
ASCII only covers code points 0–127, so accented letters, emoji, and non-Latin scripts fall outside it. For those, the tool shows the UTF-8 byte values instead, because that is how the character is actually stored — for example the euro sign € is the three UTF-8 bytes 226 130 172 (E2 82 AC), not a single ASCII code.