Back

What is Endianness?

Understanding how computers store data.

15 January 2026

The basics: What is endianness?

Endianness refers to how computers store multi-byte data — like integers — in memory. Take the hexadecimal number 0x12345678. It’s made up of four bytes, but the question is: which byte gets stored first?

  • Big-endian systems are the posh, logical ones. They store the most significant byte first — so the bytes go in this order: 0x12, then 0x34, 0x56, and finally 0x78. This matches how humans naturally read numbers, from left to right.
  • Little-endian systems, on the other hand, store the least significant byte first — so it’s 0x78, then 0x56, 0x34, and 0x12. This upside-down ordering was popularised by Intel processors and dominates in personal computers today.

Why do both big-endian and little-endian exist?

The story dates back to the 1980s, when different CPU designers chose different conventions — much like the infamous “egg war” from Jonathan Swift’s Gulliver’s Travels, where two factions fought over which end of an egg to crack: the big end or the little end. The term “endianness” actually comes from this satirical tale — proof that some computing disputes are centuries old!

  • Big-endian is commonly used in networking protocols, making data transmission more predictable.
  • Little-endian is widespread in everyday computing, especially on Intel and compatible processors.
  • Some processors, like ARM, can switch between both — like a chameleon adapting its colours.

Is one better than the other?

Not really. Endianness is just a convention — similar to whether we drive on the left or right side of the road. The trouble only comes when data is shared between systems using different conventions, leading to potential confusion (and program crashes).

So next time your code glitches because bytes are in the wrong order, blame it on the great egg war of computing history!

Want to dive deeper into how computers work behind the scenes?

Watch the full video to explore endianness and more fascinating computer science concepts. 

For more Lesson Hacker videos, check out the Craig’n’Dave YouTube playlist HERE.

Be sure to visit our website for more insights into the world of technology and the best teaching resources for computer science and business studies.

Stay informed, stay curious!

Related posts

Significant pressure from Ofsted brings heightened expectations on schools over mobile phones

The DfE’s guidance pushes schools toward a phone-free day, raising practical, cultural, and safeguarding challenges. With Ofsted expectations looming, phones are no longer just a behaviour issue—they sit at the heart of modern school policy.

6 February 2026

The Craig’n’Dave Festival of Computing 2026 Tickets Are Now Available!

We’re thrilled to announce that tickets for the Craig’n’Dave Festival of Computing 2026 are officially available! Co-founded and hosted by […]

2 February 2026

Festival of Computing press pack

The Craig’n’Dave Festival of Computing 2026 is coming!

The Craig’n’Dave Festival of Computing returns on Wednesday 1 July 2026 at the prestigious Bromsgrove School (B61 7DU), and sponsored […]

29 January 2026

Why are school exclusions rising? Causes, challenges, and solutions for teachers

Permanent exclusions in English schools have reached record highs, with nearly 11,000 pupils excluded in 2023-24—more than double the figure […]

17 January 2026

Does anyone still use low-level code?

Low-level programming isn’t dead — it quietly powers the devices we rely on every day, from cars to toasters. If you love digging into game engines, compilers, or hardware drivers, your skills are more essential than ever.

14 January 2026

Should AI have morals?

Should AI always agree with us, or tell us when we’re wrong? We explore whether artificial intelligence should be kind, or correct — and why the answer really matters.

13 January 2026

What is vibe coding? Is it the future of programming?

Vibe coding lets you tell an AI what you want in plain English—and it writes the code for you. But is it genius productivity or just a confident intern with a wild imagination?

12 January 2026

Trinket is shutting down in June 2026

Time2Code uses Trinket as its online IDE for Python. Unfortunately, that service is shutting down later this year, probably in […]

9 January 2026

What does a GPU actually do?

A GPU isn’t just a graphics chip—it’s like a room full of toddlers with crayons, all scribbling at once to bring your game to life. While CPUs think carefully, GPUs colour fast.