Text → decimal
- Input
- AB
- Expected output
- 65 66
One number per character.
text to ASCII code converter
The whole ASCII table is based on decimal numbers from 0 to 127 (extended to 255, and up to 1,114,111 in Unicode). This converter takes a whole text and returns the decimal code of each character, or does the reverse.
One number per character.
Space-separated codes.
Select the Binary format, keep the direction on Text → Code and type your text. Each character becomes an 8-bit group (for example, 'A' becomes 01000001), separated by spaces. For the reverse, paste the binary and switch the direction to Code → Text, it works with space-separated groups or with one continuous run of bits.
Paste the text with the Decimal format selected and the Text → Code direction: each character appears as the decimal number of its code point, in the same order as the original text.
It's complementary: an ASCII table is a reference for looking up one character's code at a time; this converter processes whole strings at once, which is faster for long text.
Technically, pure ASCII only goes up to 127; numbers from 128 to 1,114,111 are Unicode code points (which include extended ASCII). The converter treats both the same way, with no distinction.
All translation happens in your browser. No text is ever sent to a server, safe for passwords, tokens and sensitive data.