Versión en español →

Binary · Octal · Decimal · Hexadecimal · Free

Number system converters online

All of UniSolvers’ tools for converting a number between bases: type the value and each converter gives you the result with every division, multiplication or bit grouping explained, so you can check your computer science or digital electronics exercises.

The four bases you’ll use

A positional number system uses a fixed number of digits (the base), and each position is worth the base raised to that position. In computing you almost always work with these four. For reference, here is the same quantity, 255, written in each one:

SystemBaseDigitsWhere it’s used255 is written
Binary20 1Bits, digital circuits, logic operations11111111
Octal80–7Unix/Linux permissions (chmod 755)377
Decimal100–9Everyday life255
Hexadecimal160–9 A–FMemory addresses, bytes, web colors, cheat codesFF

Conversion chart from 0 to 15

With this chart you can solve almost any conversion between binary, octal and hexadecimal without going through decimal, because each hexadecimal digit is exactly 4 bits and each octal digit, 3 bits:

DecimalBinaryOctalHexadecimal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Which converter do I need?

Look at which base the number you’re given is in and which base you’re asked to convert it to. Each converter explains its full method with a worked example:

If you need to convert…Use
From decimal (base 10) to hexadecimal (base 16)Decimal to hexadecimal converter
From hexadecimal (base 16) to decimal (base 10)Hexadecimal to decimal converter

Working with logic instead of numbers? The logic calculators use the same 0s and 1s, applied to formulas: truth tables, normal forms and proofs.

Frequently asked questions

What is a positional number system?

One where the value of each digit depends on its position. In decimal, the 7 in 700 is worth seven hundred because it sits in the hundreds place (10²). Any other base works the same way, except that the positions are powers of that base.

Why do computers use binary and not decimal?

Because their circuits can only reliably tell two states apart (there is voltage or there isn’t), which are written as 1 and 0. Hexadecimal and octal aren’t used by the machine itself: people use them to write long strings of bits more compactly.

Why is a byte written with two hexadecimal digits?

A byte is 8 bits, and each hexadecimal digit stands for exactly 4 bits. That’s why any byte goes from 00 to FF (0 to 255 in decimal).

Go up