← All tools

Endianness Converter

Convert between a sequence of hex bytes and an integer under big-endian (most-significant byte first, network order) and little-endian (least-significant byte first, x86/ARM native) byte orders. Also byte-swaps a hex string. Useful for reverse engineering, binary parsing, and reading multi-byte fields out of memory dumps. Everything runs locally in your browser.

Input

Hex bytes
Spaces, 0x prefixes, and upper/lower case are ignored. The byte order you type is the in-memory order.

Result

Big-endian reads the first byte as the most significant (e.g. 0A 0B 0C 0D0x0A0B0C0D = 168496141); it is the "network order" used by TCP/IP and most file formats. Little-endian reads the first byte as the least significant (e.g. 0A 0B 0C 0D0x0D0C0B0A = 218893066), the native order of x86 and most ARM CPUs, so a 4-byte int stored in memory on those machines appears reversed when read as big-endian. The byte-swap reverses the in-memory byte order. When converting an integer to bytes, "auto" uses the minimum number of bytes needed to hold the value; a fixed width left-pads with zero bytes (big-endian) or right-pads (little-endian), and an error is shown if the value needs more bytes than the width allows. Pairs with the Hex Viewer and Base Converter tools. Everything runs locally — nothing leaves your browser.