Skip to main content

Number Base Converter

Free · No sign-up · Works in your browser

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

Binary, Decimal, Hex, Octal Converter

Convert numbers between any base: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Essential for programming, computer science, and digital electronics.

A number base is simply how many digits are available before you carry into the next column. Decimal has ten, binary has two, hexadecimal has sixteen. The underlying quantity never changes — 255, 0xFF and 11111111 are the same number wearing different clothes — but the representation you choose determines how readable it is for the job at hand.

Programmers reach for hexadecimal because it maps cleanly onto binary: each hex digit is exactly four bits, so a byte is always two hex characters. That property is why memory addresses, colour codes and byte dumps are written in hex rather than decimal.

The same values across bases

DecimalBinaryOctalHexadecimal
0000
81000108
10101012A
15111117F
16100002010
64100000010040
25511111111377FF
1024100000000002000400

Converting by hand

  • To decimal: multiply each digit by the base raised to its position, counting from zero on the right. Binary 1101 is 8 + 4 + 0 + 1 = 13.
  • From decimal: divide repeatedly by the base and read the remainders bottom-up. 13 ÷ 2 gives remainders 1, 0, 1, 1 → 1101.
  • Binary to hex: group the bits in fours from the right and convert each group. 1101 0110 → D6.
  • Binary to octal: the same trick with groups of three, since 8 is 2³.

Where each base shows up

  • Binary: hardware registers, bit flags, permission masks, network subnet masks.
  • Octal: Unix file permissions, where 755 encodes three sets of three bits.
  • Hexadecimal: memory addresses, colour codes such as #FF5733, MAC addresses, hash digests.
  • Base 36: short URL identifiers, which use all ten digits plus the twenty-six letters.

Prefixes that tell you the base

Most languages mark the base in the literal itself: 0b for binary, 0o or a leading zero for octal, and 0x for hexadecimal. An unmarked number is decimal. This matters more than it looks — in C and JavaScript a leading zero has historically meant octal, so 010 evaluates to 8, a bug that has caught out generations of programmers writing zero-padded values.

Related tools

Quick answer

Number Base Converter is a free browser tool from SimpleCounter. Free number base converter. Convert between binary, decimal, octal, and hexadecimal instantly. Binary to decimal, hex to decimal, and more. Enter your values and the result updates as you type — there is nothing to install and no account to create.

Definition: Number Base Converter
A number base converter takes the numbers you enter and returns the result using the standard formula for that calculation, so you do not have to work it out by hand.

Key facts

Key facts about Number Base Converter
CostFree, with no account and no usage limit.
Where the maths happensIn your browser. The values you type are not sent to a server.
DevicesAny modern browser on phone, tablet, laptop or desktop.
AccuracyStandard published formulas, shown with the units you selected.
Intended useEstimates for everyday and educational use, not professional advice.

How to use the number base converter

  1. Type your value into the first field.
  2. Choose the unit or option that matches your figures, if the tool offers a choice.
  3. Read the result — it recalculates immediately, with no submit button.
  4. Change any input to compare a second scenario side by side.

How this page relates to the rest of the site

Explained in
Guides and how-tos
Published by
SimpleCounter

Disclaimer: This tool is provided for educational and informational purposes only. Results are estimates based on standard formulas and the inputs you provide. For financial, medical, legal, or tax decisions, consult a qualified professional. See our full disclaimer.

Frequently Asked Questions

How to convert decimal to binary?

Repeatedly divide the decimal number by 2 and record the remainders in reverse order. For example, 13 = 1101 in binary.

How to convert binary to decimal?

Multiply each bit by 2 raised to its position (starting from 0 on the right) and sum the results.

What is hexadecimal?

Base-16 number system using digits 0-9 and letters A-F. Common in programming for colors (#FF0000 = red) and memory addresses.

Benefits of using the Number Base Converter

What you actually get compared with a mechanical clicker, a notes app, or trying to hold the number in your head.

Nothing to install, nothing to sign up for

Open the number base converter and start counting in the same second. No account, no email, no trial.

Your count survives real life

Totals are saved on your device as you go, so a locked screen, a closed tab, or a lost signal does not reset anything.

Works offline once loaded

Install it to your home screen and it keeps working in a warehouse, a pool hall, a field, or a plane — no connection needed.

Private by default

Counts stay in your browser. There is no cloud sync, no profile, and nothing about what you count is sent to us.

Free, with no sign-up
Works offline once loaded
Counts stay on your device
Installable as an app
Runs in your browser — nothing to download
72+ counter types available

Share your setup

We publish only real, attributed feedback here — so this space is intentionally empty until we have your words to put in it. Tell us what you use the number base converter for and we will add your story, with your name, to this page.

Share your experience