A little context. A clearer answer.
When this calculator is useful
Convert a signed integer between bases 2–36. Choose the input base, output base and digit grouping; inspect the exact decimal value and place values. For a related calculation, try Bitwise calculator: AND, OR, XOR and shifts.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Signed integer | Up to 256 digits; no fractions, prefixes or separators in the input. A minus sign is a sign, not two’s complement. | 255 |
| Input base | Radix used to read the input digits. For example, base 16 accepts A through F. Input base: 2…36 | 10 |
| Output base | Radix in which to write the converted value. Output base: 2…36 | 16 |
| Digit grouping | Digit grouping: None / 4 / 8 | 4 |
How the calculation works
- Convert a signed integer between bases 2–36. Choose the input base, output base and digit grouping; inspect the exact decimal value and place values.
- N = s × Σ dᵢ bⁱ; 2 ≤ b ≤ 36
- Up to 256 digits; no fractions, prefixes or separators in the input. A minus sign is a sign, not two’s complement.
N = s × Σ dᵢ bⁱ; 2 ≤ b ≤ 36A worked example
255₁₀ = FF₁₆ = 11111111₂; 1000₁₀ = 3E8₁₆; 18446744073709551617₁₀ = 10000000000000001₁₆.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Up to 256 digits; no fractions, prefixes or separators in the input. A minus sign is a sign, not two’s complement.
Frequently asked questions
Input base?
Convert a signed integer between bases 2–36. Choose the input base, output base and digit grouping; inspect the exact decimal value and place values.
Digit grouping?
N = s × Σ dᵢ bⁱ; 2 ≤ b ≤ 36
Signed integer?
Up to 256 digits; no fractions, prefixes or separators in the input. A minus sign is a sign, not two’s complement.