Convert hexadecimal to and from binary, decimal and octal – plus hex fractions – with nibble-grouping steps shown. Everything runs locally in your browser.
Binary and Hex
- Binary to Hex Converter
Convert binary to hexadecimal by splitting the bits into 4-bit groups (nibbles) – each group maps to exactly one hex digit.
- Hex to Binary Converter
Convert hexadecimal to binary by expanding every hex digit into its 4-bit pattern.
Decimal and Hex
- Decimal to Hex Converter
Convert a decimal number to hexadecimal by repeated division by 16 – remainders above 9 become the letters A-F.
- Hex to Decimal Converter
Convert hexadecimal to decimal by summing place values – each digit is multiplied by a power of 16, with A-F standing for 10-15.
- Hex Fraction to Decimal Converter
Convert a hexadecimal number with a fractional part (such as A.
- Decimal Fraction to Hex Converter
Convert a decimal fraction to hexadecimal by repeated multiplication by 16, with exact detection of repeating hex digits – the float notation used in some language literals.
Hex and Octal
- Hex to Octal Converter
Convert hexadecimal to octal via binary: each hex digit becomes 4 bits, and the bits regroup into 3-bit octal digits.
- Octal to Hex Converter
Convert octal to hexadecimal via binary: 3-bit octal groups merge into 4-bit hex nibbles.
Hex is compressed binary: one digit per four bits, which is why registers, dumps, colors and hashes wear it. The converters below unfold hex to bits, evaluate it to decimal, regroup it to octal, and handle fractional hex — each with steps and exact arithmetic.
Everything runs locally; nothing you paste leaves the page.
Why hexadecimal is the programmer’s shorthand
Hexadecimal earns its place in computing from one fact: 16 is 2⁴, so one hex digit always stands for exactly four bits. A byte is always exactly two hex digits — 0xFF is 255, the largest byte value — which is why memory addresses, color codes, checksums and raw byte dumps are all written in hex. The same eight bits written in decimal can need one, two or three digits, but in hex a byte is always the same width, which makes patterns visible at a glance.
That four-bit correspondence also makes conversion mechanical. Hex to binary is pure digit expansion: each digit becomes its four-bit pattern, so 0x1ED becomes 0001 1110 1101. Binary to hex is the reverse regrouping, four bits at a time from the point outward. No multiplication, no division, no detour through decimal. The converters in this family show the nibble grouping for your exact input, and the fraction tools extend the same idea past the point, where each hex digit is worth a negative power of 16: 0.8₁₆ is 0.5 and 0.4₁₆ is 0.25.
Conventions worth knowing: the 0x prefix marks hex in most languages, the digits A–F are case-insensitive, and a hex dump groups bytes in pairs of digits precisely because of the nibble correspondence. Reading a dump becomes much faster once you can expand any digit to its four bits in your head — a skill the steps panels here are designed to drill.