Binary ↔ Hexadecimal Converter
Convert numbers between binary and hexadecimal without going through decimal. Shows nibble (4-bit) grouping.
Agrupamento em nibbles (4 bits):
—
From bits to hex without the decimal detour
You are staring at a memory dump, a register mask or a colour value and you need to get from 11010110 to D6 without doing it in your head or digging out the system calculator. The two fields here mirror each other: type on either side and the other updates on every keystroke, in both directions. Below them, the same binary is shown grouped four bits at a time.
The conversion is direct because each group of 4 bits, a nibble, maps to exactly one hex digit. Nothing is routed through decimal, so a 64, 128 or 256-bit string comes out right, while converters that parse to an integer break past 2 to the 53rd. When the binary does not fill a multiple of four, it is padded with leading zeros: 101 becomes 0101, which is 5.
An invalid character is not erased from the field, it is simply ignored in the maths. So if you typed a 2 in the binary box or a G in the hex box and the answer looks odd, that is why. It handles unsigned integers only: no minus sign, no decimal point, no two's complement interpretation, so for negatives convert the bit pattern you already have. All of it runs in the browser.
Frequently asked questions
Why do leading zeros show up in the binary?
Does it handle negative numbers?
Is there a length limit?
Related Tools
Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Instant bidirectional conversion.
Numeric Bases Converter
Convert numbers between binary (base 2), decimal (base 10), hexadecimal (base 16) and octal (base 8). Type in any field for instant conversion in the others.
IPv4 Format Converter
Convert IPv4 addresses between formats: dotted decimal (192.168.1.1), integer (3232235777), hexadecimal (0xC0A80101) and binary. Everything in your browser.
Text ↔ Hex Converter
Convert ASCII text to hexadecimal values and vice versa, character by character. Useful for debugging, encoding and protocol analysis.
Binary Code Translator
Convert text to binary code (0s and 1s) and vice versa. Supports any ASCII character. Processed in the browser.
YAML to NDJSON Converter
Explains how to represent YAML lists as NDJSON (one JSON object per line) with practical examples.