Convert Binary to Hexadecimal

Convert binary to hexadecimal instantly — free online binary to hex converter.

About

About the Binary to Hexadecimal Converter

Programmers reach for hex far more often than binary because a byte fits exactly two hex digits, so converting binary to hex is the fastest way to make a string of 0s and 1s readable — whether you're reading a memory dump, a colour value or a register in a debugger.

Because 16 is 2⁴, each hex digit stands for exactly four bits, so the conversion is just regrouping: 1101 1110 becomes D and E, or DE. That one-to-one fit is why debuggers and hex editors show bytes in hex rather than decimal — a 32-bit register is eight hex digits instead of a 32-character string of 0s and 1s.

Choose what to view about this tool

Guide

Using the Binary to Hexadecimal Converter

  1. 1

    Step 1

    Binary is already selected below as the input base.

  2. 2

    Step 2

    Type or paste your binary digits (0s and 1s) into the value box.

  3. 3

    Step 3

    The result table fills in instantly — the hex value sits alongside octal, decimal and binary all at once.

  4. 4

    Step 4

    For a quick manual check, split the binary into groups of 4 bits from the right and convert each group to a single hex digit.

  • Turns binary into uppercase hex as you type, like 11111111 → FF
  • Leading zeros are optional — 1010 and 00001010 both give A
  • Accepts an optional 0b prefix on the input
  • Shows the value in binary, octal, decimal, hexadecimal and base 36 at once, plus any custom base from 2 to 36
  • Exact for whole numbers up to 9,007,199,254,740,991, and tells you when a number is too large
  • Runs entirely in your browser — free, with no sign-up and no limit

Embedded developers

Embedded developers write a bit pattern from a datasheet as a hex constant like 0xF0.

Reverse engineers

Reverse engineers line up a bit field they worked out on paper with the hex bytes in a dump.

Web designers

Designers see how an 8-bit colour channel written in binary maps to its two-digit hex code.

Students

Students verify nibble-by-nibble conversions from class exercises.

Popular base conversions

Examples

Binary to Hexadecimal examples

4 worked examples

01

A full byte

11111111 in binary equals FF in hex — grouped as two 4-bit nibbles, both all 1s.

02

A colour-style nibble

11110000 in binary equals F0 in hex, split into the groups 1111 and 0000.

03

Classroom example

1010 in binary equals A in hex.

04

Four nibbles, one word

1101111010101101 converts to DEAD in hex — each group of four bits becomes one hex digit.

FAQ

Frequently asked questions

Quick answers to common questions about the Binary to Hexadecimal Converter.

How do I convert binary to hex?

Type your binary number above, with binary selected as the input base. The hexadecimal value appears instantly in the results table — nothing is uploaded anywhere.

How do you convert binary to hex by hand?

Split the binary digits into groups of 4, starting from the right (pad the leftmost group with zeros if needed), then convert each group of 4 bits to one hex digit: 1111 0000 becomes F0, for example.

Why does hex map so cleanly onto binary?

Because 16 is 2 to the power of 4, every hex digit represents exactly 4 bits. That's also why a byte (8 bits) always converts to exactly 2 hex digits, unlike octal or decimal.

Is this binary to hex converter free?

Yes. It's free, with no sign-up and no limit on how many numbers you convert.

Can I convert hex back to binary?

Yes — the same converter works in both directions. Select hexadecimal as the input base instead, or use the dedicated hex to binary converter page.

How large a binary number can I convert?

Up to 9,007,199,254,740,991 in decimal terms — beyond that the conversion won't be exact, and the tool will tell you so.

Why group bits in fours for hex?

Each hex digit stands for exactly four bits, so grouping bits in fours from the right makes the conversion easy to check by eye. The tool doesn't require it — 101 still gives 5 — but padding to 0101 shows each nibble clearly.

Can I paste binary with spaces between bytes?

Not directly; spaces make the input invalid. Strip them first — Find and Replace can remove every space at once — then paste the joined bits, such as 1101111010101101.

Is the hex result upper or lower case?

Results are shown in uppercase, like 2A or FF. Hex digits aren't case-sensitive, so ff and FF mean the same value in code, CSS and URLs.

Still have a question? Contact us

Report a problem

Binary to Hexadecimal Converter

What went wrong?
    or paste a screenshot