How To Install Wat2wasm In Debian, Ubuntu, Arch, Kali And MacOS?

How To Install Wat2wasm In Debian, Ubuntu, Arch, Kali And MacOS?

wat2wasm

Convert a file from the WebAssembly text format to the binary format.

Maintainer: Markus Koschany



Section: devel

Install wat2wasm

  • Debian apt-get install wabt Click to copy
  • Ubuntu apt-get install wabt Click to copy
  • Arch Linux pacman -S wabt Click to copy
  • Kali Linux apt-get install wabt Click to copy
  • macOS brew install wabt Click to copy

Convert a file from the WebAssembly text format to the binary format.

How to use wat2wasm?

Below are few example commands for wat2wasm that you can use in the terminal.

Parse and check a file for errors:
wat2wasm file.watClick to copy
Write the output binary to a given file:
wat2wasm file.wat -o file.wasmClick to copy
Display simplified representation of every byte:
wat2wasm -v file.watClick to copy
Installation of latest wat2wasm command is available for Debian, Ubuntu, Arch, Kali and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.