Binary and decimal conversion
Binary uses only 0 and 1, with each position weighted by a power of 2.
(1011)₂ = 11₁₀
Convert binary, octal, decimal, hexadecimal, and custom bases from 2 through 36 exactly.
Version 1.0 · Last Updated: August 11, 2026 · Maintained by ToolLarder
Read an integer in its source base and convert it to every standard representation plus a selected target base from 2 to 36. BigInt prevents rounding.
Binary uses only 0 and 1, with each position weighted by a power of 2.
(1011)₂ = 11₁₀
Hexadecimal uses 0–9 and A–F and is common in software.
(FF)₁₆ = 255₁₀
Octal uses digits 0 through 7.
(755)₈ = 493₁₀
Digits above 9 use A=10 through Z=35.
value = Σ digit×baseᵏ
BigInt preserves integers beyond the JavaScript Number limit without rounding.
integer → exact BigInt