Number Base Converter
Convert whole numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36. Uses exact big-integer math, so long values keep every digit. Calculates in your browser.
How it works
The value is read as a whole number in its source base, then re-written in each target base.
Digits above 9 use letters: a=10 through z=35, so hex 255 is ff.
Conversions use exact big-integer math, so even very long binary strings keep every digit. Letters are case-insensitive on input.
What this does
A number base converter changes a whole number between binary, octal, decimal, hexadecimal, and any base from 2 to 36. It uses exact big-integer math, so even very long values keep every digit.
How to use it
- Enter your value and its current base.
- Read the binary, octal, decimal, and hex results.
- Set a custom base from 2 to 36 if needed.
How it works
Each digit position is a power of the base. Digits above 9 use letters: a is 10, b is 11, up to z which is 35, and input letters are case-insensitive. Conversions use big-integer arithmetic, so nothing is rounded.
Example
Decimal 255 is 11111111 in binary and ff in hexadecimal; decimal 8 is 10 in octal.
Sources & methodology
Last updated .
Frequently asked questions
Which bases are supported?
Any base from 2 to 36. Binary, octal, decimal, and hexadecimal are shown by default, and you can convert to a custom base as well.
How are digits above 9 written?
With letters: a is 10, b is 11, and so on up to z which is 35. So decimal 255 is ff in hexadecimal. Input letters are case-insensitive.
Will big numbers lose precision?
No. Conversions use exact big-integer arithmetic, so even very long binary strings convert without rounding.
Is my data stored?
No. Everything is calculated locally in your browser, nothing is uploaded or saved.
Related tools
Roman Numeral Converter
Convert a number to Roman numerals or read a Roman numeral back as a number, with full validation of the standard 1–3999 range. Calculates in your browser.
Number to Words Converter
Spell out any number in English words (whole numbers, decimals, and negatives) ideal for cheques, contracts, and invoices. Calculates in your browser.
Percentage Calculator
Work out percentages four ways: a percent of a value, what percent one number is of another, the percent change between two numbers, and a percentage increase or decrease. Calculates in your browser.
Ratio Calculator
Simplify a ratio to its lowest whole-number terms, or solve a proportion to find a missing value when two ratios are equal. Handles decimal terms too. Calculates in your browser.