Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Very large numbers stay exact.
Number Base Converter converts whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. It uses arbitrary-precision integers, so numbers far beyond 64 bits convert exactly, and negative numbers work too.
What is a number base?
Base or radix
How many digits a number system uses. Decimal has ten (0 to 9), binary two (0 and 1), octal eight and hexadecimal sixteen (0 to 9 then A to F). Bases above ten borrow letters, up to base 36, which uses all of 0 to 9 and A to Z.
Why use Number Base Converter?
- Exact for big numbers. Most calculators lose precision past about 16 digits. Here a 200-digit number converts exactly.
- Prefixes understood. 0x, 0o and 0b prefixes are detected, and spaces or underscores used as separators are ignored.
- Every base at once. See binary, octal, decimal, hex and a base of your choice together, plus how many bits the number needs.
How to use Number Base Converter, step by step

- Type the number into Number Base Converter. For example 255, 0xFF or 0b11111111.
- Say which base it is in. Detect works for prefixed numbers and decimals; choose another base for anything else.
- Copy any result. Each row has its own Copy button.
Frequently asked questions
Does it convert fractions?
No. It converts whole numbers only. Fractions often have no exact form in another base.
How are negative numbers shown?
With a minus sign in every base. It does not show two's complement, because that depends on a fixed bit width.
Is hex output upper or lower case?
The hexadecimal row is uppercase. Input is accepted in either case.
Looking for the long version? The guides cover each of these jobs in depth.