Hexadecimal: The Programmer's Shorthand

Test yourself on Binary & Hex with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Binary & HexGet your flashcardsBuild my revision planTrack my progress

Hexadecimal: The Programmer's Shorthand

Why Hexadecimal is Used:

  • Compact: 1 hex digit = 4 binary bits. "FF" = "11111111" (much shorter!)
  • Human-readable: Easier to spot patterns and errors than long binary strings
  • Memory addresses: 0x7FFF is easier than 0111111111111111
  • Colors: #FF5733 (red=FF, green=57, blue=33)
  • MAC addresses: A4:5E:60:E2:7B:3C

Hex Notation:

  • Prefix with "0x" or "#" to indicate hex: 0xAF, #FF5733
  • Sometimes subscript: 2F16

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.