Binary ↔ Octal ↔ Decimal ↔ Hex, live.
Convert a number between the four common bases used in programming: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Pick the base of your input and see all representations at once. Runs entirely in your browser.
Yes — a leading 0x is stripped automatically when the input base is Hex.
Standard JavaScript number precision (up to 2^53). For larger values use a big-integer tool.