Skip to content
BCBinary Code Translator
Menu

Binary to Hex Converter

Convert binary numbers (0s and 1s) to hexadecimal format instantly. Simply type or paste your binary below.

Binary InputBinary → Hex
0 chars
Hex Output
0 chars
Try an example

How to Convert Binary to Hexadecimal

Converting binary to hexadecimal is efficient because hex is base-16 (2^4), which means 4 binary digits equal 1 hex digit.

Step 1: Group the binary digits into sets of 4, starting from the right. Add leading zeros if needed.

Step 2: Convert each 4-bit group (a nibble) to its hex equivalent:

0000 = 0
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6
0111 = 7
1000 = 8
1001 = 9
1010 = A
1011 = B
1100 = C
1101 = D
1110 = E
1111 = F

Step 3: Join the converted hex digits in the same order.

Example: Binary 11010111 groups as 1101 0111, so 1101 = D and 0111 = 7. The hexadecimal result is D7.

Step-by-Step Binary to Hex Examples

  • 101101 → pad and group as 0010 11012D
  • 11111111 → group as 1111 1111FF
  • 100000000 → group as 0001 0000 0000100

The grouping method works because every hexadecimal digit represents exactly four binary bits. You do not need to convert the full binary number to decimal first.

Common Binary to Hex Conversions

Here are some useful values for quick checks:

Binary Hexadecimal
0000 0
1101 D
1111 F
00101101 2D
10101010 AA
11110111 F7
11111111 FF
100000000 100

For the reverse direction, use the hex to binary converter. To compare the same value across number systems, check the binary to decimal converter or the broader base converter. For a compact reference across all three systems, use the binary, decimal, and hex cheat sheet.

Frequently asked questions

How to convert binary to hexadecimal?

Group binary digits into sets of 4, then convert each group to its hex equivalent (0-9, A-F). For example, 11010111 becomes D7 (1101 = D, 0111 = 7).

Why use hexadecimal?

Hexadecimal is more compact than binary and easier to read. It is commonly used in programming for representing memory addresses, colors, and machine code.

What is the relationship between binary and hex?

Each hex digit represents exactly 4 binary bits (a nibble). This makes hex a convenient shorthand for binary data.

Can I convert hex back to binary?

Yes! Simply expand each hex digit into its 4-bit binary equivalent to get the full binary representation.

Related tools

View all tools

Cookie Preferences

Manage your cookie preferences. Necessary cookies cannot be disabled.

Necessary

Required

Required for language selection, privacy choices, and basic site functionality.

Cookies: NEXT_LOCALE

Analytics

Optional analytics cookies help us understand traffic and improve the website.

Cookies: _ga, _gid, _gat, _clck, _clsk

Advertising

Optional advertising cookies may be used to show relevant ads and measure performance.

Cookies: __gads, _gcl_au, IDE