WebAssembly Tools

Assemble, disassemble, and analyze WebAssembly modules

WAT to WASM Assembler

Convert WebAssembly Text format to binary WASM

About WebAssembly

WebAssembly (WASM) is a binary instruction format for a stack-based virtual machine, designed as a portable compilation target for programming languages.

Key Features:

  • Fast: Near-native performance in web browsers
  • Safe: Memory-safe, sandboxed execution environment
  • Portable: Runs on all major browsers and platforms
  • Compact: Efficient binary format for fast downloads

Common Use Cases:

  • High-performance web applications
  • Games and graphics engines
  • Video/audio codecs and processing
  • Cryptography and compression
  • Scientific computing and simulations
  • Porting desktop applications to the web

Getting WASM Hex:

# Using xxd (Linux/Mac):
xxd -p module.wasm | tr -d '\n' | fold -w2 | paste -sd ' '

# Using Node.js:
const fs = require('fs');
const wasm = fs.readFileSync('module.wasm');
console.log(Array.from(wasm).map(b => b.toString(16).padStart(2, '0')).join(' '));