Calculate & Convert

Number Base Converter

Convert between binary, octal, decimal and hexadecimal.

Enter values

The formula

parse in source base → re-express in each target base

A number's value comes from digit weights that are powers of the base. Computers use binary because transistors are on or off; hexadecimal is shorthand for it, since one hex digit packs exactly four bits, making addresses and colour codes far easier to read.

All calculations run locally in your browser and update instantly as you type.

Example calculations

Common questions this calculator answers — select one to load its values.

Related calculators

Frequently asked questions

What is hexadecimal used for?+
Hex (base 16) compactly represents binary data — each hex digit maps to exactly four bits, so it is common for colours, memory addresses and hashes.
All calculations run locally in your browser. Nothing you type is sent to a server.