ASCII converter
Type text to get its ASCII codes, or paste codes to get the text back. Pick decimal, hex or binary codes; with hex it works as an ASCII hex converter.
Byte by byte
Every byte of your input, with the place values that add up to it. Hover a row to find that byte in the output.
| Character | Binary | Place values | Decimal | Hex |
|---|
The same codes, four ways
| Character | Decimal | Hex | Binary | Octal |
|---|---|---|---|---|
| H | 72 | 48 | 01001000 | 110 |
| i | 105 | 69 | 01101001 | 151 |
| ! | 33 | 21 | 00100001 | 041 |
| (space) | 32 | 20 | 00100000 | 040 |
| 7 | 55 | 37 | 00110111 | 067 |
An ASCII code is just a number from 0 to 127. Decimal, hex, binary and octal are four ways of writing the same number. Use the menu above the box to switch between them; the codes you paste back can be in whichever form you picked.
Sources and method
- RFC 20 (STD 80), ASCII format for network interchange, section 4: the 128 ASCII codes and control-character names. Checked 2026-11-25.
- RFC 3629 (STD 63), UTF-8, a transformation format of ISO 10646, section 4: which byte sequences are valid UTF-8. Checked 2026-11-25.
- WHATWG Encoding Standard (Living Standard, updated 20 November 2026), section 9 (single-byte encodings, used for Windows-1252) and section 14 (UTF-16LE and UTF-16BE decoders). Checked 2026-11-25.
Codes are byte values from 0 to 255, written in the form you pick. With ASCII selected, only 0 to 127 are accepted.
The ASCII option here is strict 7-bit ASCII (codes 0 to 127, per RFC 20) and rejects anything else. Browsers treat the label “ascii” as Windows-1252, which is why the two are listed separately.
Questions
What is an ASCII code?
The number ASCII gives a character. “A” is 65, “a” is 97, a space is 32 and the digit “0” is 48. The full list is in the ASCII table.
Can I convert accented letters?
Not in ASCII, which has no accented letters. Switch the encoding to UTF-8 to see the bytes UTF-8 uses for them.
What separators can I use between codes?
Spaces, commas, semicolons or new lines all work.