Skip to main content
MathKit

Number Base Converter

Type a number in any base (2, 8, 10, 16) and convert it to another base.

Calculator

Use the Number Base Converter

Result

—

Formula

parse in base-from → render in base-to

Step-by-step

  1. 1

    Enter the number

    Use digits valid for the source base.

  2. 2

    Pick the bases

    Choose source and target bases.

Worked example

Example input: value: 255, from: 10, to: 16

Result: FF

Related tools

Frequently asked questions

Which bases are supported?

Binary, octal, decimal and hexadecimal — bases 2, 8, 10 and 16, the four computing-culture standards. The two dropdowns above select the input and output bases for any rewrite.

What does 255 become in hexadecimal?

FF — the largest two-digit byte value. F stands for fifteen, so FF reads fifteen times sixteen plus fifteen, which lands at 255. The example above shows the same pair.

Why do letters appear in base 16?

Hexadecimal needs 16 digits but the alphabet of numerals stops at 9, so A through F stand in for ten through fifteen. That keeps every digit a single character as bases require.

Useful links