What is a number base converter?
A number base converter changes a number from one counting system to another. The number itself never changes — only the way it is written down changes. The decimal number 255 is the same quantity as the binary number 11111111 and the hexadecimal number FF, just spelled in a different alphabet of digits. This calculator moves between the four bases people actually use: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16).
Each base uses a different set of digits. Binary uses only 0 and 1, octal uses 0 to 7, decimal uses the familiar 0 to 9, and hexadecimal adds the letters A to F to reach sixteen symbols, where A stands for 10 and F stands for 15.
Programmers and electronics students meet these bases constantly: memory addresses, file permissions, colour codes and machine code are all written in bases other than decimal. A number base converter takes the table lookups out of the job, so you can check a value in seconds.
This calculator is deliberately simple. Type the number, pick the base it is written in, pick the base you want, and the answer appears at once, with the decimal value shown underneath so you always have a familiar reference point. Nothing is uploaded anywhere — the conversion runs in your browser.
How a number base converter works
Converting between bases is a two-step job, and the calculator does both steps for you. First it reads your number in its source base and works out what quantity it stands for — its decimal value. Then it writes that same quantity out in the target base. Every conversion goes through decimal in the middle, even though you never see that step happen.
Take the default example on this page. The number 255 is entered as a decimal, so its value is two hundred and fifty-five. To write it in hexadecimal, divide by 16 again and again and keep the remainders: 255 divided by 16 is 15 remainder 15, and 15 divided by 16 is 0 remainder 15. The remainders, read backwards, are 15 and 15 — F and F in hex — so the answer is FF. The calculator shows FF as the converted value and 255 as the decimal value.
Binary works the same way with 2 instead of 16. The decimal number 10 divided by 2 repeatedly gives remainders 0, 1, 0, 1, read backwards as 1010. Going the other way, each binary digit is worth double the one to its right, so 1010 means 8 + 0 + 2 + 0 = 10. An exponent calculator helps here, because every place value in a base is a power of that base: in binary the places are 1, 2, 4, 8, 16 and so on.
One detail matters: the digits you type must belong to the source base. The letter F is only valid in hexadecimal, the digit 8 is not valid in octal, and the digit 2 is not valid in binary. If you type a digit the base does not have, the calculator shows a dash instead of a wrong answer, which is your cue to check the base you picked.
Binary, octal, decimal and hexadecimal explained
Decimal is the system we all grew up with, and it works because we have ten fingers. Its places are powers of ten: ones, tens, hundreds, thousands. Binary is the system computers use, because a wire is either on or off, and its places are powers of two. A byte is eight binary digits, and eight bits can hold any number from 0 to 255 — which is why so many computer values top out at 255.
Hexadecimal is shorthand for binary. Four binary digits make exactly one hex digit, so a byte is exactly two hex digits. That is why memory addresses and colour codes are written in hex: FF is far easier to read than 11111111, and it takes half the space. Octal groups binary digits in threes instead of fours, and it still shows up in Unix file permissions, where 755 means the owner can read, write and execute while others can only read and execute.
The bases are related by simple grouping. To turn binary into hex, split the binary digits into groups of four from the right and turn each group into one hex digit: 1111 1111 becomes FF. To turn binary into octal, group in threes: 111 111 111 becomes 777. These grouping tricks are worth learning, because they let you convert short numbers in your head.
The number base converter is the tool for the long numbers where grouping gets slow or error-prone.
A worked example: 255, 1010 and FF
Here are three real conversions using the numbers on this page. First, the default: 255 in decimal to hexadecimal gives FF, and the decimal value shown is 255. The working is 255 = 15 × 16 + 15, and 15 in hex is F, so the two hex digits are FF. A colour channel set to FF is at full brightness, which is why white in hex is FFFFFF.
Second, binary to decimal. Enter 1010 with the source base set to binary and the target set to decimal. The calculator reads 1010 as 8 + 0 + 2 + 0 = 10, so the converted value is 10 and the decimal value is 10 as well. The same four digits in decimal would mean one thousand and ten, which shows how much the base matters — the digits alone tell you nothing until you know the base.
Third, hexadecimal to binary. Enter FF with the source base set to hex and the target set to binary. Each F is 15, which is 1111 in binary, so the answer is 11111111 and the decimal value is 255. Two hex digits, eight binary digits, one quantity — and the calculator also confirms it with the decimal value 255.
Try a fourth yourself: 777 in octal to decimal. Octal 777 means 7 × 64 + 7 × 8 + 7, which is 448 + 56 + 7 = 511. If you convert it and see 511, you have the idea. If you see a dash, check that the source base is set to octal and not to decimal.
Who uses a number base converter, and why
Programmers use base conversion every day. Colours in CSS are hex, Unicode code points are hex, and bit flags are binary. A developer reading a colour like #2E86AB wants to know the red channel is 46 in decimal, and a developer debugging a bitmask wants to see which bits are set. The converter turns a cryptic string into a number they can reason about.
Electronics and networking students meet the same bases in class. IP addresses in IPv4 are four decimal numbers, but subnet masks are often written in binary, and MAC addresses are hex. A student who can move between the bases fluently reads those numbers instead of memorising them, and the converter is the fastest way to check homework answers.
It also helps in everyday puzzles. A length converter changes metres to feet, and a base converter does the same kind of job for number systems — it translates between two ways of writing the same thing. Gamers setting file permissions, hobbyists programming microcontrollers, and students preparing for computing exams all reach for it for the same reason: one typed value, one correct answer.
Even outside computing, the idea behind bases is useful. It teaches that a number and its written form are two different things, and that the same quantity can look completely different in another system. That is a handy way to think about units in general, and a scientific calculator covers the arithmetic once you know which base you are working in.
Number base converter vs a scientific calculator
A scientific calculator can convert bases too, on some models, but it is built for arithmetic first and conversion second. Its base mode is usually buried in a menu, it often only converts between two bases at a time, and it rarely shows the decimal value alongside the answer. This converter puts the two bases side by side and keeps the decimal value visible, so you always know the size of the number you are looking at.
The other difference is typing. On a scientific calculator you enter a hex number with letter keys that may not exist on a basic model, and a wrong keypress gives a wrong answer with no warning. Here you type plain characters and pick the bases from a list, and if a digit does not belong to the source base the result is a dash, not a silent error.
Where a scientific calculator wins is on the maths around the conversion. Once you have the decimal value, you can add, subtract or multiply it, and a percentage calculator turns it into a share of a total. Use the converter to translate, then the calculator to work with the translated number — they are partners, not rivals.
For a single conversion, the converter is faster. For a page of arithmetic in hex, a scientific calculator or a programmer's calculator is the better tool. Knowing which one to reach for is half the skill, and for most people most of the time, the answer is the converter.
Common base conversion mistakes
The most common mistake is forgetting to set the source base. Typing 1010 and leaving the source on decimal converts one thousand and ten, not the binary number ten. The digits look identical; only the base setting tells the calculator what they mean. Always check the source base before trusting the answer, especially when the digits could belong to more than one base.
Second: reading hex letters as decimal digits. The hex number 1A is not fourteen or one-and-a-bit — A stands for 10, so 1A is 1 × 16 + 10 = 26. Beginners often read A as 1, or ignore the letter entirely. Remember that A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15, and hex becomes readable.
Third: dropping leading zeros. In binary, 0010 and 10 are the same number, but in a fixed-width field like a byte, 00001010 shows all eight bits and makes the pattern clear. The converter drops leading zeros in its answer because the value is the same, but when you are working with bytes or addresses, write the zeros back in so the width stays visible.
Fourth: mixing up octal and decimal. The digits 0 to 7 look the same in both systems, so 777 could be seven hundred and seventy-seven or five hundred and eleven, and only the base decides. Unix permissions are the classic trap — 755 in octal is a permission set, not a number in the seven hundreds. If the context is computing, assume the base is not decimal until you check.
How to use this number base converter
Using it takes seconds. Type the number in the first box — digits only for binary, octal and decimal, digits and the letters A to F for hexadecimal. Then pick the base the number is written in from the From list, and pick the base you want from the To list. The converted value and its decimal value appear instantly.
If the result shows a dash, one of two things went wrong: the box is empty, or a digit does not belong to the source base. The digit 2 in a binary number, the digit 8 in an octal number, or the letter G in a hex number all produce a dash. Fix the digit or the base setting and the answer returns.
Try converting the same number to all four bases in turn. Take 255 and convert it to binary (11111111), octal (377) and hex (FF). Seeing one quantity in four spellings is the fastest way to get comfortable with bases, and it is exactly the skill that makes reading colour codes and addresses feel natural.
Everything runs in your browser. There is no account, no form and no data sent anywhere — the numbers you type never leave your device. Use it as often as you like, for homework, for code, or for curiosity, and check the answer against the grouping tricks above whenever a number matters.