DEV
Number System Converter
Type a number into any field and the other three update immediately — binary, octal, decimal and hexadecimal.
How it's calculated
Each field is parsed in its own base and converted internally using arbitrary-precision integer math, so very large numbers stay exact instead of losing precision. A leading - for negative numbers and common prefixes (0x, 0b, 0o) are accepted on input and stripped automatically.
Reference
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 255 | 11111111 | 377 | FF |
Frequently asked
Why does typing an invalid digit show an error instead of just ignoring it?
Silently dropping an invalid character could leave you looking at a number you didn't actually type. An explicit error — naming the exact invalid digit — is safer for something you might copy into code.
Does this handle negative numbers?
Yes — a leading minus sign is preserved across all four bases.