Endianness Swapper
Swap byte order between big-endian and little-endian with a visual byte-order diagram. See decimal interpretations in both byte orders instantly.
How to Use
Enter a hex value in the input field. The tool automatically pads or truncates your input to the selected bit width (16, 32, or 64 bits).
The visual diagram shows the byte order before and after the swap. Decimal values are computed for both big-endian and little-endian interpretations. Use the copy buttons to grab any output value.
Supported input formats:
DEADBEEF— raw hex bytes0xDEADBEEF— hex with 0x prefixDE AD BE EF— space-separated hex bytes
What is Endianness?
Endianness describes the order in which bytes of a multi-byte value are stored in memory or transmitted over a network.
- Big-Endian (BE) — the most significant byte is stored at the lowest memory address. Network protocols (TCP/IP) and many file formats use big-endian byte order, often called "network byte order."
- Little-Endian (LE) — the least significant byte is stored at the lowest memory address. x86, ARM (in default mode), and most modern desktop processors use little-endian byte order.
For example, the 32-bit value 0xDEADBEEF is stored as bytes DE AD BE EF in big-endian, but as EF BE AD DE in little-endian.
BLE (Bluetooth Low Energy) uses little-endian byte order for most multi-byte fields in GATT characteristics, advertisement data, and UUIDs. When reading raw BLE data, you often need to swap bytes to interpret values correctly on a big-endian host or when comparing against protocol specifications.