Paste a hex value such as 0x12345678 or DEADBEEF and see the bytes laid out in memory both ways. Shows what the same bytes are worth read big-endian and little-endian, signed and unsigned, at 16, 32 or 64 bits.
Big-Endian
0xDEADBEEF
= 3735928559 unsigned
Little-Endian
0xEFBEADDE
= 4022250974 unsigned
Memory Layout (addresses increase to the right; matching colours are the same byte)
Big-endian — most significant byte first
+0
MSB
+1
+2
+3
LSB
Little-endian — least significant byte first
+0
LSB
+1
+2
+3
MSB
Bits
11011110101011011011111011101111
Byte Detail
| Offset | Hex | Dec | Binary | ASCII |
|---|---|---|---|---|
| +0 | 0xDE | 222 | 11011110 | . |
| +1 | 0xAD | 173 | 10101101 | . |
| +2 | 0xBE | 190 | 10111110 | . |
| +3 | 0xEF | 239 | 11101111 | . |
Offsets are big-endian positions; little-endian stores them in the reverse order.
marduc812
© 202620260824_1c411cc