Number base converter
Convert an integer into four number bases.
Formula
Value = sum of each digit × base^position; the sign is preserved.
How to use
- Enter up to 256 digits without a prefix.
- Choose the input base.
- Copy the four exact integer forms.
Examples
- 255 decimal = FF hexadecimal = 377 octal.
Frequently asked questions
How do I convert decimal to binary?
Choose Decimal and enter an integer; 255 becomes 11111111.
Are large integers rounded?
No. Integer arithmetic preserves all entered digits. Fractions and exponents are not accepted.
How are negative numbers shown?
With a minus sign, not fixed-width two’s complement. Do not enter 0x, 0b or 0o prefixes.
Sources
Updated: