Base Convert

Bin / oct / dec / hex conversion.

A free number-base converter between binary, octal, decimal and hexadecimal. It auto-detects and ignores 0x / 0o / 0b prefixes and validates that the digits are legal for the chosen base. It runs entirely in your browser.

How to use

  1. Pick the base of your input number (e.g. hexadecimal).
  2. Enter the number (an optional 0x / 0o / 0b prefix is accepted).
  3. Choose the target base, then read and copy the result.

FAQ

Which bases and prefixes are supported?
Binary, octal, decimal and hexadecimal in any direction; the input may include a 0x (hex), 0o (octal) or 0b (binary) prefix, which is stripped before parsing.
Can it convert very large numbers?
Conversion uses JavaScript numbers, whose safe integer limit is about 2^53. Extremely large integers beyond that may lose precision — use a dedicated big-integer tool for those.
Is anything uploaded?
No, the conversion is entirely local.

Related tools