Instructions
Number base converter
How to use
- Enter a number and choose its base and the target base.
Supported input
- Whole numbers up to 200 digits.
- Prefixes (0x for hex, 0b for binary, 0o for octal) and underscores are read.
- When the chosen base cannot read a number with a prefix, the prefix picks the base and the result says so.
- Negatives keep a minus sign.
Input example
255 (decimal)
Result example
FF (hex)
Troubleshooting
- Values that are not numbers or are out of range are not calculated; the message says what to fix.
Limitations
- Fractions are not supported.
- Two's complement is used only when a width of 8, 16, 32 or 64 bits is chosen, and decimal is then the signed value (FFFFFFFF → -1).
How it works
- Converts whole numbers between binary, octal, decimal and hexadecimal.