About this tool
Convert integers between base-2, base-8, base-10 and base-16. Optional 0x / 0b / 0o prefixes are accepted. Negative values are supported.
Formula
For a digit string dₙ…d₁d₀ in base b, value = Σ dᵢ × bⁱ. Re-encoding to base b' is repeated division by b' with the remainders read in reverse.
Worked example
Decimal 255 → binary 11111111 → octal 377 → hex FF
Notes
This tool uses BigInt internally, so values much larger than 64 bits convert without precision loss — useful for cryptographic constants, color values, and bitfields.