Math

Binary, hex & decimal converter

Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36.

Example figures shown. Replace them with yours.

Decimal value

255

from base 10

Binary (2)
11111111
Octal (8)
377
Decimal (10)
255
Hexadecimal (16)
FF
Base 7
513
Bits needed
8

Saved scenarios

Save different inputs to compare them side by side.

No saved scenarios yet. Press “Save scenario” to keep the current inputs and result here.

How it’s calculated

Each digit is multiplied by the base raised to the power of its position, and the results are added: for example 1011 in binary = 8 + 2 + 1 = 11. To convert out of decimal, divide repeatedly by the new base and read the remainders backwards. Whole numbers up to 9,007,199,254,740,991 are supported.

How to use the binary, hex & decimal converter

  1. Enter your numbers: Number, From base, Also convert to base. Example figures are filled in to start.
  2. Read your result instantly: the decimal value appears in the results panel, with a full breakdown underneath.
  3. Save as PDF, copy the results, or save a scenario to compare different inputs side by side.

Worked example

With these inputs: Number 255; From base Decimal (10); Also convert to base 7, the calculator shows Decimal value: 255 (from base 10).

It also reports Binary (2): 11111111; Octal (8): 377; Decimal (10): 255; Hexadecimal (16): FF; Base 7: 513.

How it’s calculated

Each digit is multiplied by the base raised to the power of its position, and the results are added: for example 1011 in binary = 8 + 2 + 1 = 11. To convert out of decimal, divide repeatedly by the new base and read the remainders backwards. Whole numbers up to 9,007,199,254,740,991 are supported.

Last reviewed November 19, 2026. Results are estimates for planning, not financial, tax or medical advice.

Frequently asked questions

How do you convert binary to decimal?

Multiply each digit by 2 raised to its position, counting from 0 on the right, and add the results. For example, 1011 = 8 + 0 + 2 + 1 = 11.

How do you convert decimal to hexadecimal?

Divide by 16 repeatedly and write the remainders in reverse order, using A to F for 10 to 15. For example, 255 is FF.

What bases are supported?

Any base from 2 to 36, using digits 0 to 9 and letters A to Z. Whole numbers up to 9,007,199,254,740,991 are supported.

Add this calculator to your website

Free for any website or blog. Paste this code into your page (in WordPress, use a Custom HTML block). It works on phones and desktops, resizes itself to fit, needs no sign-up, and shows no ads.

Preview the widget · All free widgets

Related calculators: Statistics calculatorQuadratic equation solverFraction calculatorScientific calculator

All calculators

Free, instant, and private. Every calculation runs in your browser, so nothing you type leaves your device.

Finance

Mortgage calculatorMonthly house payment with tax, insurance, PMI and HOA, extra payments, affordability and a full schedule.Loan calculatorMonthly payment, true cost with fees, and how extra payments shorten your loan.Compound interest calculatorGrow a balance with monthly deposits, rising contributions, any compounding, and inflation-adjusted results.Savings goal calculatorWhat to save each month, each week, or all at once to hit a target by a date.Retirement calculatorProject your nest egg, the income it can pay, and how long it lasts at your planned spending.Refinance calculatorCompare your current mortgage with a new one, including points and cash-out, and find your break-even.Rental property calculatorCash flow, cap rate, cash-on-cash, DSCR, the 1% rule and total return over your holding period.Credit card payoff calculatorYour payoff date, the payment needed for a target date, and what minimum payments really cost.Inflation calculatorWhat things will cost later, what your money will be worth, and the raise you need to keep up.Salary to hourly calculatorConvert pay between every period, add overtime, and estimate take-home pay.Auto loan calculatorCar payment with sales tax, fees, down payment and trade-in, plus the total cost of the car.Home affordability calculatorHow much house you can afford from your income, debts, down payment and rate, using lender debt-to-income limits.Investment return calculatorTotal return (ROI) and annualized growth rate (CAGR) of an investment, including income received.Debt payoff calculatorPlan payoff for up to three debts with the avalanche or snowball method, and see which one saves more.

Business

Everyday

Health & fitness

Math