ASCII / String Converter
Convert text to character codes in binary, decimal, hex, or octal — and back.
About the ASCII / String Converter
ASCII (American Standard Code for Information Interchange) defines a mapping between printable characters and integer values from 0 to 127. Extended encodings like UTF-8 and Unicode build on this foundation to cover the full range of human writing systems. This tool converts each character in your input string to its numeric character code, expressed in binary, octal, decimal, and hexadecimal — all at once. It also performs the reverse, decoding a sequence of space-separated numbers back into readable text.
How to Use
- Text → Numbers: type or paste any text and the tool outputs the character codes in all four bases simultaneously. Each number in the output corresponds to one character, separated by spaces.
- Numbers → Text: select the input base, paste space-separated numbers, and the tool decodes them back to text. For example, entering
72 101 108 108 111in decimal producesHello.
Common Uses
- Encoding strings for transmission in binary or hex formats in embedded systems
- Decoding raw byte arrays from network captures or log files
- Understanding escape sequences in C, Python, and other languages
- Converting text for use in QR codes, barcodes, and other encoding schemes
- Learning and teaching how character encoding works
Related Tools
- Binary ConverterConvert binary to decimal, hexadecimal, octal and ASCII.Open tool
- Octal ConverterConvert octal to binary, decimal, hex and ASCII.Open tool
- Decimal ConverterConvert decimal to binary, octal, hex and ASCII.Open tool
- Hex ConverterConvert hexadecimal to binary, octal, decimal and ASCII.Open tool