How to use Number Base Converter
- Type your number in the Number box. Prefixes 0x, 0b and 0o, spaces and underscores are accepted.
- Choose the base it is written in under "From base" and the target under "To base" (2 to 36).
- Read the converted value, and the same number in binary, octal, decimal and hex in the table.
- 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
| Input | Result |
|---|---|
| 255 (base 10) → base 16 | FF |
| 1010 (base 2) → base 10 | 10 |
| 18446744073709551615 (base 10) → base 16 | FFFFFFFFFFFFFFFF — Larger than 2^53, still exact. |
| zz (base 36) → base 10 | 1295 |
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