Executable File Inspector
Drop an ELF, Mach-O or PE binary and read its architecture, 32 or 64 bit, linked libraries, segments and entry point from the headers, with nothing executed.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Executable File Inspector?
Drop an executable, an ELF from Linux, a Mach-O from macOS (universal binaries included), or a Windows PE, and read what its headers state: format, architecture, 32 or 64 bit, endianness, file type, the libraries it links, its segments or sections by size, the entry point, and for Mach-O the minimum OS version. The file is parsed in your tab and never uploaded, and nothing in it runs.
This is the question the file command answers, plus the first page of readelf -h, otool -L and dumpbin /imports, on a machine that has none of them: a CI artifact on a laptop, a binary from a container image, an attachment someone asked "is this 64-bit?" about. Headers carry those answers in the first kilobytes, which is why reading them needs no execution and no disassembler.
Headers only is the design, not a shortcut. No disassembly, no symbol dumps, no signature or entitlement checks: those need real tooling (objdump, codesign, Ghidra) and often the platform itself. What headers reliably give is identity and shape, and misidentifying a binary is the mistake this page exists to prevent, down to telling a Java .class file from a Mach-O universal binary when both start CA FE BA BE.
- ELF, Mach-O (including universal/fat with all slices) and PE in one drop target
- Architecture, 32/64 bit, endianness and file type from the format's own tables
- Linked libraries: DT_NEEDED, LC_LOAD_DYLIB (weak and re-export included) and the PE import directory
- Segments and sections with byte sizes, entry point, ELF interpreter path
- Mach-O minimum OS from LC_BUILD_VERSION; ELF stripped-or-not from the section table
- Java class files told apart from CAFEBABE fat binaries instead of being misread
- Headers only by design: nothing is executed, disassembled or uploaded
Updated
How to use the Executable File Inspector
- Drop the file, with or without an extension: ELF and Mach-O binaries usually have none, and that is fine.
- Or press Load a sample to read a minimal 512-byte ELF64 executable that links libc.so.6, the same bytes pinned in this site's test suite.
- Read the identity line per slice: architecture, bit width, endianness and file type. A universal Mach-O shows one panel per architecture slice.
- Check the libraries list when the question is "what does this need at runtime": every name there must resolve on the target machine, so a libssl.so.1.1 entry on a distro that ships 3.x is your missing-library error before you hit it.
- Use the segment or section sizes to see the shape: a huge LOAD or .rdata is baked-in data, and an entry point of 0 on an ELF usually means a shared library rather than a program.
Worked examples
The sample ELF, header by header
Input
The built-in 512-byte ELF64 sample
Output
ELF · x86_64 · 64-bit little-endian · executable · entry 0x401000 · links libc.so.6 · LOAD 512 B, DYNAMIC 64 B
Byte 4 = 2 makes it 64-bit, byte 5 = 1 little-endian, e_type 2 an executable, e_machine 62 x86_64, all per the gABI tables. The libc.so.6 name is a DT_NEEDED offset resolved through DT_STRTAB, exactly the walk the runtime loader does first.
A macOS universal binary
Input
/bin/ls from a modern Mac
Output
Mach-O universal · 2 architectures: x86_64 and arm64e, each with its libraries and segments
The CAFEBABE header lists slice offsets; each slice is a full Mach-O. arm64e is arm64 with pointer authentication, reported the way the file command reports it. The test suite checks this parser against /bin/ls and expects the x86_64 slice to link /usr/lib/libSystem.B.dylib.
A Windows DLL and its imports
Input
Any PE with the DLL characteristic set
Output
PE · x86_64 · 64-bit · DLL · imported DLLs listed from the import directory
Bit 0x2000 of the COFF characteristics marks a DLL per the PE spec. The imported names (KERNEL32.dll and friends) come from the import table, the data directory entry after exports, each name resolved through the section table from virtual addresses to file offsets.
The CAFEBABE collision, resolved
Input
A Java .class file dropped by mistake
Output
This is a Java class file (same CAFEBABE magic as a fat binary, but with a version where the arch count would be).
Both formats begin CA FE BA BE. A fat binary follows with a tiny architecture count; a class file has its version there, far too large to be one. Disambiguating by that field is how the inspector avoids reading bytecode as CPU slices.
Background and insight
Each format announces itself in the first bytes. ELF starts 7F 45 4C 46 ("\x7fELF"), with byte 4 picking 32 or 64 bit and byte 5 the byte order, per the System V gABI. Mach-O starts FEEDFACE (32-bit) or FEEDFACF (64-bit), read in either byte order; a universal binary starts CAFEBABE with a big-endian header holding one slice per architecture, per Apple's mach-o headers. PE keeps the DOS-era MZ at byte 0, a pointer at 0x3C to the PE\0\0 signature, then the COFF header, per the Microsoft PE format specification.
The library list comes from where each format keeps it. ELF stores DT_NEEDED entries in the PT_DYNAMIC segment, each an offset into the dynamic string table, which this parser maps back through the LOAD segments to file offsets. Mach-O records one LC_LOAD_DYLIB load command per linked library, with weak and re-exported variants read too. PE names imported DLLs in the import directory, the second entry of the optional header's data directory table. In every case these are the loader's inputs: a library named there must resolve at load time or the binary does not start.
Two readings deserve care. ELF type 3 is officially "shared object", but position-independent executables use the same type, so .so and a modern PIE binary look alike at the header; the label here says both. And "stripped" on this page means the ELF has no .symtab section (type SHT_SYMTAB), the table strip removes; the dynamic symbol table is separate, so a stripped binary still resolves its imports fine. For Mach-O, the minimum OS comes from the LC_BUILD_VERSION load command, nibble-encoded as x.y.z.
Common use cases
Is this binary 32-bit or 64-bit, and for what CPU?
The question behind most "exec format error" failures, answered from the header without a shell on the target: x86_64 binaries do not run on arm64 hosts without emulation, and the identity line says which you have.
What will this need installed at runtime?
The linked-library list is the dependency manifest the loader will enforce: check it against the target image before deploying instead of after the crash loop.
Verifying a release artifact
Confirm the CI output is the architecture, type and min-OS you meant to ship, and that debug symbols were actually stripped, before the artifact goes to customers.
A binary of unknown provenance
Reading headers runs nothing, so format, architecture, linked libraries and segment shape are safe first facts for a file you would never execute; deeper inspection belongs in a sandbox with real analysis tools.
Teaching the formats
The same program compiled on three OSes drops into three different layouts; comparing the panels side by side is a compact lesson in what loaders read.
Tips and limitations
- ELF "shared object" covers PIE executables too: compilers emit position-independent executables as type 3, so do not read that label as "this is a library". An INTERP segment naming the dynamic linker is the tell that it is a program.
- Stripped here means no .symtab. The dynamic symbol table (.dynsym) survives stripping and keeps imports working, so a stripped binary is harder to debug, not broken.
- Mach-O min OS comes from LC_BUILD_VERSION; a binary built for 13.0 refuses to launch on 12.x with a version error that this field predicts. Older binaries may use the earlier version-min commands, which show here only as the command absence.
- PE entry points and section names are conventions, not guarantees: packers rename sections freely. A PE whose sections are one giant unnamed blob plus a tiny stub has the shape of a packed binary, which is a reason for a sandbox, not this page.
- An entry point near 0x401000 on x86_64 ELF marks a traditional non-PIE layout; PIE binaries show low entry addresses that are offsets, not absolute addresses, because the loader relocates them.
- Library lists are load-time only. Anything opened with dlopen, LoadLibrary or their equivalents at runtime is invisible to headers, so a short list does not mean a small dependency surface.
Sources and further reading
- System V gABI: ELF Header, SCO (System V gABI). e_ident class and data bytes, e_type and e_machine tables this parser reads
- elf(5): format of ELF files, Linux man-pages project. Header, program header and section header layouts, including the 64-bit offsets
- mach-o/loader.h, Apple xnu on GitHub. MH_MAGIC values, file types, LC_LOAD_DYLIB, LC_MAIN and LC_BUILD_VERSION
- PE Format, Microsoft. The 0x3C pointer, COFF header, optional header magics, data directories and section table
Frequently asked questions
How can I tell what architecture a binary is for without running it?
The header states it. ELF carries e_machine (62 is x86_64, 183 is ARM64 in the gABI registry), Mach-O a cputype per slice, PE a machine field (0x8664, 0xAA64). This inspector reads those fields and prints the name, which is how the file command knows too; no execution is involved.
How do I list the shared libraries an executable links?
From the headers: ELF keeps DT_NEEDED entries in its dynamic segment, Mach-O one LC_LOAD_DYLIB command per library, PE the imported DLL names in its import directory. This page prints each list, which is what ldd, otool -L and dumpbin /imports print, minus ldd's recursive resolution, and without running loader code.
What is a Mach-O universal (fat) binary?
A container starting CAFEBABE whose big-endian header lists one complete Mach-O per architecture, so one file runs natively on Intel and Apple Silicon. Each slice has its own libraries, segments and min-OS, which is why this inspector shows one panel per slice rather than merging them.
How do I check whether an ELF binary is stripped?
Look for a .symtab section: strip removes it, and this inspector reports "stripped" when no section of type SHT_SYMTAB exists. The dynamic symbol table is a separate section that survives, so stripped binaries still link and run; what you lose is names for debugging and profiling.
Why does an executable show as "shared object (or PIE executable)"?
Because ELF uses type 3 for both. The gABI calls it a shared object file, and position-independent executables, the default on modern distros, are emitted with the same type so the loader can relocate them. An INTERP segment naming the dynamic linker usually marks the PIE case.
Is it safe to inspect a suspicious executable here?
Reading headers executes nothing: the parser decodes a few structures from a byte array in your tab, and the file is never uploaded. That makes identity facts safe to collect. It is not malware analysis; packed or crafted binaries can lie in ways only sandboxed dynamic analysis reveals, so treat the output as shape, not verdict.
Can this show me the functions or disassembly inside a binary?
No. Symbol tables, disassembly and decompilation are deliberately out: they need platform tooling (objdump, otool, dumpbin) or a full reverse-engineering suite like Ghidra. Headers answer what a file is, what it links and how it is laid out; what the code does is a different and much bigger question.
Is there an in-depth guide to the Executable File Inspector?
Yes. “How to Read Binary Files Without Running Them” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.