Number/Base Converter
Convert between number bases
Convert numbers between binary, octal, decimal and hexadecimal - instantly as you type
About the number/base converter
The number base converter translates a value between the four bases used in computing and mathematics: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Type any number, choose the base you are entering it in, and the equivalent value in every other base appears instantly below.
The converter supports arbitrarily large integers using BigInt, so it handles values well beyond the 32-bit and 64-bit limits common in programming. A leading 0b, 0o, or 0x prefix is optional and will be stripped automatically.
Supported bases
- Binary — base 2 (digits 0–1)
- Octal — base 8 (digits 0–7)
- Decimal — base 10 (digits 0–9)
- Hexadecimal — base 16 (digits 0–9, A–F)
How to use the number/base converter
Enter a number
Type the value you want to convert.
Choose its base
Select whether your input is binary, octal, decimal, or hexadecimal.
Read every base at once
The equivalent value in all four bases is shown below, ready to copy.
Frequently asked questions
How large a number can I convert?
Do I need to add a 0x or 0b prefix?
Are hexadecimal letters case-sensitive?
Does it work offline?
Is the number base converter free?
Explore more utilities
More like this
- Unit ConverterConvert length, weight & temperature
- Time ConverterConvert between time units
- Data Storage ConverterConvert bits, bytes, KB, MB, GB & TB
- Data Transfer ConverterConvert bit/s, Mbit/s, MB/s & GB/s
- Pressure ConverterConvert pascal, bar, psi & atm
- Energy ConverterConvert joules, calories, kWh & BTU
Other utilities
- Word UnscramblerFind every word from jumbled letters
- Anagram SolverFind anagrams of any word
- Word CounterCount words, characters & sentences
- Word FinderFind words matching a pattern
- Random Word GeneratorGenerate random dictionary words
- Character CounterCount characters with & without spaces
- Case ConverterConvert text to upper, lower, title & more
- Text CleanerRemove extra spaces, blank lines & junk
- Remove Duplicate LinesDelete repeated lines from any text
- Sort LinesSort lines alphabetically or numerically
- Text ReverserReverse text, words or characters
- Find & ReplaceFind and replace text with options
- Percentage CalculatorCalculate percentages instantly
- Percentage Change CalculatorMeasure increase or decrease between values
- Discount CalculatorFind sale price & savings
- Tax CalculatorAdd or remove sales tax & VAT
- Tip CalculatorCalculate tips & gratuity
- Split Bill CalculatorSplit a bill & tip across people
- Ratio CalculatorSimplify & solve ratios
- Fraction CalculatorAdd, subtract, multiply & divide fractions
- Average CalculatorMean, median, mode & range
- Standard Deviation CalculatorVariance & standard deviation of a data set
- Age CalculatorCalculate age from any birthdate
- Date Difference CalculatorAdd to dates or find date differences
- Time Duration CalculatorCalculate time between two times
- Interest CalculatorSimple & compound interest in one tool
- Loan/EMI CalculatorMonthly EMI, interest & total payable
- Password GeneratorCreate strong, secure random passwords
- QR Code GeneratorTurn any link or text into a QR code
- Random Number GeneratorGenerate random numbers in any range
- Lorem Ipsum GeneratorGenerate placeholder Lorem Ipsum text