Number Base Converter — Binary, Decimal, Hex & Octal

Convert numbers between binary, decimal, hexadecimal, octal and any base from 2 to 36. Supports very large numbers. Free.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This number base converter turns a number from one base into another, such as binary, decimal, hexadecimal, octal or any base from 2 to 36. Type into any box and the other bases update instantly. It suits students, programmers, and anyone who needs a quick, free answer, including for very large numbers.

How to use the number base converter

  1. Find the box for the base you already have: binary, decimal, hexadecimal, octal, or a custom base.
  2. Type your number into that box.
  3. Read the results in the other boxes. They update as you type, so there is no convert button to hunt for.
  4. Change a digit or start over whenever you like. Every box refreshes to match.
How to use the Number Base Converter on OneHubTools: 4 steps with a real screenshot of the tool
How to use the Number Base Converter, step by step.

This tool pairs well with the Text to Binary Converter. If you do this kind of job often, the Color Converter and the URL Parser can save you time too.

You can work in any direction. Type hex and read decimal, or type decimal and read binary. The tool does not care which box you start in.

What is a number base converter good for?

Different fields write the same value in different bases. A converter saves you from doing the maths by hand each time.

  • Homework and exams. Check your working when you convert binary to decimal or decimal to binary.
  • Programming. Colour codes, memory addresses and bit flags are often written in hex. A hex to decimal conversion shows the plain value.
  • Networking and electronics. Binary makes it easy to see which bits are on or off.
  • File permissions. Octal is common here. For example, octal 755 is 493 in decimal and 111101101 in binary.
  • Puzzles and curiosity. Base 36 uses digits and letters, and some people use it to build short codes.
Result from the Number Base Converter on OneHubTools
What the Number Base Converter gives you.

Quick examples to test against

Try these values to see how the bases line up.

DecimalBinaryOctalHexadecimal
10101012A
3111111371F
100110010014464
25511111111377FF

In base 36, the decimal number 35 is the single character Z. Letters carry on after 9, which is how a single digit can stand for values up to 35.

Which digits can each base use?

BaseNameDigits allowed
2Binary0 and 1
8Octal0 to 7
10Decimal0 to 9
16Hexadecimal0 to 9, then A to F
36Base 360 to 9, then A to Z

Any base from 2 to 36 follows the same pattern. The base tells you how many different digits it has.

Tips for best results

  • Check your digits first. A 2 can never appear in a binary number, and a 9 can never appear in octal.
  • Leave out extras. Type only the number itself. Spaces, commas and labels such as "hex" are not part of the value.
  • Use the right box. Many wrong answers come from typing a hex value into the decimal box. Make sure the box matches your number.
  • Keep long binary readable. Group it in fours in your notes, such as 1111 1111. Each group maps to one hex digit, which makes checking easy.
  • Do not worry about size. The tool supports very large numbers, so you can paste long values without splitting them.

How do you convert binary to decimal by hand?

Write the place values under each binary digit, starting from the right: 1, 2, 4, 8, 16 and so on. Add up the place values wherever the digit is 1.

Take 1010. The 1s sit under 8 and 2, so the answer is 8 + 2 = 10. You can type 1010 into the binary box to confirm it.

Going the other way, decimal to binary, you divide by 2 again and again and read the remainders from last to first. It works, but it is slow for big numbers. That is where a converter helps most.

Common problems and how to fix them

The result looks wrong

Check that you typed the number in the box for its own base. The same characters mean different things in different bases. The text 10 is ten in decimal, two in binary and sixteen in hex.

I cannot enter a letter

Letters are only valid in bases above 10. Hex uses A to F. Decimal, octal and binary use digits only.

My number has leading zeros

Leading zeros do not change the value. 0011 and 11 are the same number, so the other bases will match either way.

I need a base other than the common four

Use the custom base option and choose any base from 2 to 36. This works like an octal converter or hex converter, but for the base you pick.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Where the facts come from

According to NIST, the International System of Units (SI) is built on seven base units, such as the metre and the kilogram, and was adopted more than 60 years ago.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is a number base converter?

A number base converter changes a number from one numeral system to another, such as binary to decimal or decimal to hexadecimal. This one supports bases 2 to 36 and updates every result as you type.

How do I convert binary to hexadecimal?

Type your binary number into the binary box and read the hexadecimal box. By hand, split the binary into groups of four digits from the right, then replace each group with one hex digit. For example, 1111 1111 becomes FF.

What bases does this converter support?

It supports binary, decimal, hexadecimal, octal and any base from 2 to 36. That covers nearly every base people use in school, programming and computing.

Can it handle very large numbers?

Yes, the converter supports very large numbers. You can enter long values without splitting them into smaller pieces.

Why does hexadecimal use letters?

Hexadecimal needs sixteen different digits, but we only have ten numerals. The letters A to F stand for the values 10 to 15, so A is 10 and F is 15.

Is the number base converter free?

Yes, it is free to use on OneHubTools. You type a number and see the results straight away.