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

How does optical disc burning work?

Discover what really happens when you “burn” a CD or DVD—it’s not fire, it’s a laser precisely encoding your data onto the disc. From pits and lands to rewritable mood-ring discs, here’s how your files get stored.

14 August 2026

What is a VPN?

Ever wondered how a VPN really works? Think of it as a clever middleman that keeps your online activity private and your data safe.

12 August 2026

Should parents be sharing your life on social media?

“Sharenting”—where parents share their children’s lives online—might seem harmless, but it comes with risks like identity theft, cyberbullying, and impacts on self-esteem. Learn how families can share responsibly while keeping kids’ privacy safe.

10 August 2026

What Is Concurrency in Computing?

Concurrency is the clever trick your computer uses to juggle multiple tasks at once—without actually doing them simultaneously.
From web pages to deadlocks, discover how this behind-the-scenes magic keeps your digital world running (mostly) smoothly.

7 August 2026

Why are silicon wafers round when chips are square?

Ever wondered why silicon wafers are round when everything they power is square? It’s all down to the way we grow and slice silicon — a fascinating mix of physics, efficiency, and a touch of irony.

5 August 2026

What Is the Best Material for a Smartphone?

Your smartphone isn’t made from one perfect material — it’s a carefully engineered compromise of plastic, metal, glass, and ceramic. Each choice solves a problem… and creates another.

3 August 2026

AI torrenting may not be so legal after all

AI training is facing a legal reality check as courts draw the line between fair use and copyright infringement. We look at why data provenance and licensing are now critical in modern AI development.

31 July 2026

Why are LEDs so efficient?

Ever wondered why LEDs use so little energy? Discover how semiconductors create light directly, using far less energy and heat than traditional light bulbs.

29 July 2026

Why Pixar still chooses CPUs over GPUs

Pixar still relies on CPUs for their final film renders — not because they’re faster, but because accuracy beats speed when every photon counts. Discover why GPUs, despite their power, aren’t perfect for cinematic-quality frames.