Number Base Converter
Type a number in any base and see its binary, octal, decimal and hexadecimal forms at once. Very large numbers convert without losing precision, and the two's complement view for 8 to 64 bits is shown too.
- Fully offline
Loading…
Features
- Auto-detects 0x, 0b and 0o prefixes
- Any base from 2 to 36
- Arbitrary-size integers (BigInt), no rounding
- Two's complement view for 8, 16, 32 and 64 bits
- _ and space separators, Persian digits
- Error messages point to the invalid digit
Examples
Hex to others
- Input
- 0xFF
- Output
- 255 = 0b11111111 = 0o377
Negative number in 8 bits
- Input
- -1
- Output
- ff (unsigned 255)
FAQ
What is two's complement?
The usual way computers store negative integers. For example, -1 in 8 bits is stored as 11111111 (0xFF).
Does it handle very large numbers?
Yes. It uses BigInt and works up to 4096 digits without rounding.
Are fractions supported?
No, only integers (positive or negative).