Command-line tool
binaryen
brew/binaryen
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Compiler infrastructure and toolchain library for WebAssembly
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install binaryen
macOS
brew install binaryen
Linux
brew install binaryen
Apply default optimizations and write to a given file
wasm-opt -O input.wasm -o output.wasm
Apply all optimizations and write to a given file (takes more time, but generates optimal code)
wasm-opt -O4 input.wasm -o output.wasm
Optimize a file for size
wasm-opt -Oz input.wasm -o output.wasm
Related command-line tools
- zig
Programming language designed for robustness, optimality, and clarity zig language compiler - red-toolchain
Programming language inspired by Rebol. Encapper for Red + Red/System compiler - anyzig
Universal zig executable that runs any version of zig - @typespec/compiler
TypeSpec compiler and standard library typespec cli - flatcc
FlatBuffers Compiler and Library in C for C - foma
Finite-state compiler and C library - cc6502
a library for making C compilers for the 6502 8-bits processor - vcpkg
C++ Library Manager
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents