WABT(1) General Commands Manual WABT(1)

# [NAME](#NAME)

`wasm-strip` — remove sections of a WebAssembly binary file

# [SYNOPSIS](#SYNOPSIS)

`wasm-strip` \[options] `filename`

# [DESCRIPTION](#DESCRIPTION)

`wasm-strip` Remove sections of a WebAssembly binary file.

The options are as follows:

[`--help`](#help)

Print this help message

[`--version`](#version)

Print version information

[`-o`](#o), `--output=FILE`

output wasm binary file

[`-k`](#k), `--keep-section=SECTION`

NAME Section name to keep in the final output

# [EXAMPLES](#EXAMPLES)

Remove all custom sections from test.wasm

`$ wasm-strip test.wasm`

# [SEE ALSO](#SEE_ALSO)

[wasm-interp(1)](/man/os/wabt/wasm-interp.1), [wasm-objdump(1)](/man/os/wabt/wasm-objdump.1), [wasm-stats(1)](/man/os/wabt/wasm-stats.1), [wasm-validate(1)](/man/os/wabt/wasm-validate.1), [wasm2c(1)](/man/os/wabt/wasm2c.1), [wasm2wat(1)](/man/os/wabt/wasm2wat.1), [wast2json(1)](/man/os/wabt/wast2json.1), [wat-desugar(1)](/man/os/wabt/wat-desugar.1), [wat2wasm(1)](/man/os/wabt/wat2wasm.1), [spectest-interp(1)](/man/os/wabt/spectest-interp.1)

# [BUGS](#BUGS)

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

Linux 4.19.0-gvisor

---

Document: wasm-strip(1) from wabt 1.0.42-r0 (Chainguard OS)
Source: https://github.com/WebAssembly/wabt
