Program converter

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.

Converted on this device, never uploaded

What changes

WASM to WATWhat happens
WritesThe whole module: types, imports, functions, tables, memories, globals, exports, start, element and data segments
InstructionsEvery finished proposal: SIMD, threads, bulk memory, exceptions, tail calls, GC
NamesFrom its name section, made into valid WAT names
CheckedAssembles back with wat2wasm to the same module
UploadNone: read and written on your device

How to convert WASM to WAT

  1. Add your WASM. Drop the file in the box, or click to choose it. It becomes WAT straight away.
  2. Check the result. Look at the preview and the size. The defaults are right for most files.
  3. Download. Press Download to save the WAT.
Why 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.

Related conversions