Endian ConverterByte order, made visible
Same value. Two byte orders. A clear view of memory.
Integer: decimal or 0x / 0b / 0o. Byte array: 12 34 56 78 or {0x12, 0x34, 0x56, 0x78}. Use exactly width / 8 bytes in ascending address order.
The address is a visual label, not a pointer to your device memory. Each cell is one 8-bit byte.
Big Endian
Most significant byte at the lowest address.
C byte array
Little Endian
Least significant byte at the lowest address.
C byte array
Decode bytes with intent.
- Choose a register width and enter an unsigned integer or an exact-length hex byte array.
- For a byte array, select how the bytes should be interpreted. Integer input has no inherent endianness.
- Compare both layouts at ascending memory addresses. Copy an array to serialize without depending on host byte order.
Example: 0x12345678 is 12 34 56 78 in big endian, and 78 56 34 12 in little endian. Byte Swap changes the value to 0x78563412. An 8-bit value does not change.
Bytes in memory. Bits on a wire.
Endianness describes the byte order of a multi-byte value in memory or a serialized stream. MSB First / LSB First describes the bit transmission order within a protocol transfer, such as SPI. These are separate choices: a little-endian MCU can transmit each byte MSB first.
This tool reverses byte order only. It never reverses the bits inside a byte. C arrays contain explicit bytes and require C99+ with uint8_t.
Continue in another tool
Transfers the current unsigned value and width to a new same-origin tab through memory only. SPI sends the first TX frame, zero-extended to 8/16/32 bits, and accepts up to 32 bits. No values are added to URLs or saved.