dev/converter

Binary to Hex Converter - Free & Instant | Smocky

Rewrites the same bytes in base 16. This one never fails on UTF-8.

Nothing leaves your browser

Hex to Binary

Frequently asked questions

Do the bytes change between hex and binary?

No. Hex and binary never disagree about the bytes, only about how they are written — this Pair rewrites the same Byte sequence in the other Digit width.

Why does the digit count differ so much between the two?

Hex uses 16 symbols per digit and binary uses 2, so four binary digits collapse into one hex digit. A single byte is always 2 hex digits or 8 binary digits, whichever side you are writing.

When is this the Pair to use instead of a text conversion?

When the bytes are not text at all — a hash, a key, or arbitrary binary data. Unlike the text Pairs, this conversion never fails on invalid UTF-8, because it never has to be UTF-8.

Send feedback

About Smocky

Send this feedback to Smocky via Cloudflare, a third-party service. Only the feedback you enter is included, along with your browser information. Your tool inputs and results are never attached. Please do not include passwords or other sensitive information. Privacy policy

Feedback is unavailable right now. Your draft is still here.