aimnova.
DashboardMy LearningPaper MasteryStudy 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
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

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 real exam questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  • Counting with two digits
  • Reading a byte
  • Hex is binary in fours
  • Exam-style question
The big idea: Decimal has ten digits, so each column is worth ten times the one to its right: 1, 10, 100.

Binary has two, so each column is worth twice the one to its right: 1, 2, 4, 8, 16.

That is the only difference. 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

2

Check it

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 mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

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 components
1.1.2The GPU
1.1.3CPU vs GPU
1.1.4Primary memory
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
1.1.9Cloud services
Next
Storing 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