Hex spells words
Developers sneak easter eggs into constants like 0xDEADBEEF or 0xC0FFEE - are perfectly valid hex values.
0b prefix allowed.0o prefix allowed.0x prefix allowed.This tool converts integers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter a value in any box—including optional prefixes—and the others update automatically. Negative numbers are supported. For very large values, we use JavaScript BigInt.
0b/0o/0x in the outputs.This base converter helps you translate numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Whether you’re a student reviewing number systems, a developer reading bitmasks, or a hardware enthusiast examining registers, this binary to hex converter and octal to decimal tool gives instant, accurate results—right in your browser.
Computers store information in binary, where each digit (bit) is 0 or 1. Engineers often group bits into nibbles (4 bits) or bytes (8 bits) to make them easier to read. That’s why hex (0–9 and A–F) is so popular: each hex digit maps exactly to 4 binary digits. Octal (0–7) is also compact—each octal digit maps to 3 binary digits—so you’ll see it in Unix permissions and some legacy documentation. Decimal is the human default for everyday math.
1111 0001 → F1.111 001 → 71.0x2A → 0010 1010.
Type a value into any input—binary, octal, decimal, or hex—and the others update
instantly. You can include common prefixes (0b, 0o, 0x),
toggle uppercase hex, and group binary in 4-bit blocks for readability.
Negative integers are supported, and the tool uses BigInt to handle very large values.
-0xFF).
You’ll encounter base conversions when reading microcontroller datasheets, configuring
GPIO bitmasks, parsing color codes (e.g., #FF6600 is hex), analyzing file
headers, or interpreting network packets. System administrators also meet octal in
POSIX file permissions (e.g., 0755).
Your inputs never leave your device—this converter runs entirely client-side for privacy. It supports keyboard navigation, copy buttons for quick sharing, and optional formatting to make long binary strings easier to read.
Try quick checks like binary to decimal, decimal to hex, or octal to binary using the examples above, and use the options bar to match your preferred display style.
Developers sneak easter eggs into constants like 0xDEADBEEF or 0xC0FFEE - are perfectly valid hex values.
Four bits are called a nibble. That’s why hex (1 digit = 4 bits) lines up so nicely with binary spacing in this converter.
The web color #FF6600 is really three hex pairs: FF red, 66 green, 00 blue—each pair is a byte (0–255).
The classic 755 permission is octal for rwx r-x r-x. Each octal digit is really three binary bits of access flags.
127.0.0.1 is one 32-bit integer: 0x7F000001. Shift the dots around and you can see the binary layout (7F | 00 | 00 | 01).