Home · Everyday · Bases, Binary & Logic · Base Calculator

Base Calculator

Convert a number between binary, octal, decimal and hexadecimal — all four shown at once.

Your figures

Example result — edit the figures to make it yours

FF

In base 16

Digits are read positionally: each place is worth the base times the one to its right. The headline figure is the value in decimal.

Binary (base 2)11111111
Octal (base 8)377
Decimal (base 10)255
Hexadecimal (base 16)FF

What this calculator does

Convert a number between binary, octal, decimal and hexadecimal — all four shown at once. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Positional notation: each digit is worth the base times the digit to its right

Digits are validated against the chosen base — a binary field rejects the digit 2.

Conversion goes through the exact integer value, so results are exact for the sizes accepted.

Negative values keep their sign in every base.

Worked example

With the example inputs this page opens with, the result is FF — in base 16. Digits are read positionally: each place is worth the base times the one to its right. The headline figure is the value in decimal.

Quick reference

Quick reference — the worked example in full
FigureValue
In base 16FF
Binary (base 2)11111111
Octal (base 8)377
Decimal (base 10)255
Hexadecimal (base 16)FF

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Base Calculator work?

Convert a number between binary, octal, decimal and hexadecimal — all four shown at once. Value · From base · To base → Converted value. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Base Calculator need?

Value · From base · To base → Converted value. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Base Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.