Tools / Endianness Converter
Endianness Converter
Paste hex bytes and see them in both big-endian and little-endian order side by side. Choose a word size (16, 32, or 64 bit) to control how bytes are grouped before swapping. The visual byte layout shows exactly how the data appears in memory.
Word size
Byte layout
Big-endian (network order)
Little-endian (x86 memory)
Conversion results
How it works
Endianness describes the order in which bytes of a multi-byte value are stored in memory. Big-endian (network byte order) stores the most significant byte first. Little-endian (used by x86/x64 and ARM in default mode) stores the least significant byte first.
For example, the 32-bit value 0xDEADBEEF is stored as DE AD BE EF in big-endian but as EF BE AD DE in little-endian. Getting this wrong is one of the most common mistakes in binary exploitation challenges.
In CTF challenges, endianness matters when constructing payloads for buffer overflow exploits (addresses must be written in little-endian on x86), reading values from memory dumps or core files, and repairing corrupted file headers where multi-byte fields like width and height are stored in a specific byte order.
Use this alongside the Number Base Converter to convert between hex and other bases, or the ASCII Table to decode individual bytes to characters. The Timestamp Converter is useful when you encounter a little-endian encoded timestamp in a binary file.
Network protocols (TCP/IP) use big-endian, so when analyzing packet captures you typically read multi-byte fields as-is. But when examining process memory or stack dumps on an x86 machine, every multi-byte value is little-endian. If you see 41 42 43 44 on the stack, the 32-bit integer value is actually 0x44434241 ("DCBA" in ASCII, not "ABCD").
Challenges where it helps
- endianness-v2picoCTF 2024 · Forensics · Medium
- ARMssembly 0picoCTF 2021 · Reverse Engineering · Medium
- ARMssembly 1picoCTF 2021 · Reverse Engineering · Medium
- ARMssembly 2picoCTF 2021 · Reverse Engineering · Hard
- ARMssembly 3picoCTF 2021 · Reverse Engineering · Hard
- ARMssembly 4picoCTF 2021 · Reverse Engineering · Hard
- riscy businesspicoMini by redpwn · Reverse Engineering · Hard
- Bit-O-Asm-1picoGym Exclusive · Reverse Engineering · Medium
- Bit-O-Asm-2picoGym Exclusive · Reverse Engineering · Medium
Guides that use this tool
- Reversing Custom VMs for CTF: Find the Dispatch Loop, Write the EmulatorRecognize a hand-rolled bytecode interpreter inside a binary, recover its opcode table, write a disassembler and emulator in Python, then solve the program it runs.
- Patching Binaries, Cracking Crackmes, and Writing Keygens for CTFBeat a password-checking binary four ways: read the check, steal the answer from RAM, patch the branch, or write a keygen. Plus UPX unpacking and anti-debug bypass.
- The picoCTF Reverse Engineering Roadmap: From Disassembly to DecompilerHow to learn reverse engineering for CTF: an ordered, difficulty-tiered path through assembly, Ghidra, GDB, Frida, per-language reversing, and solver automation.
- The picoCTF Binary Exploitation Roadmap: Stack to Heap to ROPHow to learn binary exploitation for CTF in order: a beginner-to-advanced pwn roadmap from x86 assembly and gdb through stack smashing, mitigations, ROP, and heap.
- SROP and ret2dlresolve: Advanced ROP Without a libc LeakA byte-level deep dive on SROP and ret2dlresolve: the sigreturn frame layout, rt_sigreturn, forging Elf64_Rela and Elf64_Sym, the symbol-index math, and pwntools.
- Use-After-Free for CTF: Dangling Pointers and tcacheUse-after-free for CTF: turn a dangling pointer into a shell. Read freed chunks for heap and libc leaks, tcache poisoning, hook targets, and double-free bypass.
Tools that pair with this one
- Hex ViewerView text or raw hex bytes as a xxd-style hex dump with byte offset, hex columns, and ASCII sidebar. Highlights printable characters and null bytes.
- Number Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal instantly. Enter any value and see all four bases update in real time.
- Binary to Hex ConverterNormalize binary strings and convert them instantly to hexadecimal, decimal, and octal.
- pwntools Payload BuilderPack integers into little-endian bytes (p32 / p64), unpack bytes back to integers, and build flat ROP payloads with offset-based insertion.
Or browse all 40 CTF tools.