Number Base Converter

Convert numbers between binary, octal, decimal, hex and other bases.

Also called: binary to decimal, hex to decimal.

FreeNo sign-upRuns in your browser
CONVERTERS

Number Base Converter

Convert numbers between binary, octal, decimal, hex and other bases.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Number Base Converter (12 seconds)

Recorded on a phone, steps written on screen, no sound. Open the video page.

About the Number Base Converter

Convert a number between binary (base 2), octal (8), decimal (10), hexadecimal (16), base 32 and base 36. For example 255 decimal is FF in hex and 11111111 in binary.

Large values are handled exactly with BigInt, so long hex strings and 64-bit numbers convert without rounding. Letters for digits above 9 can be typed in upper or lower case.

Students use it for computer science homework; developers use it for colour codes, memory addresses and file permissions (octal).

Binary, decimal and hexadecimal examples

The same whole number can be written in different bases. For example, decimal 255 is hexadecimal FF, octal 377 and binary 11111111. Select the input base and output base, then enter the digits valid for the source base.

Binary uses 0–1, octal uses 0–7, decimal uses 0–9 and hexadecimal uses 0–9 plus A–F. The tool also supports bases 32 and 36. It converts whole numbers only; fractions and decimal points are not supported.

Use this converter for programming, bit masks, computer science exercises and checking values across number systems. A leading minus sign is used for negative values; the selected base determines how the digits are interpreted.

How to use the Number Base Converter

  1. Enter your textType number. An example is already filled in, so you can press Run tool first to see how it works.
  2. Pick the optionsfrom base and to base (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the Number Base Converter gives for it (produced by the tool itself, not typed by hand).

Number
255
From base
Decimal (10)
To base
Hexadecimal (16)

Result:

Result (base 16): FF

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

Good to know

What you need
You type or choose: Number
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Read the guide

Questions

How do I convert binary to decimal?

Choose From: Binary and To: Decimal, then type the binary number.

What is FF in decimal?

255.

Does it convert fractions?

No, whole numbers only.

More tools in Converters & Files

See all Converters & Files tools