Binary Text Converter
Convert text to binary, hex, or octal — and decode back.
Number bases in computing
Computers store everything as binary (base 2). Humans use decimal (base 10) for everyday numbers. Hexadecimal (base 16) and octal (base 8) are used as convenient shorthand for binary — they group bits into 4-bit and 3-bit chunks respectively, making large binary numbers far easier to read.
Quick conversion table
- Binary 01001000 = Decimal 72 = Hex 48 = Octal 110 = 'H'
- Binary 01100101 = Decimal 101 = Hex 65 = Octal 145 = 'e'
- Binary 01001100 = Decimal 76 = Hex 4C = Octal 114 = 'L'
How to use this converter
- Text → Binary: Enter any text, get space-separated 8-bit bytes
- Binary → Text: Paste space-separated binary bytes (e.g., 01001000 01101001)
- Text → Hex: Each character becomes a 2-digit uppercase hex code
- Hex → Text: Paste space-separated hex bytes (e.g., 48 65 6C 6C 6F)
Frequently asked questions
- How is text converted to binary?
- Each character in the text is converted to its ASCII (or Unicode) code point. That number is then written in base 2 (binary), padded to 8 bits. For example, 'H' is ASCII 72, which is 01001000 in binary. Each byte (8-bit group) represents one character.
- How do I read binary code?
- Binary uses only digits 0 and 1. Each group of 8 bits (a byte) represents one character. To decode: split binary into groups of 8 bits, convert each group from base 2 to decimal, then look up the decimal value in the ASCII table. For example, 01001000 = 72 = 'H'.
- What is hexadecimal (hex) and how is it used in computing?
- Hexadecimal (base 16) uses digits 0–9 and A–F. Each hex digit represents 4 bits, so 2 hex digits represent 1 byte. Hex is widely used in computing for colour codes (#FF5733), memory addresses (0x7fff), character encodings (U+0041 = 'A'), and cryptographic hashes. It is more compact and readable than raw binary.
- What is octal and where is it used?
- Octal (base 8) uses digits 0–7. Each octal digit represents 3 bits. Octal is historically used in Unix file permissions (chmod 755), older programming languages (C/C++ octal literals with leading 0), and embedded systems. It is less common than hex in modern programming.
- Does this converter support Unicode / emoji?
- This converter works with ASCII characters (0–127) and extended ASCII (128–255). For Unicode characters beyond the Basic Latin block (emoji, Devanagari, Chinese, etc.), the conversion uses the character's code point, which may be larger than a single byte.
Related tools
- JSON Formatter
Format, beautify, minify, and validate JSON in your browser
- QR Code Generator
Generate QR codes for URLs, text, Wi-Fi, and more. Download as PNG.
- Password Generator
Generate strong, random passwords with custom length and character sets.
- Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text.
- URL Encoder / Decoder
Encode or decode URLs and query strings with percent-encoding.