Text to Binary, Hex, Octal Converter
Encode text as binary, hex or octal bytes β and decode back.
Two-way conversion between plain text and its binary, hexadecimal or octal byte representation. UTF-8 bytes are produced for non-ASCII characters. Useful for low-level encoding work, debugging, or just exploring how text becomes bytes.
Common use cases
- Encode a UTF-8 string as raw hex for a binary protocol payload
- Decode a hex dump back to readable text during debugging
- Demonstrate text-to-bits encoding for a class or workshop
- Convert binary byte sequences pasted from documentation back to text
Frequently asked questions
Is it ASCII or UTF-8?βΎ
UTF-8. Multi-byte characters (Γ©, ζ₯, π) become multiple bytes when encoded, and recombine correctly when decoding.
Why are hex bytes shown space-separated?βΎ
For readability. The decoder accepts any whitespace or runs them together β it strips non-hex characters before parsing.
Will it handle very long input?βΎ
Yes β performance scales linearly. Tens of kilobytes of text decode in under a second.
Related tools
{}
JSON Formatter & Validator
Beautify, validate and minify JSON instantly in your browser.
β
JSON β CSV Converter
Convert JSON arrays to CSV and CSV back to JSON.
B64
Base64 Encoder & Decoder
Encode and decode Base64 strings, including UTF-8 and binary.
%
URL Encoder & Decoder
Percent-encode and decode URL components safely.