WebAssembly Module Inspector
Read the sections, imports, exports and opcodes of a .wasm binary in your browser — no wabt install.
.wasm binary
Drop a compiled module into the file picker, or load the sample module above to see the section table and decoded signatures.
Header: magic 00 61 73 6d, little-endian version 1. Text WAT files are detected and reported rather than parsed.
Module report
0 sections · — versionNo module loaded
Pick a .wasm file or load the sample module to inspect its sections.
Examples
Sample module
00 61 73 6d 01 00 00 00 + 7 sections1 import, 3 exports, 1 memory pageThe embedded fixture exercises type, import, function, memory, export, code and name sections.
Import signature
env.memcpy, kind func, type 0(param i32 i32) (result i32)Type indices from the import section are resolved against the type section.
Bad header
00 61 73 6d 02 00 00 00Unsupported wasm version 2, with first-bytes hexHeader failures stop early with the exact offset and a hex dump.
About this tool
WebAssembly Module Inspector opens a .wasm binary and explains what is inside it: the header, section table, decoded imports and exports, memory limits, globals and a code-section opcode histogram. It replaces a wabt install plus a hex editor for quick audits.
The reader implements the binary grammar directly — magic bytes, little-endian version, LEB128 lengths and counts, value types and limits — with no runtime dependency. Per-section decoding errors are isolated, so one malformed section does not hide the rest of the module.
Imports are shown with module and field names plus function signatures or limits. Exports carry their kind and index, with signatures resolved through the type and function sections. A custom name section is applied as a display overlay when present.
This is static inspection only. The module is never instantiated, no code is executed, and the file stays in the browser tab. Full WAT disassembly needs an external toolchain and is not part of this offline build.
What this tool does not do
- Full WAT disassembly is not included; wabt.js would add roughly 2.5 MB and is not bundled.
- The opcode histogram is approximate for prefixed opcode spaces and exotic extensions; it is not a disassembly.
- Files are capped at 64 MB and parsed in the tab; very large modules may be slow on older devices.
- No structural validation beyond header and section bounds is performed; malformed binaries may still decode partially.
- Nothing is uploaded, cached or persisted, and the module is never instantiated.
How to use this tool
Pick a binary
Use the file picker to choose a compiled .wasm file, or load the sample module to explore the report immediately.
Read the summary
The Summary tab counts functions, imports, exports, memories, globals and data bytes at a glance.
Walk the sections
Open Sections for each section's id, byte offset and payload size. Custom sections show their name, including the name section.
Inspect signatures
Use Imports, Exports and Functions to read decoded signatures, limits and resolved names.
Look at bytes
The Hex tab shows the first 4 KB with an ASCII column; Opcodes shows a histogram rather than a full disassembly.
Use cases
Audit a dependency
See what a third-party wasm module imports and exports before shipping it.
Check compiler output
Verify which sections a toolchain emits and how large each one is.
Triage a CTF artifact
Read section structure and opcode counts without executing untrusted code.
Compare builds
Use the section sizes and summary counts as a quick before/after profile.
Core section ids
| Id | Section |
|---|---|
| 0 | custom |
| 1 | type |
| 2 / 3 | import / function |
| 4 / 5 | table / memory |
| 6 / 7 / 8 | global / export / start |
| 9 / 10 / 11 / 12 | element / code / data / dataCount |
Unknown section ids are listed with their size for forward compatibility instead of failing the whole file.
Common mistakes
Mistake:Uploading a .wat text file.
Fix:The tool detects WAT text and suggests assembling it first; inspection expects a compiled binary.
Mistake:Assuming the opcode histogram is a disassembly.
Fix:It counts common opcodes with immediate-length handling; use wabt for full WAT text.
Mistake:Expecting the module to run.
Fix:Inspection is deliberately static: no instantiation, no imports resolved, no code executed.
Mistake:Ignoring section warnings.
Fix:Unknown sections and isolated decode failures are reported; read the warnings before trusting the counts.
Mistake:Treating memory pages as bytes.
Fix:One page is 64 KiB. The report shows pages, byte count and MB separately.
Frequently asked questions
What sections does a wasm module have?
Sections 1–12 cover types, imports, functions, tables, memory, globals, exports, start, elements, code, data and dataCount. Section 0 is a custom section; the custom section named name carries function and local names. The Sections tab lists every section with its byte offset and payload size, including unknown ids for forward compatibility.
How are imports represented?
Each import records a module name, field name and kind: function, table, memory or global. Function imports carry a type index that is resolved to a signature such as (param i32 i32) (result i32). Table and memory imports show their limits, including shared and memory64 flags where present.
Can it show WAT?
Not in this offline build. A full wasm2wat disassembly requires the wabt.js toolchain (about 2.5 MB), which is deliberately not bundled. The Opcodes tab gives a histogram of common instructions and the Hex tab shows raw bytes instead.
Is the module executed?
No. The inspector is a static binary reader. It never calls WebAssembly.instantiate, never resolves imports and never runs exported functions. That makes it safe to point at untrusted artifacts; the file stays in the tab and is not uploaded.
How big a file is supported?
The picker rejects files over 64 MB with a clear notice. Modules up to that size are read in the tab; the hex view is windowed to the first 4 KB so very large binaries do not flood the page.
Why do I see warnings instead of errors?
Decode failures are isolated per section: a truncated custom section or unknown value type produces a warning and the walker continues with the next section. Only header failures and section payloads that run past end-of-file stop the inspection with an offset and hex dump.
What do memory pages mean?
WebAssembly linear memory is allocated in 64 KiB pages. A memory with min 1 reports 1 page, 65,536 bytes and 0.06 MB. Shared and memory64 flag bits are shown in the limits as well.
I uploaded a .wat file and nothing decoded — why?
WAT is source text, not a compiled binary. The tool detects a leading (module or comment and warns that you need a WAT assembler first. Compile it with wat2wasm or a WAT playground, then inspect the resulting .wasm file.
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.