RGB colors
Web colors use hexadecimal byte values. In #FF6600, FF is red, 66 is green, and 00 is blue.
0b prefix allowed.0o prefix allowed.0x prefix allowed.Paste one number per line. The converter will detect prefixes like 0b, 0o, and 0x; unprefixed values are treated as decimal.
Batch results will appear here.
Use this quick reference table for common computer values.
| Decimal | Binary | Octal | Hexadecimal | Common meaning |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Zero |
| 1 | 1 | 1 | 1 | One bit on |
| 8 | 1000 | 10 | 8 | One octal place |
| 15 | 1111 | 17 | F | One hex digit max |
| 16 | 1 0000 | 20 | 10 | Next hex place |
| 255 | 1111 1111 | 377 | FF | Max 8-bit unsigned |
| 256 | 1 0000 0000 | 400 | 100 | Start of 9-bit range |
| 1024 | 100 0000 0000 | 2000 | 400 | 210 |
| 65535 | 1111 1111 1111 1111 | 177777 | FFFF | Max 16-bit unsigned |
Binary 101010 equals
1×32 + 0×16 + 1×8 + 0×4 + 1×2 + 0×1 = 42.
In hexadecimal, group the bits as 0010 1010, which becomes 2A.
Hex FF equals 15×16 + 15 = 255.
In binary, each hex digit maps to four bits: F = 1111, so
FF = 1111 1111. In octal, 255 is 377.
Each octal digit maps to three binary bits:
7 = 111, 5 = 101, and 5 = 101.
So octal 755 becomes binary 111 101 101.
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.
Unsigned binary represents only zero and positive values. Signed binary usually uses
two's complement, where the leftmost bit indicates whether the value is negative.
For example, in 8-bit two's complement, 11111111 represents -1,
while unsigned 11111111 represents 255.
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.
A number base converter translates the same value between numeral systems such as binary, decimal, octal, and hexadecimal.
Yes. You can enter a minus sign before the value, including prefixed values like -0xFF.
Unsigned binary represents only zero and positive numbers. Signed binary uses a convention such as two's complement to represent negative numbers within a fixed bit width.
One hexadecimal digit represents exactly four binary bits. For example, F equals 1111.
Each octal digit maps to three binary bits, which matches the read, write, and execute permission flags used in Unix-style permissions.
Web colors use hexadecimal byte values. In #FF6600, FF is red, 66 is green, and 00 is blue.
Permission values like 755 are octal. Each digit maps to three binary flags for read, write, and execute access.
Debuggers, disassemblers, and logs often show addresses in hex, such as 0x7FFF0000, because hex is compact and aligns with binary.
Binary values like 0b10110101 make it easier to see which individual flags are on or off in a register or option mask.
Network tools often expose bytes in binary or hex. For example, 127.0.0.1 corresponds to the 32-bit hex value 0x7F000001.