WebAssembly Playground
One export per number type (i32, i64, f32, f64), starting with add(20, 22).
WAT editor
Advanced settings
Allowed: 1,000–60,000
Allowed: 1–10,000,000
Allowed: 100–30,000
- What is WebAssembly?
- A compact binary format that browsers run at near-native speed alongside JavaScript. A module exports functions you can call.
- What is WAT?
- WebAssembly Text format, the readable form of a module. Each instruction maps directly to the binary.
- What happens when I click Compile?
- WABT turns your WAT into a .wasm binary in this browser. The module is validated and inspected, then its exports can run in an isolated Worker.
- Does my code leave the browser?
- No. Compiling, inspecting and running happen locally. Only the WAT compiler is downloaded the first time you compile.
Inspect, run and profile WASM
Upload a .wasm module, write WAT, or load an example. The module is validated and inspected first: imports, exports, functions with their signatures, memories (pages), tables, globals and custom sections. Supported exports can then be run with typed arguments, benchmarked, stopped and re-instantiated.
Numeric ABI and strict imports
The runner calls exports whose parameters are i32, i64, f32 or f64 with at most one result. i64 values use BigInt end to end, so large integers stay exact. Strings, pointers, references, SIMD, WASI and multi-value results are shown in the inspector but not executed. Imports are never provided implicitly: you choose numeric stubs that return zero, zeroed globals or fresh memories and tables, and unresolved imports block instantiation with the list of missing names.
Benchmarks and memory, measured honestly
Run and Benchmark execute in a dedicated Worker with an iteration cap, a time cap and a timeout; Stop terminates the worker and Reset instance starts clean. Results show instantiation and execution time, average, median, nearest-rank P95 and operations per second. Very fast calls are timed in batches above timer resolution. Linear memory is reported in 64 KiB pages with initial, current and peak observed sizes and growth events for exported or stubbed memories.
Why there is no CPU %, GC count or FPS
Browsers do not expose per-task CPU usage or garbage-collection counters, and function calls do not render frames, so those values are shown as not measured or not applicable instead of being invented. Page JS heap and long-task data appear only when the browser supports them. Findings such as long-running calls, boundary overhead, repeated memory growth or unresolved imports always list the measurement behind them.
Privacy and limits
Modules, WAT source, arguments and results stay in this browser; nothing is uploaded and analytics never receive module content. Uploads are limited to one core module of 10 MiB and WAT to one million characters. The WAT compiler (WABT) is downloaded only when you compile WAT. Timings depend on the browser, device and JIT tier, so compare runs on the same machine.
Frequently asked questions
- Is my .wasm module uploaded anywhere?
- No. Validation, inspection, WAT compilation and execution all happen in your browser, with execution in a dedicated Web Worker. Module bytes, WAT source, arguments and results are not uploaded, stored or sent to analytics.
- Which functions can it run?
- Exports whose parameters are i32, i64, f32 or f64 and that return at most one value. i64 values use BigInt so large integers stay exact. Functions that take strings, pointers, references or SIMD values, return multiple values, or need WASI are listed in the inspector with the reason they cannot run.
- Why does it not show CPU usage, GC count or FPS?
- Browsers do not expose per-task CPU usage or garbage-collection counters, and plain function calls do not render frames. The tool shows execution time, median, P95, operations per second and observed linear memory instead, marks unsupported browser metrics as unavailable, and labels any GC-related pause as a heuristic with its evidence.
