Binary to Hex Converter

Type a binary number to see it in hexadecimal and the other common bases, with the working shown step by step.

Hexadecimal
2D
Binary
10 1101
Octal
55
Decimal
45
Other base (36)
19

Bits: 6

Working
positional expansion / repeated division / bit grouping
  1. 0010 → 2
  2. 1101 → D
  3. 101101₍2₎ = 2D₍16₎

How to convert

  1. Each hexadecimal digit is exactly 4 binary digits, so convert by grouping — no decimal step needed.
  2. Split the bits into groups of 4 from the right, pad the left group with zeros, and replace each group. Example: 101101 → 0010 1101 → 2D.

Notes

  • Integers of any length are converted exactly — no scientific notation.
  • Prefixes are accepted: 0x for hex, 0b for binary, 0o for octal; spaces and underscores are ignored.
  • Negative numbers: prefix with "-". Fractions are not supported yet.

Binary to Hex table

BinaryHexDecimal
000
111
1022
1133
10044
10155
11066
11177
100088
100199
1010A10
1011B11
1100C12
1101D13
1110E14
1111F15
1 00001016
10 00002032
100 00004064
110 010064100
111 11117F127
1000 000080128
1111 1111FF255
1 0000 0000100256
11 1110 10003E81000
100 0000 00004001024
1 0000 0000 000010004096
1111 1111 1111 1111FFFF65535

Frequently Asked Questions

Related