decimalcalc
Binary Suite•4-Bit Nibble Mapping

Binary to Hex Converter

Convert binary sequences to hex (Base-16) with 4-bit nibble grouping, byte formatting, and color inspection.

Binary → Hex
Swap: Hex → Dec
4-Bit Nibble GroupingPad to multiple of 4
1111 1111
Preset binary values:
Hexadecimal (0x)
0xFF
Standard: FF₁₆
Byte SpacedFF
Decimal255
ASCII CharNon-printable
Color Preview (24-bit Hex)
#0000FF
fx

How Binary to Hex Conversion Works

1Step 1: Pad the binary integer digits to the left with zeros until the length is a multiple of 4.
2Step 2: Split the binary string into 4-bit nibbles: [1111] [1111].
3Step 3: Convert each 4-bit chunk to its hexadecimal digit: 1111₂ = F₁₆.
4Step 4: Combine the hex digits with the 0x prefix → 0xFF.
5Step 5: Decimal representation: 255.

4-Bit Binary to Hexadecimal Conversion Chart

Every 4 bits of binary (one nibble) map directly to one hexadecimal digit (0–9, A–F).

4-Bit BinaryHex DigitDecimalWord DescriptionAction
000000Zero
000111One
001022Two
001133Three
010044Four
010155Five
011066Six
011177Seven
100088Eight
100199Nine
1010A10Ten (0xA)
1011B11Eleven (0xB)
1100C12Twelve (0xC)
1101D13Thirteen (0xD)
1110E14Fourteen (0xE)
1111F15Fifteen (0xF)

Frequently Asked Questions

Everything you need to know about decimal conversions, accuracy, and formulas.

01How do you convert binary to hex (hexadecimal)?▼

To convert binary to hex: 1) Group the binary digits into sets of 4 bits (nibbles) starting from right to left for the integer part, padding the leftmost group with zeros if needed. 2) Convert each 4-bit group into its equivalent hexadecimal digit (0-9, A-F). 3) Combine the hexadecimal digits with the '0x' prefix.

02Why is 4 bits equal to 1 hex digit?▼

Because 2⁴ = 16. A 4-bit binary group has exactly 16 possible states (0000₂ to 1111₂), perfectly corresponding to the 16 hexadecimal digits (0 through F).

03How do you convert fractional binary to hex?▼

For the fractional part after the radix point, group bits into sets of 4 from left to right (padding with trailing zeros if necessary), then replace each 4-bit group with its corresponding hex digit. For example, 0.101₂ = 0.1010₂ = 0.A₁₆.

Copied to clipboard!