Open WASM files in your browser
Code compiled for browsers and runtimes, in one file. See what a module imports and exports, its functions and what built it, right here, without running it. Nothing leaves your device.
Or drop it anywhere on this page
What you'll see
Your module opens as what it imports, exports and holds, read without running any of it.
- Imports and exports • Each with its type
- Every function • Its name and size
- Memory, tables, globals and data • The text in it
- Nothing in it runs • Read as data only
About WASM
A .wasm file is a WebAssembly module: code compiled from Rust, C, C++, Go, Zig or AssemblyScript into a compact binary that browsers, Node.js, Deno and runtimes such as Wasmtime and Wasmer run at close to native speed. Websites load them for games, photo and video editors, PDF tools and codecs.
A module is a list of sections: its functions' types, what it imports from its host, its functions' code, its memory, tables and globals, what it exports and the data it starts with. Custom sections add its functions' names and the tools that built it, and a component of the component model wraps core modules in interfaces of its own.
Filepeek reads every section without running anything: what the module imports and exports with their types, each function by its name and size, its memory, tables and globals, its data and the text in it, the features it needs and the compiler its producers section names.
WebAssembly module
.wasm
Format
- MIME type
- application/wasm
- Made by
- The W3C's WebAssembly group
- Released
- 2017
Inside the file
- Format
- WebAssembly binary
- Holds
- Functions, memory, tables, data
- Names
- Its name section, when kept
- Standard
- W3C WebAssembly Core
Opens in every browser
Filepeek shows a WebAssembly module's imports, exports and functions in Chrome, Edge, Firefox and Safari. On their own, browsers run the modules a page loads, but download a .wasm file opened by itself.
- YouChromeOpens through Filepeek
- YouEdgeOpens through Filepeek
- YouFirefoxOpens through Filepeek
- YouSafariOpens through Filepeek
Apps that open WASM
- WindowsNo app opens it • wasm2wat or Wasmtime read it in a terminal
- MacNo app opens it • wasm2wat or Wasmtime read it in Terminal
- iPhone and iPadNo app opens it
- AndroidNo app opens it
Questions
Does opening a .wasm file run it?
No. Filepeek reads its sections as data: nothing in the module runs, and it never leaves your device.
Which language was it written in?
Its producers section often says, with the compiler and its version, like rustc, clang or Emscripten. Filepeek shows them under Built with, and the names in its name section often give the language away too.
Why do its functions have numbers instead of names?
A module built for release usually has its name section stripped, which leaves each function only its index. Its exports keep their names, since the host calls them by name.
How do I turn a .wasm file into readable text?
wasm2wat from the WebAssembly Binary Toolkit writes it in WebAssembly's text format, and wasm-tools print does the same. Filepeek shows its structure: imports, exports, functions and data.