Skip to content
TrySitePrice

Binary, hex and text converter

Two jobs that look alike and are not. The letter A as text is one byte, 01000001. The number 1010 in base 2 is ten. Most converters put both behind one field and guess which you meant; this one asks, so an answer is never right for the wrong question.

What are you converting

These are genuinely different jobs and mixing them is where most converters go wrong. “A” as text is one byte, 01000001. The number 1010 in base 2 is ten. Asking one field to guess which you meant is how you get a confident wrong answer.

Questions about binary and hex

01Why are text mode and number mode separate?

Because the same input means different things in each. 1010 as text is four characters and four bytes; as a base-2 number it is ten. A single field has to guess, and a guess that is usually right is exactly the kind of tool that costs you an hour when it is wrong.

02Why was my hex rejected?

Two reasons, and the message says which. Either a character is not a hex digit — only 0-9 and a-f are — or the digit count is odd, which means a byte is half written, since one byte is always two hex digits. Spaces, commas and 0x prefixes are stripped before any of that is checked.

03Is Base64 encryption?

No. It is an encoding, fully reversible by anyone, designed to carry bytes through channels that only accept text. Anything you Base64 is as readable as before to anyone who cares to decode it. It hides nothing.

Related tools