Binary Converter
Free online binary converter. Convert to/from binary (base-2). Accurate and easy to use.
Embed this tool
Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.
<iframe src="https://www.theutilbox.org/embed/binary-converter" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Binary Converter tool from The Util Box"></iframe> <!-- Free tool by The Util Box — https://www.theutilbox.org/tools/binary-converter --> <a href="https://www.theutilbox.org/tools/binary-converter">Binary Converter by The Util Box</a>
Frequently Asked Questions about Binary Converter
Binary Converter — Decimal, Binary, Hex and Octal Together
This binary converter shows the same value in four bases at once. Enter a decimal number or a binary string and you get the decimal, the binary, the hexadecimal and the octal forms side by side, each with its own copy button.
A byte breakdown panel shows the binary padded to 8, 16 and 32 bits, which is how a value is actually laid out in memory — with the 8-bit form split into nibbles.
Why the Bit Widths Matter
Padding to a fixed width is not decoration. A byte is eight bits, a 16-bit word is two bytes, and a 32-bit
integer is four. Seeing 42 written as
00101010 makes it obvious why a signed 8-bit value can only reach 127 before it
overflows, and why the high bit is the sign.
The hexadecimal form falls out of the same grouping: one hex digit is exactly four bits, so
2A is 0010 1010.
Honest Limits
- The mode button decides the interpretation, not the input. Any string of
zeros and ones is valid decimal as well as valid binary, so the same input means different things depending
on which mode is selected —
101010is 101,010 in decimal mode and 42 in binary mode. - Negative numbers are rejected. The validation accepts only digits, so a minus sign produces an invalid-input message.
- Very large values lose precision. Beyond 2⁵³ the underlying number is no longer exactly representable, so the last digits of the binary, hex and octal forms can be wrong.
- No bitwise operations. It converts between bases; it does not AND, OR, XOR or shift.
Related Converters
- HEX to Decimal — the hex side on its own, with the 32-bit two's complement handling.
- Decimal to HEX — and the step-by-step division.
- HEX to Binary — the nibble-by-nibble version.
- Binary to HEX — and the other direction.
- HEX Arithmetic — add, subtract, multiply and divide in hex.
- HEX to Octal — the third base, with the working shown.
- Data Storage Converter — where these bit widths turn into bytes and gigabytes.
The conversion runs entirely in your browser and works offline.