A WebAssembly module is a compact binary, but it is not opaque. Its structure is laid out in numbered sections: the types it uses, the functions it imports from its host, the functions and memory it exports, its data segments, and often custom sections that say which compiler produced it and what the functions are called. Most of what you want to know about an unfamiliar .wasm file can be read from that structure without running a single instruction.
This tool reads it inside your browser. Choose a .wasm file and you get a structured report straight away. If you want the full text format, one click converts the module to WAT. The file is never uploaded.
How to use
- Get the
.wasmfile: from your build output, from an npm package, or from the DevTools Network tab (filter by Wasm, then save the response). - Drop it onto the drop zone above or press Choose a file. The report appears straight away; press Generate WAT when you want the text format.
- Read the exports first (the functions the JavaScript side calls), then the imports, the section sizes, the toolchain evidence and the largest function bodies.
Real example output
We opened workerd/xxhash.wasm from the xxhash-wasm npm package, pressed Generate WAT and copied what the page displayed. Layout condensed (label and value on one line, tables re-aligned, empty columns and buttons left out); every value is verbatim.
Sample: xxhash.wasm (3,105 bytes, SHA-256 70c5a91a…3c2a) from the xxhash-wasm 1.1.0 npm package (MIT), fetched 2026-11-02 (www.npmjs.com/package/xxhash-wasm/v/1.1.0)
Module summary
File size 3.0 KB
Version 1
Types 8
Functions 0 imported, 10 defined
Code 10 bodies, 2.9 KB
Named functions 0
Memories min 1
Data segments 0 segments, 0 B
Detected toolchains None
Producers section None
Sections (5)
ID Name Offset Size
1 type 0xa 48 B
3 function 0x3c 11 B
5 memory 0x49 3 B
7 export 0x4e 85 B
10 code 0xa6 2.9 KB
Exports (9)
Name Kind Index Type
mem memory 0
xxh32 func 0 (i32, i32, i32) -> (i32)
init32 func 2 (i32, i32) -> ()
…
xxh64 func 5 (i32, i32, i64) -> (i64)
…
digest64 func 9 (i32) -> (i64)
Largest function bodies
Index Size
8 628 B
3 579 B
5 511 B
…
WAT text
(module
(type $t0 (func (param i32 i32 i32) (result i32)))
…
(func $xxh32 (type $t0) (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
(local $l3 i32) (local $l4 i32) (local $l5 i32) (local $l6 i32)
local.get $p0
local.get $p1
i32.add
…What it does
Input. A .wasm file up to 256 MiB for the analysis report, and up to 32 MiB for the WAT conversion. Only core WebAssembly modules (binary version 1) are supported. Component Model components are not.
Analysis report. A small binary parser written for this page reads the module structure. It does not execute the module and does not decode function bodies. The report contains:
- Module summary: file size, binary version, and the number of types, imported functions, defined functions, tables, memories, globals, tags, the start function, element segments and data segments.
- Section table: every section with its id, name, byte offset and size, including custom sections such as
name,producersandtarget_features. - Imports and exports: full tables of what the module needs from its host and what it offers to it. Import module names alone often reveal the environment, for example
wasi_snapshot_preview1orenv. - Toolchain detection: a best guess among Rust, wasm-bindgen, Emscripten, Clang, Go, TinyGo, AssemblyScript, WASI, .NET and Zig, with the evidence each guess is based on (an import name, an export pattern, a
producersentry). - Producers and target features: the contents of the
producersandtarget_featurescustom sections when present. - Post-MVP features: features that are visible from the module structure, such as multiple memories, tags for exception handling or particular import and type forms.
- Largest functions: the 20 function bodies with the largest byte size, with names taken from the
namesection when the module has one. - Warnings: sections the parser could not decode are reported as warnings rather than silently skipped.
WAT conversion. The Generate WAT button converts the module into the WebAssembly text format. Only when you click does the page load wabt.js 1.0.39 (about 218 KB gzipped; the wabt WebAssembly binary is embedded in the script as base64). The output is shown in a <pre> block that you can copy or download as a .wat file. All features wabt supports are enabled, including SIMD, threads, GC, memory64 and exceptions, and the name section is used to generate readable names. Output longer than 5 million characters is truncated, with a notice; for anything bigger, use the download or the command line tools below.
How it works
The WebAssembly binary format starts with the magic bytes \0asm and a 4-byte version, followed by sections. Each section has a one-byte id and a LEB128-encoded size, so a parser can walk from one section to the next without understanding what is inside. The page’s parser does exactly that to build the section table, then decodes the sections that describe the module’s shape: types, imports, functions, tables, memories, globals, exports, start, elements, data count, tags, and the custom sections name, producers and target_features. For the code section it reads only the size of each function body, which is how it ranks the largest functions. It never interprets instructions.
Toolchain detection is a set of rules over that data. Each toolchain leaves recognizable fingerprints: wasm-bindgen adds characteristic imports and exports, Emscripten imports helpers from env, Go’s runtime imports from gojs, WASI modules import from wasi_snapshot_preview1, and many compilers name themselves in the producers section. The report lists the matched evidence so you can judge each guess.
The WAT conversion uses wabt’s reader and text writer, the same code as the wasm2wat command line tool.
How your file stays private
The file is never uploaded:
- The analyzer runs in a separate frame served from
rea-reverse.com, and the analysis runs in a Web Worker inside it, on your device. The worker’s Content Security Policy isconnect-src 'none', so the browser does not allow it to make any network request at all. - The analysis report works offline once the page has loaded.
- The wabt script for WAT conversion is downloaded from
rea-reverse.comonly when you click Generate WAT. If you load the page, go offline, and then click it for the first time, the conversion fails. This is a deliberate trade-off: most visitors only need the report, and they should not have to download about 800 KB of tooling they never use. - This page shows one ad, below the article. The ad script runs on
tools.rea-reverse.com; the frame is a different origin, so the browser does not let the ad script, or any other script on this page, read the file you choose or the results. - The frame’s Content Security Policy blocks every request its scripts could make (
connect-src 'none', no third-party resources at all). The frame cannot open windows or navigate this page by itself; only a link you click in the report can open a page. The only things it passes to this page are its height and the analytics events below. - Analytics events are
wasm_analyzeandwasm_wat. They carry success or an error code, a size bucket and a duration bucket. They never contain the file name or any file content. The frame hands them to this page, which sends them. The full list is on the privacy page. - Prefer no ads and no analytics at all? Open the analyzer on its own page.
How to verify this yourself
- Open your browser’s developer tools on the Network tab and load this page. Requests to
rea-reverse.comare the frame: its HTML, styles, fonts and scripts, and the worker script/_astro/wasm-worker-*.js. Requests to Google domains are the ad on this page. - Clear the log, then choose a file, run the analysis, and generate WAT if you like. Type
domain:rea-reverse.comin the filter box: the only new requests are a fresh worker, started for the next file, and, after you click Generate WAT, the wabt script/_astro/wasm-worker-chunk-*.js, all fromrea-reverse.com. None of them carries your file. Ad requests may continue, but they come from this page and carry nothing from the frame. - Click the
wasm-to-wat/document fromrea-reverse.comand open Headers: itsContent-Security-Policyhasconnect-src 'none', andframe-ancestors https://tools.rea-reverse.com. In Chrome, Application > Frames also shows the frame’s origin and policy. The worker runs underdefault-src 'none'; script-src 'self' 'wasm-unsafe-eval'; connect-src 'none'. - Check the isolation: in the Console, with the context set to
top, rundocument.getElementById('tool-frame').contentDocument. It returnsnull.frames[0].documentthrows aSecurityError. That is what the ad script gets too. - Or load the page, go offline, and run the analysis. It still works; only the first Generate WAT needs the network.
Limitations
- No decompilation to a high-level language. You get structure and WAT, not C, Rust or JavaScript.
- WAT is long. Even small modules produce thousands of lines, and the text format is close to the instruction level. Use the report to decide where to look first.
- No validation. wabt reads the module and writes text but does not run its validator, so an invalid module may still convert. A successful conversion is not a statement that the module is valid.
- No Component Model. Components (the newer layered format) are not supported; only core modules, version 1.
- No names in stripped modules. Minified or obfuscated modules usually have no
namesection, so functions appear as indexes only. - No runtime behavior. The module is never executed, so anything decided at runtime, such as which imports are actually called or what data is fetched, is not visible.
- Toolchain detection is heuristic. It is based on fingerprints and can miss or misattribute a toolchain, especially in post-processed modules.
Compliance
Use this tool on modules you built, modules you are authorized to examine, or modules that are publicly distributed, for example to check what a web page you visit loads. Respect the licenses of the software you analyze and the laws that apply to you, including any terms that restrict reverse engineering. The tool gives no advice on bypassing licensing, DRM or other protections.
Command-line equivalent
The same checks with wabt 1.0.39, run here through the wabt npm package's wasm-objdump and wasm2wat (a native wabt build takes the same arguments). Section headers, matching the Sections table:
$ wasm-objdump -h xxhash.wasm
xxhash.wasm: file format wasm 0x1
Sections:
Type start=0x0000000a end=0x0000003a (size=0x00000030) count: 8
Function start=0x0000003c end=0x00000047 (size=0x0000000b) count: 10
Memory start=0x00000049 end=0x0000004c (size=0x00000003) count: 1
Export start=0x0000004e end=0x000000a3 (size=0x00000055) count: 9
Code start=0x000000a6 end=0x00000c21 (size=0x00000b7b) count: 10$ wasm-objdump -x -j Export xxhash.wasm
…
Export[9]:
- memory[0] -> "mem"
- func[0] <xxh32> -> "xxh32"
- func[2] <init32> -> "init32"
- func[3] <update32> -> "update32"
- func[4] <digest32> -> "digest32"
- func[5] <xxh64> -> "xxh64"
- func[7] <init64> -> "init64"
- func[8] <update64> -> "update64"
- func[9] <digest64> -> "digest64"The page's WAT is the same as wasm2wat --generate-names; without that flag wabt numbers types and functions ((;0;)) instead of naming them:
$ wasm2wat --generate-names xxhash.wasm -o xxhash.wat$ head -11 xxhash.wat
(module
(type $t0 (func (param i32 i32 i32) (result i32)))
(type $t1 (func (param i32 i32 i32)))
…
(type $t7 (func (param i32) (result i64)))
(func $xxh32 (type $t0) (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
(local $l3 i32) (local $l4 i32) (local $l5 i32) (local $l6 i32)FAQ
How do I convert WASM to WAT online without uploading the file?
Drop the .wasm file here and press Generate WAT. The module is read in your browser; the only extra request is the wabt.js script, loaded from this site the first time you press the button. The file itself is never sent anywhere.
Is this a WASM decompiler?
No. WAT is the text form of the same instructions, not reconstructed C, Rust or JavaScript. The report helps you decide where to look; for pseudo-code, wabt also ships a wasm-decompile command you can run locally.
Why are function names missing?
Names come from the name custom section, which release builds often strip. The WAT still names exported functions after their exports, as with $xxh32 above; everything else is shown by index.
Why did Generate WAT fail while I was offline?
The wabt script is only fetched when you first press the button. If the page lost the network before that, it cannot be loaded. Reconnect and try again; the analysis report itself does not need it.
Can I open a Component Model .wasm?
No. Only core modules with binary version 1 are supported. A component has a different layer value in its header and is rejected.
The WAT output says it was truncated. How do I get the full text?
Use the Download .wat button, or run wasm2wat module.wasm -o module.wat locally. The on-page view stops at 5 million characters to keep the browser responsive.
Updated
Related guides
- WASM to WAT: Inspect a WebAssembly Module in Your Browser: a walkthrough of this report and its WAT output on a small Rust module, with the matching wabt commands.
- Unminify and Recover JavaScript Source from Bundles with REA: WebAssembly usually arrives with a JavaScript loader; this guide covers the bundle side.
- Reverse Engineer an Electron App with REA: ASAR, Preload, IPC: desktop apps built on Electron often ship
.wasmmodules inside their ASAR archive. - Free Native Binary Analysis with REA and Ghidra, Step by Step: when the same library is also shipped as a native binary, analyze it there with a full decompiler.