Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Binary to Hexadecimal

Binary to Hexadecimal

Convert binary numbers to hexadecimal. Direct conversion between the two most important bases in computing - 4 binary bits = 1 hex digit.

What is the Binary to Hexadecimal Converter?

This tool converts binary numbers directly to hexadecimal, taking advantage of the natural relationship between base-2 and base-16.

Key relationship: exactly 4 binary bits (a nibble) map to 1 hexadecimal digit. Hex is just a more compact way of writing the same bits.

Why This Conversion is Special

4 Bits = 1 Hex Digit

A perfect, fixed mapping between every nibble and a single hex digit.

No Heavy Math

Just group the bits into fours and convert each group on its own.

Lossless

Hexadecimal is simply compact binary, with no information lost.

Reversible

You can convert straight back to binary at any time.

The Simple Method

Group the binary digits into sets of 4 from the right, then convert each group to its hex digit.

Example: 1101 0110 → D 6 → D6.

How to Use

1

Enter the Binary Number

Type any sequence of 0s and 1s. The input is padded with leading zeros to form complete 4-bit groups.

2

View the Hex Result

The bits are grouped and converted automatically, and the hexadecimal value appears instantly.

3

Copy for Use

Copy the value for use in code, color definitions, or documentation.

Bidirectional: both fields are editable. Type a hexadecimal value in the result field to convert it back to binary, or use the swap button to flip the direction.

Nibble Reference

BinaryHexBinaryHex
0000010008
0001110019
001021010A
001131011B
010041100C
010151101D
011061110E
011171111F

Frequently Asked Questions

Why is 4 bits exactly one hex digit?

Because 16 = 2⁴. Four bits can represent 16 distinct values (0 to 15), which is exactly the range of one hex digit (0–F).

What happens if the bit count isn't a multiple of 4?

The input is padded with leading zeros so it forms complete 4-bit groups. For example, 101 becomes 0101, which is hex 5.

Why does 11111111 equal FF?

Split into two nibbles: 1111 = F and 1111 = F, giving FF. This is the maximum value of a single byte (255 in decimal).

Where is binary-to-hex used in practice?

It's everywhere in computing: memory dumps, color codes, machine code, and debugging registers. Hex keeps long bit patterns short and readable.

01
0b
0123456789ABCDEFabcdef
0x

4-bit Conversions

0000 = 0
0101 = 5
1010 = A
1111 = F
11111111 = FF
10101010 = AA

Binary (Base-2)

The native language of computers. Groups of 4 bits (nibbles) map directly to single hex digits.

Hexadecimal (Base-16)

Compact representation of binary. One hex digit represents exactly 4 binary bits.

Enter binary digits (0 and 1)
11111111 in binary = FF in hex
Every 4 bits converts to 1 hex digit
Pad left with zeros if needed for grouping
Want to learn more? Read documentation →
1/5
Start typing to search...
Searching...
No results found
Try searching with different keywords