Unit Converter
Numeral System Converter
Convert signed integers between bases 2 and 36 without losing large-number precision.
Numeral System Converter examples
Below, the Numeral System Converter works through hexadecimal, binary and a number beyond JavaScript's safe range.
| Input | Expected result |
|---|---|
| 255 decimal → hexadecimal | FF |
| 101010 binary → decimal | 42 |
| 9007199254740993 decimal → hexadecimal | 20000000000001 |
Supported units & limits
Supports signed whole integers and bases 2–36, with at most 4,096 input digits. Matching 0b, 0o and 0x prefixes are optional for binary, octal and hexadecimal. Fractions, Roman numerals, grouping separators and exponent notation are not supported. Leading zeroes are removed.
Common mistakes
Choose the source base explicitly: 10 in binary means two in decimal. A–Z are digits 10–35 where the base permits them. E is a digit in hexadecimal, not an exponent marker. Whitespace inside a number and invalid trailing characters cause an error instead of being discarded.
Privacy
Conversions run in your browser. This site does not upload or store the values you enter. We use Google Analytics, loaded through Google Tag Manager, to count page visits and see which tools are used; Google may set cookies for this. The hosting server may keep standard access logs when you load a page.
Conversion guide
Understand place value and large integers
In base b, each position represents a power of b. Hexadecimal FF equals 15 × 16 + 15 = 255. Binary 101010 equals 32 + 8 + 2 = 42. A leading minus sign describes a negative integer; it does not imply a fixed-width machine encoding. Choose the intended source base before pasting a value.
Numeral System Converter FAQ
Will integers above JavaScript’s safe-number range stay exact?
Yes. The integer is parsed digit by digit with BigInt arithmetic and returned as text, without first converting it to a floating-point Number.
Can I enter hexadecimal prefixes and negative numbers?
Yes. For hexadecimal, enter FF, 0xFF or −0xFF using a normal minus sign (-). Matching binary 0b and octal 0o prefixes also work. Signs apply to the entire integer; the output does not use a two’s-complement word length.
Can I convert fractional values or Roman numerals?
This page handles positional whole integers only. Decimal fractions, exponent notation and Roman numerals need different parsing rules and are not supported here.