get freecalculator.Find a calculator/

CONVERSIONS / FREE & SIMPLE

Number base converter.

Convert a signed integer between binary, octal, decimal and hexadecimal. Digits are validated against the source base before conversion. Arbitrary-precision integer arithmetic avoids rounding large whole numbers, with a length limit to keep the page responsive.

Get Free Calculator editorial teamPublished November 19, 2026Formula-based estimate

LET’S WORK IT OUT

YOUR RESULTCALCULATED IN YOUR BROWSER

Your answer starts here.

Check the example values, or enter your own and choose Calculate.

BEHIND THE ANSWER

How the calculation works

integer value = sum of each digit × base^position, counting positions from zero on the right

Use digits only in the input; omit prefixes such as 0x and 0b in this converter. Negative results use a leading minus sign rather than a fixed-width two’s-complement encoding.

A worked example

FOLLOW THE NUMBERS

255 in decimal equals FF in hexadecimal and 11111111 in binary. FF means 15 × 16 + 15 = 255.

Using the calculator

  1. Enter integer, source base, target base. Use the units shown beside each label.
  2. Choose Calculate to see the result and the substituted steps. Correct any highlighted input error before relying on an answer.
  3. Read the assumptions below. You can change one input at a time to see how sensitive the result is to that assumption.

Conversion factors and display precision

RelationshipStandard valueScope
International inch0.0254 metre exactlyLength
International pound0.45359237 kilogram exactlyAvoirdupois mass
Celsius to kelvinK = °C + 273.15Absolute temperature reading
One byte8 bitsA count, not a hexadecimal digit

Conversion changes the unit or representation of a quantity, not the quality of the original measurement. If a scale only resolves to the nearest gram, printing ten decimal places after converting to pounds does not create additional accuracy. Round the final answer to suit the precision of the source measurement.

Check that the units describe the same kind of quantity. Mass cannot be converted to volume without density, and a length factor cannot be reused unchanged for area. When a familiar unit has multiple definitions, such as a fluid ounce or a historical foot, confirm the standard before using a result in technical work.

Why your result may differ

A digit must be smaller than the base. Binary accepts only 0 and 1, while hexadecimal also accepts A through F.

The result reflects the values you enter, rather than a measurement of your circumstances. Check input precision and units before comparing it with a different calculator. A source that uses another definition, reference period or rounding convention may legitimately report a different number. The steps shown above help you identify where the two methods diverge.

Questions, answered.

Does this support fractional numbers?

No. This tool converts signed integers only.

Are large integers rounded?

No. BigInt arithmetic preserves integers exactly within the input limit.

Is hexadecimal case sensitive?

No. A through F and a through f have the same values. Output uses uppercase letters.

Are my inputs uploaded or saved?

No. The number base converter runs in your browser. Field values are not sent to a calculation API or saved by the site. Avoid placing sensitive data in search terms or messages.

How should I round the result?

Keep full precision while calculating and round only the final value to a level appropriate for your task. Display rounding does not turn an estimate into an exact measurement. Use the formula and assumptions above when checking an answer.

Sources & editorial notes

The references below explain the underlying definitions or subject background. Linking to a source does not imply endorsement or independent validation of this implementation.

Prepared by the Get Free Calculator editorial team. Published November 19, 2026. If an example, formula or assumption needs correction, tell us which input you used and what you expected. Please avoid sending private financial or health information.

YOUR PRIVACY

Simple by design.

Calculations stay in your browser. We use Google Analytics to understand site usage. Google Analytics may set analytics cookies and process device and page-view information. Advertising features are disabled in our Analytics tag configuration. Google AdSense also loads and may use cookies and process device and browsing information to serve and measure ads.

Contact submissions are sent to Netlify Forms when you choose to send them. Hosting providers may process security and access logs. You can block analytics with browser controls or the Google Analytics opt-out add-on. This dialog does not change cookie settings.

Read our privacy policy