← Back to tools
Text ↔ Binary Converter
Convert text to binary, hexadecimal, octal, or decimal — and back. Supports full Unicode via UTF-8 encoding.
Result will appear here…
Quick Reference — Text Encoding
How it works: Each character is first encoded to bytes using UTF-8, then each byte is represented in the selected number base (binary, hex, octal, or decimal).
Binary (Base 2): Uses digits 0 and 1. Each byte is 8 bits (e.g., "A" = 01000001). Fundamental to how computers store data.
Hexadecimal (Base 16): Uses 0-9 and a-f. Each byte is 2 hex digits (e.g., "A" = 41). Common in color codes, memory addresses, and debugging.
Octal (Base 8): Uses digits 0-7. Each byte is up to 3 octal digits (e.g., "A" = 101). Used in Unix file permissions.
Decimal (Base 10): Standard numbers 0-255 for each byte (e.g., "A" = 65). Same as ASCII values for the basic Latin alphabet.
Unicode support: Non-ASCII characters (emoji, CJK, etc.) produce multiple UTF-8 bytes. For example, "hello" in Chinese (你好) produces 6 bytes.