How to use the binary converter
- Type a number in any of the four boxes: Binary, Octal, Decimal or Hexadecimal.
- Read the other three, which update as you type. Each box has its own copy button.
- Choose how to group binary digits: No grouping, Groups of 4 or Bytes (8).
- For negative numbers, choose Minus sign to write them with a leading minus, or Two's complement and a Bit width to see how a computer stores them.
Features
- Four bases at once: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16).
- Exact big numbers with no rounding, however many digits you type.
- Bit grouping in nibbles of 4 or bytes of 8 for easier reading.
- Two's complement at 8, 16, 32 or 64 bits, with the signed range shown.
- Clear errors that name the character that doesn't belong, such as a 2 in a binary number.
- Binary length in bits, so you can see how much space a value needs.
Place values in each base
Every base works the same way; only the multiplier changes. In decimal, each place is worth ten times the one to its right. In binary it's two times, in octal eight times and in hexadecimal sixteen times, with the letters A to F standing for 10 to 15. So the same value, two hundred and fifty-five, is written 11111111 in binary, 377 in octal, 255 in decimal and FF in hex.
Two's complement at a glance
With 8 bits you can store 256 different patterns. Two's complement uses the top bit as a sign: patterns starting with 0 are 0 to 127, and patterns starting with 1 are −128 to −1. To negate a number by hand, flip every bit and add one. For example, 5 is 00000101; flipping gives 11111010, and adding one gives 11111011, which is −5. Type 11111011 in the Binary box with Two's complement and 8-bit selected to check it.
Where you'll need this
- Programming: reading bit masks, flags and register values, and checking what a negative integer looks like in memory.
- Networking: converting IP address octets and subnet masks, such as 255.255.255.0, where each 255 is 11111111.
- Students: checking homework on number bases and binary arithmetic.
- Web design: hex color codes like #6366F1 are three bytes, 99, 102 and 241 in decimal.
Why use Fileora's binary converter
It converts all four bases together, never rounds large numbers, and explains mistakes instead of just showing a blank result. It runs entirely in your browser and needs no sign-up.
For color codes, the color converter turns hex into RGB and HSL. To encode text rather than numbers, use the Base64 encoder and decoder.