Tutorioo
Home
PricingContact
Get Started
HomePricingContact
Get Started
Tutorioo

AI-powered tutoring platform for UK students from KS2 to A-Level. Affordable, effective learning available 24/7.

View Pricing→
  • Features
  • Pricing
  • Subjects & Levels
  • Tools
  • Parent Resources
  • FAQ
  • All Articles
  • GCSE Grades
  • About
  • Mission
  • Contact
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 Tutorioo. All rights reserved.

Accessibility|
  1. Home
  2. /
  3. Tools
  4. /
  5. Number Base Converter
Computer Science Tool

Free Binary & Hex Converter with Steps

Convert between binary, decimal, hexadecimal, and octal with step-by-step working. Interactive bit toggle, learn mode quiz, binary arithmetic, two's complement, and ASCII conversion. Perfect for GCSE & A-Level Computer Science.

4 Bases6 OperationsLearn ModeInteractive Bits

Get instant answers without steps

Binary (Base 2)

0b101010

Decimal (Base 10)

42

Hexadecimal (Base 16)

0x2A

Octal (Base 8)

0o52

Place Value Breakdown

27128
0
2664
0
2532
1
+32
2416
0
238
1
+8
224
0
212
1
+2
201
0
32 + 8 + 2 = 42

Hex → Binary Nibble Mapping

2
0
0
1
0
A
1
0
1
0

0x2A = 0010 1010

Interactive 8-Bit Toggle

128
64
32
16
8
4
2
1

Decimal

0

Hex

0x0

Octal

0o0

How helpful was this?

Help other students find great tools

What are Number Bases?

A number base (or radix) determines how many different digits can be used in a counting system. We normally use base 10 (decimal) with digits 0-9, but computers use base 2 (binary) with just 0 and 1.

In GCSE Computer Science, you need to understand binary, decimal, hexadecimal (base 16), and sometimes octal (base 8).

Common Number Bases

BinaryBase 20, 1
OctalBase 80-7
DecimalBase 100-9
HexadecimalBase 160-9, A-F

Key Conversion Methods

Binary → Decimal

Multiply each digit by its place value (power of 2) and add

1011₂ = 8+0+2+1 = 11₁₀

Decimal → Binary

Repeatedly divide by 2 and read remainders bottom-up

13 → 6r1 → 3r0 → 1r1 → 0r1 = 1101₂

Hexadecimal Shortcut

Each hex digit = 4 binary bits (a nibble)

1010 1111₂ = AF₁₆

Exam Tip

Memorise the first 16 place values: 1, 2, 4, 8, 16, 32, 64, 128, 256... This makes binary-decimal conversion much faster!

Why Do Computers Use Binary?

Transistors: On or Off

Computers are built from billions of tiny switches called transistors. Each transistor can only be in one of two states: on (1) or off (0). Binary is the natural language of these switches.

Why Base 2 is Fundamental

With only two possible states, there's no ambiguity. Electrical signals are either high or low — no need to distinguish between 10 different voltage levels. This makes binary reliable and fast.

Binary Represents Everything

Everything in a computer is binary: text (ASCII/Unicode), colours (hex codes like #FF0000), images, sound, and even the programs themselves.

Hexadecimal in Real Life

Colour Codes

Web colours use hex to represent Red, Green, and Blue values (0-255 each).

#FF0000= Red
#00FF00= Green
#0000FF= Blue
#FFFF00= Yellow

Other Uses of Hex

MAC Addresses

A1:B2:C3:D4:E5:F6

Each pair is a hex byte identifying network hardware

Memory Addresses

0x7FFF5FBFF8AC

Hex is compact: 48 binary bits become 12 hex digits

Error Codes

0xDEADBEEF • 0xCAFEBABE

Famous debug markers used in software development

Why hex over binary? Hex is a compact representation — one hex digit replaces 4 binary bits. The byte 11111111 becomes just FF. Much easier to read!

Bitwise Operations Explained

AND

Both bits must be 1

ABOut
000
010
100
111

OR

At least one bit is 1

ABOut
000
011
101
111

XOR

Exactly one bit is 1

ABOut
000
011
101
110

NOT

Flip the bit

AOut
01
10

Subnet Masking (AND)

Networks use AND with a subnet mask to determine if two devices are on the same network.

Toggling Flags (XOR)

XOR flips specific bits without affecting others — used in encryption and game logic.

Clearing Bits (AND + NOT)

AND with a NOT mask sets specific bits to 0 while keeping others unchanged.

Common Mistakes to Avoid

✗ Reading binary remainders top-down instead of bottom-up

✓ Always read remainders from the LAST division to the FIRST when converting decimal to binary.

✗ Forgetting to pad hex-to-binary groups to 4 bits

✓ Each hex digit MUST produce exactly 4 bits. Hex 3 is 0011, not 11.

✗ Mixing up AND, OR, and XOR operations

✓ AND: both must be 1. OR: at least one is 1. XOR: exactly one is 1. Memorise the truth tables!

✗ Forgetting to add 1 in two's complement (only inverting)

✓ Two's complement is TWO steps: invert all bits AND THEN add 1. Inverting alone is one's complement.

✗ Starting positional values from 2¹ instead of 2⁰

✓ The rightmost position is always 2⁰ = 1, not 2¹ = 2. Place values go: ...8, 4, 2, 1.

✗ Confusing unsigned and signed binary ranges

✓ Unsigned 8-bit: 0 to 255. Signed two's complement 8-bit: -128 to +127. The sign bit halves the positive range.

Worked Examples

GCSE

Convert 11010110₂ to decimal

Place values: 128 64 32 16 8 4 2 1

Bits:          1   1   0   1  0 1 1 0

Active: 128 + 64 + 16 + 4 + 2

= 214₁₀

GCSE

Convert 200₁₀ to binary

200 ÷ 2 = 100 r0

100 ÷ 2 = 50  r0

 50 ÷ 2 = 25  r0

 25 ÷ 2 = 12  r1

 12 ÷ 2 =  6  r0

  6 ÷ 2 =  3  r0

  3 ÷ 2 =  1  r1

  1 ÷ 2 =  0  r1

Read ↑: 11001000₂

GCSE

Add 01101001 + 00110110

Carries: 1 1 1 1     

   01101001

+ 00110110

─────────

  10011111

Check: 105 + 54 = 159 ✓

A-Level

Represent -42 in 8-bit two's complement

Step 1: +42 = 00101010

Step 2: Invert = 11010101

Step 3: Add 1  = 11010110

-42 = 11010110₂

Sign bit = 1 (negative) ✓

Binary Arithmetic

Binary Addition Rules

0 + 0 = 0

0 + 1 = 1

1 + 0 = 1

1 + 1 = 10 (carry 1)

Example: 1011 + 0110 = 10001

Two's Complement (Negative Numbers)

Step 1: Start with +5 = 00000101

Step 2: Flip all bits = 11111010

Step 3: Add 1 = 11111011

-5 in two's complement = 11111011

Frequently Asked Questions

How do I convert binary to decimal?

Write the place values (1, 2, 4, 8, 16...) above each binary digit from right to left. Add up the place values where there's a 1. Example: 1011 = 8+2+1 = 11.

How do I convert decimal to binary?

Divide by 2 repeatedly and note the remainders. Read the remainders from bottom to top for the binary number. Example: 13÷2=6r1, 6÷2=3r0, 3÷2=1r1, 1÷2=0r1 → 1101.

What is hexadecimal used for?

Hexadecimal is used in computing because each hex digit represents exactly 4 binary bits. This makes it easier to read and write binary data. It's used for colours (e.g., #FF0000), memory addresses, and MAC addresses.

How do I add binary numbers?

Add column by column from right to left using: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (write 0, carry 1). If three 1s meet: 1+1+1=11 (write 1, carry 1).

What is two's complement?

Two's complement is how computers store negative numbers. To find it: flip all bits (0→1, 1→0), then add 1. The leftmost bit is the sign bit (0=positive, 1=negative).

Is this aligned with GCSE Computer Science?

Yes! It covers the entire GCSE number systems topic for OCR, AQA, and Edexcel, including binary/hex conversion, binary arithmetic, two's complement, and ASCII.

What is the range of an 8-bit unsigned binary number?

An 8-bit unsigned number ranges from 0 (00000000) to 255 (11111111). That's 2⁸ = 256 possible values. For signed two's complement, the range is -128 to +127.

How do I convert between hex and binary quickly?

Use nibble grouping: each hex digit = 4 binary bits. To convert, replace each hex digit with its 4-bit binary (e.g., A=1010). To go binary→hex, group from the right in 4s.

What is the difference between one's complement and two's complement?

One's complement only inverts the bits. Two's complement inverts then adds 1. Two's complement is preferred because it has only one representation of zero and simpler arithmetic.

How is ASCII used in computing?

ASCII assigns a number (0-127) to each character. 'A' = 65, 'a' = 97, '0' = 48, space = 32. This lets computers store, transmit, and process text as binary numbers.

Explore More Free Tools

All our tools are 100% free with step-by-step learning

Graphing Calculator

Plot equations step-by-step with interactive graphs

Quadratic Equation Solver

Solve ax² + bx + c = 0 with the quadratic formula

Scientific Calculator

Full-featured calculator with trig, logs, and more

Percentage Calculator

Calculate percentages, increases, and changes

Fraction Calculator

Add, subtract, multiply, and divide fractions

Unit Converter

Convert between metric and imperial units

Derivative Calculator

Calculate derivatives step-by-step with all differentiation rules

Limit Calculator

Evaluate limits with L'Hôpital's rule and step-by-step solutions

Integral Calculator

Calculate integrals with substitution, parts, and more techniques

GCSE Grade Calculator

Calculate Attainment 8, Progress 8, and check sixth form entry requirements

Simultaneous Equations Solver

Solve 2x2 and 3x3 systems of linear equations

Statistics Calculator

Calculate mean, median, mode, standard deviation, and more

Geometry Calculator

Calculate area, perimeter, volume, and surface area for 2D & 3D shapes

Matrix Calculator

Matrix operations: add, multiply, determinant, inverse, RREF

Prime Factorization Calculator

Find prime factors, GCF, LCM, and check if numbers are prime

Trigonometry Calculator

Calculate sin, cos, tan. Solve triangles with SOH-CAH-TOA

Compound Interest Calculator

Calculate compound interest, depreciation, and growth with steps

Sequence Calculator

Find the nth term formula for arithmetic, geometric, and quadratic sequences

Logarithm Calculator

Calculate log, ln, and antilog with step-by-step solutions

Standard Form Calculator

Convert numbers to A × 10ⁿ format and perform operations

Significant Figures Calculator

Count, round, and calculate with significant figures step-by-step

Surds Calculator

Simplify surds, rationalise denominators, and perform surd operations

Factorisation Calculator

Factorise quadratics, difference of squares, and sum/difference of cubes

Vectors Calculator

Calculate magnitude, dot product, cross product, and angle between vectors

Ratio & Proportion Calculator

Simplify ratios, solve proportions, and divide amounts in ratios

Probability Calculator

Calculate nCr, nPr, binomial probability, and more with step-by-step solutions

Complex Numbers Calculator

Add, subtract, multiply, divide complex numbers. Find modulus, argument, and apply De Moivre's theorem

Kinematics Calculator

Calculate velocity, acceleration, and solve SUVAT equations with step-by-step working

Forces Calculator

Calculate force, mass, acceleration, weight, and friction using Newton's laws

Electricity Calculator

Calculate voltage, current, resistance, power using Ohm's law and circuit formulas

Waves Calculator

Calculate wave speed, frequency, wavelength, refraction using Snell's law and standing waves

Momentum Calculator

Calculate momentum, impulse, and conservation in collisions

Energy Calculator

Calculate work, kinetic energy, potential energy, efficiency, and power

Radioactivity Calculator

Calculate half-life, decay, activity, and balance nuclear equations

Circular Motion Calculator

Calculate angular velocity, centripetal force, and acceleration

Projectile Motion Calculator

Calculate range, max height, time of flight, and trajectory with visual graph

Optics Calculator

Calculate focal length, magnification, and lens power

Electric Field Calculator

Calculate Coulomb's law, field strength, potential, and work done in electric fields

Torque Calculator

Calculate torque, moments, equilibrium, and couples with step-by-step solutions

Moles & Stoichiometry Calculator

Calculate moles, mass, Mr, concentration, and percentage yield with step-by-step solutions

pH Calculator

Calculate pH of strong acids, weak acids, buffer solutions, and dilutions with step-by-step solutions

Chemical Equation Balancer

Balance chemical equations, identify reaction types, generate ionic equations, and practise with 50+ equations

Enthalpy & Thermochemistry Calculator

Calculate enthalpy changes with calorimetry, bond enthalpies, Hess's Law, Born-Haber cycles, and Gibbs free energy

Electron Configuration Calculator

Calculate electron configurations for all 118 elements with orbital diagrams, ions, and quantum numbers

Punnett Square Calculator

Predict genetic crosses with monohybrid, dihybrid, codominance, and X-linked inheritance

DNA & Protein Synthesis Calculator

Transcribe DNA to mRNA and translate to amino acids with codon lookup and mutation analysis

Ecology & Population Calculator

Calculate Simpson's Diversity Index, Lincoln Index, and population growth with step-by-step solutions

Magnification & Cell Size Calculator

Calculate magnification, image size, actual size, and unit conversions with step-by-step solutions

SA:V Ratio Calculator

Calculate surface area to volume ratio with step-by-step solutions for biology

Water Potential Calculator

Calculate water potential, solute potential, and predict osmosis direction with step-by-step biology solutions

View All Free Tools