Skip to main content
Premier SEO Services

Binary converters

Binary to Hex Converter

Convert binary to hexadecimal by splitting the bits into groups of four (nibbles) and replacing each group with one hex digit. Long values and spaced input are fine.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

Binary to Hex Converter

Paste your text — the result updates as you type

How to use the binary to hex converter

  1. 1Paste the binary into Binary (base 2). Spaces between groups are ignored.
  2. 2Read the result in Hexadecimal (base 16). Decimal and octal appear under Other bases.
  3. 3Tick Keep leading zeros to keep the full width (00001111 → 0F rather than F).
  4. 4Open Step-by-step working to see each 4-bit group and its hex digit, then press Copy.

Example

Input
1101011
Output
Hexadecimal: 6B
Decimal: 107
Octal: 153

Padded to 0110 1011: 0110 = 6 and 1011 = B.

Grouping bits into nibbles

Sixteen is 2⁴, so every hex digit stands for exactly four bits (a nibble). To convert:

  1. Split the binary into groups of four starting from the right.
  2. Pad the leftmost group with zeros if it is short.
  3. Replace each group with its hex digit.

1101011 → 0110 1011 → 6B. There is no arithmetic beyond the 16-row table below, which is why programmers read hex as shorthand for binary.

Binary-hex reference table

HexBinaryDecimalHexBinaryDecimal
000000810008
100011910019
200102A101010
300113B101111
401004C110012
501015D110113
601106E111014
701117F111115

Padding and leading zeros

Leading zeros don't change a number's value: 00001111 and 1111 are both F. They do matter when the width is meaningful, such as a byte in a file or a register value. Tick Keep leading zeros and the hex result keeps one digit for every four bits you typed (00001111 → 0F, 0000000011111111 → 00FF).

Group from the right, never from the left: grouping 1101011 from the left as 1101 011 would give the wrong answer.

Hex in programming and colours

Hex appears wherever bytes are shown to people: 0xFF in code, %20 in URLs, MAC addresses (3C:22:FB:…), file signatures (PNG files start 89 50 4E 47) and web colours. A colour such as #FF5722 is three bytes, red FF, green 57, blue 22. The RGB to HEX converter converts those to decimal channel values.

Is my text private?

This tool runs entirely in your browser. Your text is not uploaded to our servers.

Sources

Questions about the binary to hex converter

What is 11111111 in hex?

FF. Both nibbles are 1111, which is F (15). As a decimal number it is 255.

Why does hex use the letters A-F?

Base 16 needs sixteen single-digit symbols. After 0–9, the letters A to F stand for the values 10 to 15.

Do I need leading zeros?

Not for the value. Keep them when the width is part of the meaning, such as a full byte (0F) or a fixed-size field; tick Keep leading zeros to preserve them.

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem