WASM to WAT converter
To convert WASM to WAT, drop your WASM file in the box below. It converts straight away; press Download to save the WAT. It all happens in your browser, so your file stays on your device.
What changes
| WASM to WAT | What happens |
|---|---|
| Writes | The whole module: types, imports, functions, tables, memories, globals, exports, start, element and data segments |
| Instructions | Every finished proposal: SIMD, threads, bulk memory, exceptions, tail calls, GC |
| Names | From its name section, made into valid WAT names |
| Checked | Assembles back with wat2wasm to the same module |
| Upload | None: read and written on your device |
How to convert WASM to WAT
- Add your WASM. Drop the file in the box, or click to choose it. It becomes WAT straight away.
- Check the result. Look at the preview and the size. The defaults are right for most files.
- Download. Press Download to save the WAT.
A .wasm file is compiled WebAssembly: bytes no one can read. As WAT, the WebAssembly text format, every type, import, export, function, global and data segment is readable, and it assembles back to the same module.
Questions
How do I convert WASM to WAT?
Drop the .wasm file here: the WAT file is ready straight away. It is the same text wasm2wat writes, and wat2wasm turns it back into the module.
What is the difference between WASM and WAT?
They are the same module in two forms: .wasm is the compact binary that browsers run, .wat the text a person can read and edit.
Can I see one function without the whole file?
Yes: the file viewer lists its functions largest first and shows each one as WAT.
Is my file uploaded?
No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.