Nepedia
Back to Discover
Fluent Reader
💻

Endianness

technology Maturity 11-13 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Computers store information in groups of bits. Most computers use groups called bytes, which are eight bits long. Sometimes, a computer must store a much larger group of data. This larger group might contain four bytes, which is called a 32-bit word. To keep things organized, the computer must decide the order of these bytes in its memory. This way of ordering bytes is known as endianness.

32bit-Endianess
32bit-Endianess

There are two main ways to handle this task. In a big-endian system, the computer stores the most significant byte at the smallest memory address. This means the most important part of the data comes first. This is very similar to how we write numbers in English. We write the largest part of a number on the left side. In a little-endian system, the computer does the opposite. It stores the least significant byte at the smallest address.

32bit-Endianess
32bit-Endianess

The funny names for these systems come from a famous book. The book is called Gulliver's Travels by Jonathan Swift, written in 1726.

Gullivers travels
Gullivers travels

In a story in the book, people have a huge argument. They fight about how to break the shell of a boiled egg. Some people insist on breaking the big end of the egg. These people are called Big-Endians. The people who break the little end are called Little-Endians. Danny Cohen used these terms for computers in a note from 1980.

Different types of technology use different orders. Big-endian is the main order used for internet rules. This is often called network order. Many computer processors use little-endian instead. This includes the x86 processors and most ARM implementations. Some special computers are called bi-endian. These machines can switch between both ways of storing data. Other systems might use a middle-endian or mixed-endian order.

32bit-Endianess
32bit-Endianess

Understanding endianness helps us see how machines talk to each other. If a little-endian computer sends data to a big-endian computer, the bytes might look backwards. For example, a name like "JOHN" might look like "NH OJ" on a little-endian machine. Engineers use a process called byte swapping to fix this. This rearranges the bytes so the information is correct. It is like turning a word around so it makes sense again.

32bit-Endianess
32bit-Endianess
377 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:32bit-Endianess.svg
32bit-Endianess.svg
File:Gullivers_travels.jpg
Gullivers_travels.jpg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.