Number base converter

Type a whole number, choose the base it is written in and the base you want, and read the result. Binary, octal, decimal and hexadecimal are always shown together.

  • Free
  • No sign-up
  • Runs in your browser

Binary (2)

1010

The same number in common bases
BaseValue
Binary (2)1010
Octal (8)12
Decimal (10)10
Hexadecimal (16)A

Whole numbers of any size are converted exactly (up to 5,000 digits). Prefixes 0x, 0b and 0o, spaces, underscores and a leading minus sign are accepted. Fractions are not supported.

Runs in your browser — your text is never sent to our servers.

How to use Number Base Converter

  1. Type your number in the Number box. Prefixes 0x, 0b and 0o, spaces and underscores are accepted.
  2. Choose the base it is written in under "From base" and the target under "To base" (2 to 36).
  3. Read the converted value, and the same number in binary, octal, decimal and hex in the table.
  4. Tick "Group digits" for easier reading, then copy the result.

Features

  • Any base from 2 to 36
  • Exact for numbers of any size (up to 5,000 digits), using BigInt
  • Accepts 0x, 0b and 0o prefixes, spaces, underscores and a minus sign
  • Table with the number in binary, octal, decimal and hexadecimal
  • Optional digit grouping
  • Runs in your browser, so nothing is uploaded

Supported formats and limits

  • Maximum input: 10,000,000 characters

Examples

InputResult
255 (base 10) → base 16FF
1010 (base 2) → base 1010
18446744073709551615 (base 10) → base 16FFFFFFFFFFFFFFFF — Larger than 2^53, still exact.
zz (base 36) → base 101295

Limitations

  • Only whole numbers are supported; fractions such as 10.1 are not.
  • Numbers are limited to 5,000 digits.
  • Digits above 9 use letters A to Z, which are not case-sensitive on input; output uses capitals.

Learn more

A positional number system writes a number as digits whose values depend on their position. In base 10, each position is worth ten times the one to its right. The same idea works for any base: in base 2 each position is worth twice the previous one, in base 16 sixteen times.

Binary (base 2) is how computers store numbers. Hexadecimal (base 16) is a compact way to write binary: one hex digit stands for exactly four bits, so the byte 11111111 is FF. Octal (base 8) groups three bits per digit and is still seen in Unix file permissions.

Bases above 10 need more symbols than 0–9, so letters are used: A is 10, B is 11, and so on up to Z, which is 35 in base 36. To convert between bases, this tool first reads your number as an exact integer and then writes it out in the target base, so there is no rounding, even for numbers far beyond what ordinary floating-point arithmetic can hold.

Frequently asked questions

Which bases can I convert between?

Any whole-number base from 2 (binary) to 36, which uses the digits 0–9 and the letters A–Z.

Can it convert very large numbers?

Yes. It uses arbitrary-precision integers, so values beyond the usual 2^53 limit of JavaScript numbers stay exact.

Does it handle negative numbers?

Yes. A leading minus sign is kept, so -ff in base 16 is -255 in decimal. Two’s complement is not applied.

Is my input uploaded?

No. The conversion runs in your browser.

Sources

Last reviewed: September 30, 2026