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