Hex Converter

Convert between text, hexadecimal, binary and decimal bytes, with UTF-8 handled correctly.
Client-side · verifiable
How this tool works

Computers store text as bytes, and there are several ways to write a byte down. Hexadecimal uses two characters per byte (48 65 6c 6c 6f), binary uses eight (01001000 …), decimal uses one to three (72 101 108). This converter takes any of them, or plain text, and shows all the others.

  • Text is encoded as UTF-8, so “é” becomes two bytes and an emoji four. That is what every modern protocol expects.
  • Hex input tolerates 0x prefixes, spaces, colons and mixed case.
  • Binary and decimal input are validated so an odd digit count or a value over 255 is reported instead of silently mangled.

Use it to read hash outputs byte by byte, decode a hex-encoded key, or check what a string looks like on the wire.

Security note

What leaves your browser

All conversion happens in your browser. Nothing is transmitted or stored.

FAQ
Why does one character become several bytes?

UTF-8 uses one byte for ASCII and two to four for everything else. The byte count line shows the real size.

Can I convert a hash to text?

A hash is not text; it is random-looking bytes. Converting it will show unprintable characters. Hex is the correct way to display it.

Is this the same as a hex editor?

For small strings, yes. For files, use the file checksum tool to hash or your editor's hex view to inspect.