Text to Binary, Hex, Octal & Decimal
Convert UTF-8 text into 8-bit binary, hexadecimal, octal, or decimal byte values, or decode byte sequences back into readable text.
About This Tool
Encodes UTF-8 strings into 8-bit binary, hexadecimal, octal, or decimal byte representations using TextEncoder, and decodes byte sequences back into text using TextDecoder.
Because encoding operates on UTF-8 bytes rather than UTF-16 code units, multi-byte characters (such as accented letters, CJK characters, or currency symbols) round-trip accurately.
Key Features
- Four byte bases: Switch between 8-bit binary (01001000), hex (48), octal (110), and decimal (72) byte values.
- Full UTF-8 awareness: Multi-byte Unicode code points encode to their exact 2, 3, or 4 UTF-8 bytes and decode cleanly back to text.
- Flexible separators: Format output with spaces, commas, or as a continuous byte stream, and decode either spaced or continuous binary/hex input.
- Strict validation: Pinpoints malformed byte tokens, out-of-range values (> 255), or broken UTF-8 sequences with clear error messages.