Skip to content
Devtoolry

Number Base Converter

Convert numbers online between binary, octal, decimal, hexadecimal and any base from 2 to 36, with BigInt precision for very large values.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the Number Base Converter

The Number Base Converter converts integers between binary, octal, decimal, hexadecimal and any base from 2 to 36 at once. It uses arbitrary-precision BigInt, so very large numbers stay exact.

Conversion happens in your browser, so your files and records stay private.

How to use the Number Base Converter

  1. Type or paste a whole number.
  2. Choose its input base, for example 16 for hexadecimal (2–36).
  3. Read it in binary, octal, decimal, hexadecimal and a custom output base, and copy the one you need.

Example

Convert 0xBEEF to every base

Input

0xBEEF (input base 16)

Result

Binary       1011 1110 1110 1111
Octal        137 357
Decimal      48 879
Hexadecimal  beef
Base 36      11pr

The 0x prefix is optional when the input base is 16. Digits are grouped for reading; the copy buttons copy them without spaces.

Common mistakes

  • The wrong input base. The digits 10 mean ten in decimal, two in binary and sixteen in hexadecimal. Check the input base before reading the results.
  • Fractions. Only whole numbers are converted. 0.5 or 1e3 are reported as invalid digits; convert the integer part, or scale the number first.
  • Negative numbers in two’s complement. A minus sign is kept as a sign, so -1 is -1 in binary, not 11111111. Two’s complement depends on the bit width, which a plain number does not have.

Works well with the Number Base Converter

Frequently asked questions

How large can numbers be?

There is no practical limit: BigInt keeps every digit exact, unlike regular floating-point numbers.

Do I need prefixes like 0x or 0b?

No. Choose the input base instead. Prefixes are accepted too: 0x with base 16, 0b with base 2 and 0o with base 8.

Which prefixes and separators are accepted?

0x for hexadecimal, 0b for binary and 0o for octal, when the matching input base is selected. Underscores and spaces between digits, as in 1_000_000, are ignored.

Which digits are used above base 10?

The letters a–z stand for 10–35, so base 36 uses all digits and letters. Input is not case-sensitive.

Guides and tutorials