Binary to Hex Converter

🔒 Runs in your browser — nothing is sent to a server

Convert a binary number to hexadecimal. Each group of four binary digits (a nibble) maps cleanly to one hex digit, so 11111111 becomes ff and 1111000010101010 becomes f0aa. This direct 4-to-1 mapping is the reason firmware engineers, embedded developers and assembly programmers prefer hex over binary for memory dumps and register-level work. Long binary words are handled with BigInt, so 64-bit values round-trip without precision loss.

Binary (2)

Allowed: 0 and 1

Hexadecimal (16)

Allowed: 0–9, a–f

Binary (2)Hexadecimal (16)

Quick reference table

Binary (2)Hexadecimal (16)
11
1111f
1000010
11111111ff
100000000100
111111111111fff
1111111111111111ffff

Glossary

Binary (base 2)

The binary numeral system uses only two digits — 0 and 1 — and is the native number system of every digital computer. Each binary digit (bit) represents a power of 2: the rightmost bit is 2^0 = 1, then 2^1 = 2, 2^2 = 4, 2^3 = 8 and so on. Eight bits form one byte. Binary underlies every memory cell, register and network packet.

Hexadecimal (base 16)

The hexadecimal numeral system uses sixteen digits: 0–9 and a–f, where a–f represent 10–15. Each hex digit maps to exactly four binary digits (one nibble), which makes hex the compact human-readable form of binary data. Memory addresses, MAC addresses, MD5/SHA hashes, RGB color codes such as #ff8800 and machine-code bytes are all conventionally written in hex.

Related tools