ELF Executable Magic Bytes (7F 45 4C 46)
Executable and Linkable Format (ELF) is the standard binary format for executables, shared libraries (.so), object files (.o) and core dumps on Linux, Android NDK, FreeBSD and embedded firmware. Every ELF binary starts at byte 0 with 7F 45 4C 46 (0x7F followed by ELF in ASCII).
Signature & identification summary
| Detected format name | ELF executable |
|---|---|
| Hexadecimal magic bytes | 7F 45 4C 46 |
| ASCII / marker preview | .ELF |
| Byte offset | 0 |
| MIME type | application/x-executable |
| Common extensions & aliases | .so, .elf, .bin, .o |
Check whether your file really is ELF.
Drop any file into File Sniff’s free local browser checker to verify its 7F 45 4C 46 signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
Bytes 4–7 immediately reveal the target architecture traits: byte 4 is 01 (32-bit) or 02 (64-bit), byte 5 is 01 (little-endian) or 02 (big-endian), and byte 18 (e_machine) identifies x86-64 (0x3E), AArch64/ARM64 (0xB7) or RISC-V (0xF3). Unix executables conventionally carry no filename extension at all.
Extension mismatches & common pitfalls
If an unfamiliar email download or archive attachment has 7F 45 4C 46 at offset 0, treat it as compiled native code—never mark it chmod +x or run it on a Linux host or container without verification.
Which apps open ELF files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Inspect only (file, otool/llvm-objdump, Hex Viewer; does not run natively on macOS) |
| iPhone & iPad | Inspect only |
| Windows | WSL2 (Linux subsystem) or inspect safely with Hex Viewer / WSL readelf |
Free local tools & related guides
- Check whether a file really is ELF
- Inspect raw bytes in the Hex Viewer
- Guide: How to identify an unknown file type
- Guide: File Signatures & Magic Bytes Guide
Inspect files & folders natively
on Mac, iPhone & iPad.
The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.