Turn binary into hex with the nibble method, each group of four bits mapped to its hex digit in front of you.
Your files are processed in your browser, on your own device. Nothing is uploaded to a server.
Type a binary number and this converter turns it into hexadecimal with the nibble method, grouping the bits in fours from the right so you can see how the answer is built. It runs fully in your browser, nothing is uploaded, and there is no sign-up or usage cap.
Hex has sixteen values for each digit, and four bits can hold exactly sixteen combinations, from 0000 to 1111. That is why one hex digit is exactly four bits, no more and no less. Converting between the two is mostly a tidy-up job. You are not really changing the number, just writing it in a shorter script.
Start from the right of the binary number and split it into groups of four. The leftmost group often comes up short, so it is padded with zeros on the left until it has four bits. The padding is shown in the working, never hidden, and leading zeros do not change a value.
Work through 11011011. Grouped from the right, it becomes 1101 and 1011. The group 1101 is worth 13, which hex writes as D. The group 1011 is worth 11, written as B. Put the two together and the answer is DB.
Two hex digits cover eight bits, which is one byte. That is why the full byte 11111111 is written as FF, and why both forms stand for 255 in decimal. Programmers lean on hex as a compact way to read binary without counting long strings of ones and zeros.
The result also shows the same value in binary, octal and decimal. If a group looks wrong, the decimal line gives you a quick way to check the size of what you converted.
Whole numbers only. If your input has a decimal point, the part after it is flagged openly in the result rather than converted or quietly ignored.
A minus sign is treated as sign and magnitude. The tool converts the size of the number, labels that choice, and puts the sign on the answer. Two’s complement is not applied, because that belongs to a chosen bit width, and this converter does not force one on you.
Input is checked digit by digit. Binary only allows 0 and 1, so if a 2 slips in from a copy and paste, the result names the bad digit and its position instead of producing a confident looking wrong answer.
Length is not a problem. The maths is exact at any size because the converter uses arbitrary precision arithmetic, with no 53-bit ceiling trimming long inputs the way ordinary browser numbers would.
Split the binary number into groups of four bits, starting from the right. Pad the last group on the left with zeros if it is short. Work out the value of each group, from 0 to 15, and write it as one hex digit, using A to F for 10 to 15.
It is FF. The first four bits, 1111, are worth 15, which is F. The second four bits are also worth 15, another F. Eight bits make one byte, and FF is the largest value a byte can hold, 255 in decimal.
Four bits give sixteen possible combinations, and hex has sixteen digit values. The two systems line up perfectly, so each group of four bits maps to exactly one hex digit with nothing left over.
No. Leading zeros add nothing to a number, in binary just as in decimal. The padding only completes the group of four so the mapping stays regular, and this tool shows the padded zeros in the working so you can see where they went.
The conversion stops and the result names the bad digit and where it sits in your input. Binary has no digit 2, so guessing would only give you a wrong answer that looks right.
Yes, with a clear label. The size of the number is converted and the minus sign is carried onto the result, which is sign and magnitude form. The tool does not silently switch you into two’s complement.
Same rules as this one: free, in your browser, with nothing uploaded.
Exact age in years, months and days for any form.
Marks, discounts and change, worked out properly.
Body mass index from height and weight, with its range.
Monthly loan payment, total interest and full cost.
The final price after a discount, and what you saved.
Add or remove GST at the rate your invoice uses.
Add tax to a price or pull it back out.
Work out a tip and split a bill between people.