Number System Converter
Convert integers, fractions, and negative two's complement numbers across arbitrary bases (binary, octal, decimal, hex, base 2 to 36) with exact BigInt precision.
11011010 without calculating?How is this calculated? (See Step-by-Step Polynomial & Division Math)
Scientific Verification & Formula Derivations (Knuth TAOCP & IEEE Std 754)
Polynomial Radix Expansion: Any positional integer representation $N$ in base $b$ maps to scalar magnitude via weighted polynomial summation:N_10 = ∑ (d_i × b^i) + ∑ (c_j × b^-j), where digits $d_i \in [0, b-1]$.
Exact 64-bit / 256-bit BigInt Precision: Standard web calculators rely on IEEE 754 double floating-point numbers (`parseInt`), which suffer from low-order truncation when integer magnitudes exceed `2^53 - 1` (`9,007,199,254,740,991`). Our engine utilizes exact arbitrary-precision `BigInt` modular arithmetic (`temp % BigInt(targetBase)`) to guarantee zero precision drift across 64-bit and 256-bit word widths.
Primary References:
- Knuth, Donald E. The Art of Computer Programming, Volume 2: Seminumerical Algorithms (3rd ed., Addison-Wesley, §4.4 Radix Conversion).
- IEEE Std 754-2019, IEEE Standard for Floating-Point Arithmetic, §5.12 Radix Conversion.
- ECMAScript 2026 Language Specification, §7.1.4 ToNumber / parseInt Radix Boundaries.
About the Number System Converter
A number system converter translates a numeric value from one radix, or base, into another. Every positional numeral system assigns each digit a weight equal to the base raised to the power of its position, which means the same underlying quantity can be written in infinitely many ways depending on the base chosen. Decimal (base 10) is the human default because we have ten fingers, but digital computers use binary (base 2) because a transistor has two stable states. Hexadecimal (base 16) and octal (base 8) exist as compact shorthand for binary: one hex digit maps exactly onto four bits and one octal digit onto three, so programmers can read machine values without counting long strings of ones and zeros. Base conversion is fundamental to memory addressing, colour codes in web design, file permissions in Unix, network subnetting, character encoding, and low-level debugging, where the ability to move fluently between representations is a core professional skill.
Mathematical Formula & Logic
Step-by-Step Example
Convert the decimal number 205.625 into binary: Integer part (205) by repeated division: 1. 205 ÷ 2 = 102 remainder 1 2. 102 ÷ 2 = 51 remainder 0 3. 51 ÷ 2 = 25 remainder 1 4. 25 ÷ 2 = 12 remainder 1 5. 12 ÷ 2 = 6 remainder 0 6. 6 ÷ 2 = 3 remainder 0 7. 3 ÷ 2 = 1 remainder 1 8. 1 ÷ 2 = 0 remainder 1 Reading the remainders bottom to top: 11001101 Fractional part (0.625) by repeated multiplication: 9. 0.625 × 2 = 1.25 → digit 1, carry 0.25 10. 0.25 × 2 = 0.5 → digit 0, carry 0.5 11. 0.5 × 2 = 1.0 → digit 1, remainder 0, terminate Reading top to bottom: 101 Result: 205.625 decimal = 11001101.101 binary Check by expansion: 128+64+8+4+1 = 205, and 0.5+0.125 = 0.625. Correct. Regrouped into nibbles, 1100 1101 = CD hexadecimal, confirming the shortcut.
Reference Data & Values
| decimal | binary | octal | hexadecimal |
|---|---|---|---|
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 64 | 1000000 | 100 | 40 |
| 100 | 1100100 | 144 | 64 |
| 205 | 11001101 | 315 | CD |
| 255 | 11111111 | 377 | FF |
| 1024 | 10000000000 | 2000 | 400 |
| 65535 | 1111111111111111 | 177777 | FFFF |