Reference

wasm-strip(1)

remove sections of a WebAssembly binary file

NAME

wasm-strip – remove sections of a WebAssembly binary file

SYNOPSIS

wasm-strip [options] filename

DESCRIPTION

wasm-strip Remove sections of a WebAssembly binary file.

The options are as follows:

--help

Print this help message

--version

Print version information

-o, --output=FILE

output wasm binary file

-k, --keep-section=SECTION

NAME Section name to keep in the final output

EXAMPLES

Remove all custom sections from test.wasm

$ wasm-strip test.wasm

SEE ALSO

wasm-interp(1), wasm-objdump(1), wasm-stats(1), wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat-desugar(1), wat2wasm(1), spectest-interp(1)

BUGS

If you find a bug, please report it at
https://github.com/WebAssembly/wabt/issues.

History

--keep-section since Arch Linux 2026-11-01; --output since Debian 12 (Bookworm); --version since Debian 12 (Bookworm); -k since Arch Linux 2026-11-01; -o since Debian 12 (Bookworm).