aımnova
DashboardMy LearningCrash CoursesStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Crash Courses
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Teachers
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aımnova

IB study, practice and feedback built around the real exam.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.c1e448f

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 1.2Binary and hex
Back to Computer Science HL Topics
1.2.14 min read

Binary and hex (Computer Science HL)

IB Computer Science · Unit 1

Smart study tools

Turn reading into results

Move beyond passive notes. Answer exam-style questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  1. 1Counting with two digits
  2. 2Reading a byte
  3. 3Hex is binary in fours
  4. 4Exam-style question
The big idea: Reading a binary number works just like reading a decimal one. That is the only difference: the column values.

Decimal

  • Ten digits
  • Each column is worth ten times the one to its right
  • Columns: 1, 10, 100

Binary

  • Two digits
  • Each column is worth twice the one to its right
  • Columns: 1, 2, 4, 8, 16
Everything else: Everything else about reading a number is the same.
Why a computer uses two: A wire is either carrying a voltage or it is not. Two states are easy to build and hard to mistake, so computers count with two digits rather than ten.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

One byte — 10110101 — read as 181 in decimal and as B5 in hex. Step through it.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic
Binary to decimal: Write the column values above the bits, then add the columns with a 1 under them.

10110101 → 128 + 32 + 16 + 4 + 1 = 181.
1

Decimal to binary

Take the biggest column value that fits, subtract it, repeat.

181: 128 fits, 53 left. 64 does not. 32 fits, 21 left. 16 fits, 5 left. 8 does not. 4 fits, 1 left. 2 does not. 1 fits, 0 left.

Columns used: 128, 32, 16, 4, 1 → 10110101.

2

Check it

Add your columns back up. If they do not come to the number you started with, you dropped a zero.

128 + 32 + 16 + 4 + 1 = 181. Correct.

Get feedback like a real examiner

Submit your answers and get instant feedback — what you did well, what's missing, and exactly what to write to score full marks.

Try AI Tutor FreeYour first topic is free to keep • No credit card required
Why hex exists: Four bits hold 0 to 15 — exactly the range of one hex digit.

So any byte splits neatly into two halves, and each half becomes one character. 10110101 becomes B5: two characters instead of eight.

The sixteen digits

  • 0-9 are themselves
  • A = 10, B = 11, C = 12
  • D = 13, E = 14, F = 15
  • F is the largest single hex digit

Binary → hex

  • Split the bits into groups of four, from the right
  • Pad the left group with zeros if it is short
  • Turn each group into its digit
  • 1011 0101 → 11 and 5 → B5

Hex → binary

  • Turn each hex digit into four bits
  • Keep the leading zeros — the groups must stay four wide
  • 2F → 0010 and 1111 → 00101111
  • Never convert through decimal; it is slower and invites errors
Going through decimal for hex: For hex to decimal, multiply the left digit by 16 and add the right.

B5 → 11 × 16 + 5 = 176 + 5 = 181. The same number as before, which is the point: three notations, one value.

How this is tested — you must convert accurately and show the column values you used. It comes up two ways:

Paper 1 Section A

  • Convert between binary, decimal and hex, 1-2 marks each
  • State why hex is used for binary data
  • Often the first, quickest marks on the paper

Paper 1 Section B — case study

  • Read or write values in the case study's context
  • Colour codes, memory addresses, file identifiers
The classic trap: Grouping bits from the left when converting to hex. Always group in fours from the right, and pad the leftmost group with zeros — 101101 is 0010 1101, which is 2D, not B4.
IB-style questionConvert[4 marks]

Convert the binary number 11010110 to decimal and to hexadecimal, showing your working.

Model answer plan

See the answer broken into clear points, with guidance on how each point earns marks.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Binary and hex. Write your answer and get instant AI feedback — just like a real IB examiner.

the binary equivalent of the denary number 45. [1 mark]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

1.1.1CPU components1.1.2The GPU1.1.3CPU vs GPU1.1.4Primary memory
View all Computer Science HL topics
Improve your exam techniqueCommand terms, paper structure, and mark-scheme tips for Computer Science HL
Previous1.1.9Cloud servicesNextStoring data in binary1.2.2

21 practice questions on Binary and hex

Students who practiced this topic on Aimnova scored 82% on average. Try free practice questions and get instant AI feedback.

Try 3 Free QuestionsView All Computer Science HL Topics