Convert text to binary, hexadecimal, octal, and decimal representations. Decode binary, hex, and octal back to readable text. Supports ASCII and UTF-8. Free, private, runs entirely in your browser.
Convert text to binary (base-2), hexadecimal (base-16), octal (base-8), and decimal (base-10). Switch between formats instantly.
Encode text to numeric formats or decode numeric representations back to readable text. Swap input and output with one click.
Full support for ASCII and UTF-8 characters including international text, special symbols, and emoji with multi-byte encoding.
Conversion happens automatically as you type. Choose between space, comma, no separator, or newline formatting for output.
At the lowest level, computers store all data -- including text -- as binary numbers (sequences of 0s and 1s). Text encoding is the system that maps human-readable characters to specific binary values. Understanding this mapping is fundamental to programming, networking, data processing, and cybersecurity.
ASCII (American Standard Code for Information Interchange) is the foundation of text encoding. Developed in the 1960s, ASCII uses 7 bits to represent 128 characters: 26 uppercase letters (A-Z), 26 lowercase letters (a-z), 10 digits (0-9), 33 punctuation/symbol characters, and 33 control characters. For example, the letter "A" is encoded as decimal 65, binary 01000001, hex 41, and octal 101.
UTF-8 is the dominant character encoding on the web, used by over 98% of all web pages. It is a variable-length encoding that uses 1 to 4 bytes per character. ASCII characters (code points 0-127) use exactly 1 byte, making UTF-8 backward compatible with ASCII. Characters outside the ASCII range use 2, 3, or 4 bytes with specific bit patterns to indicate the number of bytes in the sequence.
Check out our other free tools. Encode Base64, convert number bases, generate hashes, and more -- all from your browser.
Base64 Encoder/Decoder →