Text to Binary
Convert Text to Binary, Hex, and Decimal
Encode text into binary, hexadecimal, or decimal ASCII codes, and decode it back again. Choose a conversion mode and the result updates instantly.
About Text and Binary
Computers store every character as a number. The ASCII and Unicode standards assign each letter, digit, and symbol a code point, which can be written in binary (base 2), decimal (base 10), or hexadecimal (base 16). The letter "A", for example, is 65 in decimal, 1000001 in binary, and 41 in hex.
This tool converts between plain text and those numeric representations. It is handy for learning how character encoding works, debugging data, or creating puzzle-style messages. To learn more about number systems, see the JavaScript Bitwise tutorial.