Number Base Converter
Convert whole numbers between bases 2, 8, 10 and 16. Integer arithmetic keeps large values exact instead of routing them through floating-point numbers.
- Convert between four common number bases
- Preserve large integers with BigInt
- Accept signed whole-number values
Select the source base
Enter digits valid for the selected base. Binary accepts 0 and 1, while hexadecimal also uses A through F.
Keep integer precision
BigInt represents whole numbers without the usual JavaScript safe-integer rounding. This is useful for long identifiers and bit patterns.
Read negative values correctly
A leading minus sign represents a negative number. The output is mathematical notation, not a fixed-width two’s-complement memory dump.
Use a different tool for fractions
Radix fractions, floating-point bit layouts and exponent notation are outside this converter. Enter a whole number rather than a decimal fraction.
Number Base Converter FAQs
Conversion represents the numeric value, so leading zeros are not preserved as formatting.
No. Add padding separately when a protocol or register requires a fixed number of digits.
Decimal 255 is FF in hexadecimal and 11111111 in binary. Select base 10 for input, then base 16 or 2 for output. The converter returns the numeric value without a fixed bit width, so add leading zeros separately when a protocol requires padding.