Nifty Dev Tools
  1. Home
  2. Number Converter
  3. Binary to Hex
Convert

Binary to Hex Converter

We never upload what you paste ✨

Type a binary number and get it in hex instantly. Any size, negative numbers and two's complement included.

Binary
Hex

The result will appear here as you type.

How to convert binary to hex

Each hex digit is exactly 4 binary digits, so you can convert digit by digit (group the binary digits in fours from the right):

2 → 0010
F → 1111
3 → 0011

So 1011110011 in binary is 2F3 in hex.

Binary to hex table

BinaryHex
00
11
102
113
1004
1015
1106
1117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F
1000010
10000020
100000040
110010064
11111117F
1000000080
11111111FF
100000000100
10000000000400
10000000000001000
1111111111111111FFFF

FAQ

How are negative numbers converted?

Without a bit width, the sign is kept: −255 becomes −FF. Choose a bit width and turn on Signed to use two's complement, the way computers store negative numbers: −1 in 8 bits is FF.

Is there a size limit?

No practical one. Arbitrary-precision integers (BigInt) convert even 100-digit numbers exactly. Fractions aren't supported.

Can I paste 0x, 0b or 0o prefixes, spaces or underscores?

Yes. Prefixes are recognized, and spaces or underscores between digits (like 1111_0000) are ignored. Put several numbers on separate lines to convert them all at once.

Is my data uploaded?

No. Everything is converted in your browser. Privacy