Number System Converter
Convert between binary, decimal, hex, octal
Number of Bits
Maximum 16 bits allowed
Bitwise Controls
Enter Value Manually
Type a value in binary, denary, octal, or hexadecimal. The bit buttons will update automatically.
Decimal
0
Base 10
Hexadecimal
0
Base 16
Octal
0
Base 8
Custom Base
0
Powers of 2 form
Substitute powers of 2 values
0×128 + 0×64 + 0×32 + 0×16 + 0×8 + 0×4 + 0×2 + 0×1 = 0
Final addition
0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 = 0
Binary is grouped into sets of 4 bits from the right. Extra leading zeros are added only for grouping.
Group 1
0000
Decimal: 0
Hex: 0
Group 2
0000
Decimal: 0
Hex: 0
Binary is grouped into sets of 3 bits from the right. Each group is converted into one octal digit.
Group 1
000
Decimal: 0
Octal: 0
Group 2
000
Decimal: 0
Octal: 0
Group 3
000
Decimal: 0
Octal: 0
Choose any base from 1 to 16. Values 10 to 15 are represented using A, B, C, D, E, and F.
Base 8 Result
0
0 ÷ base = 0
Result = 0
010 = 08
About This Simulation
This number system converter turns binary values into denary (decimal), hexadecimal, octal and custom bases, and shows every step of the working so you can check your own answers.
Features
- Choose the number of bits
- Binary to denary using place values
- Binary to hexadecimal and octal by grouping bits
- Conversion to custom bases
- Full step-by-step working for each conversion
Explanation
A number system represents values using a fixed set of digits and a base. Binary (base 2) uses 0 and 1, octal (base 8) uses 0–7, denary (base 10) uses 0–9, and hexadecimal (base 16) uses 0–9 and A–F.
How it works
- Binary to denary: multiply each bit by its place value (1, 2, 4, 8, 16, …) and add the results. For example, 1011 = 8 + 0 + 2 + 1 = 11.
- Denary to binary: repeatedly divide by 2 and read the remainders from bottom to top.
- Binary to hexadecimal: split the bits into groups of 4 from the right and convert each group to one hex digit (1010 = A).
- Binary to octal: split the bits into groups of 3 from the right and convert each group to one octal digit.
- Any base b: the value is the sum of each digit × b raised to its position.
Why it matters
Computers store everything in binary, and hexadecimal is used for memory addresses, colour codes and machine code. Number conversion is a core topic in IGCSE, O Level and A Level Computer Science and in CSE230 and CSE260.
Frequently Asked Questions
How do you convert binary to decimal?
Write the place values (powers of 2) above each bit, starting with 1 on the right, and add the place values wherever the bit is 1. For example, 110101 = 32 + 16 + 4 + 1 = 53.
How do you convert binary to hexadecimal?
Group the bits into fours from the right, padding with leading zeros, and replace each group with its hex digit. For example, 1011 1110 = BE.
Why is hexadecimal used in computing?
One hex digit represents exactly 4 bits, so long binary values become short and easy to read. It is used for memory addresses, colour codes (#FF5733), MAC addresses and error codes.
What is the largest number n bits can store?
An unsigned n-bit number can store values from 0 to 2ⁿ − 1. For example, 8 bits store 0 to 255.
Topics covered
- Binary
- Denary (Decimal)
- Hexadecimal
- Octal
- Place Value
- Base Conversion
Tags
- decimal
- number systems
Related Simulations
Number Systems
Two's Complement Simulator
Convert between denary and two's complement binary, with the invert-and-add-one steps and the negative place value shown.
Number Systems
Bitwise Operations Simulator
Apply AND, OR, XOR, NOT, logical and arithmetic shifts and rotations to 8-bit values, and use masks to set, clear and test bits.
Number Systems
Floating Point Representation Simulator
Store numbers as a two's complement mantissa and exponent, normalise them and see rounding errors, plus IEEE 754 32-bit and 64-bit.
Number Systems
BCD Representation Simulator
Store each denary digit as a 4-bit nibble, compare BCD with pure binary and add BCD numbers with the +6 correction.

