WebAssembly Magic Bytes (.wasm — 00 61 73 6D)
WebAssembly (Wasm, W3C standard) is a portable, sandboxed binary instruction format executed by modern web browsers and standalone WASI runtimes. Every compiled WebAssembly module starts with the 4-byte magic 00 61 73 6D (\0asm) followed by the 4-byte little-endian version 01 00 00 00.
Signature & identification summary
| Detected format name | WebAssembly binary |
|---|---|
| Hexadecimal magic bytes | 00 61 73 6D 01 00 00 00 |
| ASCII / marker preview | .asm.... |
| Byte offset | 0 |
| MIME type | application/wasm |
| Common extensions & aliases | .wasm |
Check whether your file really is WebAssembly.
Drop any file into File Sniff’s free local browser checker to verify its 00 61 73 6D 01 00 00 00 signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
After the 8-byte preamble, a Wasm module is a sequence of LEB128-sized numbered sections (Type, Import, Function, Memory, Export, Code, Data and Custom debug/name sections). Browsers require application/wasm MIME headers for streaming compilation (WebAssembly.instantiateStreaming).
Extension mismatches & common pitfalls
If a server misconfigures Content-Type or returns an HTML 404 page instead of a .wasm binary, the browser fails because the first bytes are <!DOCTYPE (3C 21 44 4F) instead of 00 61 73 6D.
Which apps open WebAssembly files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Modern browsers, Node.js, Wasmtime, Wasmer, wasm2wat (WABT) |
| iPhone & iPad | Safari WebAssembly runtime |
| Windows | Modern browsers, Node.js, Wasmtime, Visual Studio Code WebAssembly extensions |
Free local tools & related guides
- Check whether a file really is WebAssembly
- Inspect raw bytes in the Hex Viewer
- 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.