Binary to Hex Converter
Type any binary number and instantly see its hexadecimal, decimal, and octal equivalents.
Last updated: May 30, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Binary to Hex Converter?
Binary is the base-2 number system, using only the digits 0 and 1. Hexadecimal (hex) is the base-16 number system, using digits 0–9 and A–F.
The two bases are intimately related: every group of exactly 4 binary bits (called a "nibble") maps to exactly one hex digit. This makes binary-to-hex conversion especially clean:
- 0000 → 0 - 0001 → 1 - 1010 → A - 1111 → F
For example, 11001010 binary splits into 1100 (= C) and 1010 (= A) = CA hex.
Hexadecimal is the format most commonly used to display binary data in a human-readable way — memory addresses, CSS colour codes (#RRGGBB), cryptographic hashes, and network packet dumps all use hex.
How to Use Binary to Hex Converter
Type or paste a binary number into the input field (digits 0 and 1 only)
The hexadecimal, decimal, and octal equivalents appear instantly
Click any "Copy" button to copy a specific result
Click "Load Sample" to see an example conversion
Common Use Cases
- Converting binary memory or register values to hex for display in a hex editor.
- Translating binary output from an embedded system into compact hex notation.
- Verifying binary-to-hex conversion in computer architecture or networking coursework.
- Breaking down a binary colour component (e.g. 11111111 → FF) for use in CSS hex colours.
- Understanding how binary bitfields map to hex in hardware documentation.
- Debugging binary network packets by converting fields to their hex representation.
Example Input and Output
The binary number 11001010 is converted to hex CA, decimal 202, and octal 312.
11001010CA (hex) = 202 (decimal) = 312 (octal)Privacy
All number conversions run in your browser using JavaScript BigInt. No data is sent to any server.
Nibble grouping trick
To convert quickly by hand: pad your binary number to a multiple of 4, group into nibbles from the right, and look up each nibble in the table: 0000=0, 0001=1, 0010=2, 0011=3, 0100=4, 0101=5, 0110=6, 0111=7, 1000=8, 1001=9, 1010=A, 1011=B, 1100=C, 1101=D, 1110=E, 1111=F.
Frequently Asked Questions
How do I convert binary to hex manually?
Group your binary number into chunks of 4 bits from the right (pad with leading zeros if needed). Convert each nibble separately: 0000=0, 0001=1, 0010=2, 0011=3, 0100=4, 0101=5, 0110=6, 0111=7, 1000=8, 1001=9, 1010=A, 1011=B, 1100=C, 1101=D, 1110=E, 1111=F. Concatenate the hex digits.
Can I enter binary numbers with the 0b prefix?
Yes. The tool accepts both plain binary (1010) and the 0b-prefixed format (0b1010) used in JavaScript, Python, and C.
Why is hex closely related to binary?
Because 16 = 2⁴, exactly 4 binary bits map to one hex digit. This means you can convert between binary and hex by grouping bits into nibbles without any arithmetic — making hex a compact, human-readable shorthand for binary.
How large a binary number can this converter handle?
This tool uses JavaScript BigInt, which handles arbitrarily large integers with no precision loss. You can convert binary numbers with hundreds of bits without overflow.
Is this the same as using the Number Base Converter?
Yes — the Number Base Converter handles binary to hex (and many other base combinations) with additional features like bit grouping. This page provides a simpler, focused binary-to-hex experience.
Related Tools
Number Base Converter
Convert numbers between binary, decimal, hexadecimal, octal, and any custom base — with bit grouping, signed integers, and step-by-step explanation.
Binary to Decimal Converter
Convert binary numbers (base 2) to decimal (base 10). Also shows hexadecimal and octal equivalents. Supports large binary numbers.
Binary to Octal Converter
Convert binary numbers (base 2) to octal (base 8). Also shows decimal and hexadecimal equivalents. Supports large binary numbers with BigInt precision.
HEX to RGB
Convert a HEX colour code to RGB values instantly. Shows the CSS rgb() function output with a live colour preview.
Text to Binary Converter
Convert text to its binary code (0s and 1s). Each character is converted to its 8-bit binary representation. Supports all ASCII characters.
Binary to Text Converter
Convert binary code (0s and 1s) to readable text. Paste space-separated 8-bit binary groups and get the ASCII text output instantly.

