Binary to Hex Converter

Convert binary to hex in your browser. Groups bits into nibbles automatically, accepts spaces between groups. Free and instant.

Binary inputpaste, type, or drop a file
Hex output
Runs 100% in your browser. Nothing is uploaded, logged, or stored, and there are no ads. Verify it yourself: open your browser's Network tab while you convert and watch that no requests leave this page.

About this tool

Convert binary numbers to hexadecimal. Bits are grouped into 4-bit nibbles from the right (padding the left with zeros if needed), and each nibble becomes one hex digit: 11110100 becomes f4.

Spaces and underscores inside a value are ignored, so 1111 0100 and 0b1111_0100-style groupings paste in cleanly. Multiple values convert at once, one per line.

Common uses

  • Compact a long bit pattern from a datasheet into readable hex.
  • Convert binary flag combinations into the hex constants code expects.
  • Double-check hand-converted homework or interview answers.

Automate via API

The same conversion is available as a REST endpoint for scripts, pipelines, and backends:

curl -X POST https://payloadly.com/api/v1/tools/binary-to-hex \
  -H "Content-Type: text/plain" \
  -H "X-Api-Key: YOUR_API_KEY" \
  --data-binary @input.txt

API documentation · Get an API key

Binary notes

Binary (base 2) writes numbers using only 0 and 1, one digit per bit. It is how data actually exists in hardware, and the base you drop into when debugging bitmasks, flags, and permissions.

  • Leading zeros change nothing numerically but often carry width meaning (e.g. one byte = 8 bits).
  • Group binary in blocks of 4 bits to convert to hex by eye.

Hex notes

Hexadecimal (base 16) uses the digits 0-9 and a-f, so one hex digit represents exactly four bits. It is the standard notation for memory addresses, byte dumps, color codes, and hashes.

  • Hex values are case-insensitive; 0xFF and 0xff are the same number.
  • A leading 0x prefix is a convention, not part of the value.
  • Each hex digit maps to exactly one 4-bit nibble, which is why hex-binary conversion is mechanical.

Frequently asked questions

Is my data uploaded to a server?

No. This tool runs entirely in your browser using JavaScript, and there are no ads on the page. Nothing you paste or drop here is uploaded, logged, or stored, and you can verify that yourself: open your browser's developer tools and watch the Network tab while you convert (no requests leave the page), or disconnect from the internet after the page loads and keep working.

What if my binary number's length is not a multiple of 4?

It is padded with zeros on the left before grouping, which never changes the value: 111110100 is treated as 0001 1111 0100 and converts to 1f4. If your value represents a fixed width (say one byte), include its leading zeros so the hex width matches.

Is there a size limit or a fee?

The browser tool is free with no signup and comfortably handles files up to tens of megabytes (limited by your device's memory). For automated or bulk processing inside your own scripts and pipelines, use the paid REST API.

Related tools