---
name: "wasm-strip"
section: "1"
platform: "linux"
package: "wabt"
version: "1.0.42-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/wasm-strip"
---

# 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-interp/1.md), [wasm-objdump(1)](/wasm-objdump/1.md), [wasm-stats(1)](/wasm-stats/1.md), [wasm-validate(1)](/wasm-validate/1.md), [wasm2c(1)](/wasm2c/1.md), [wasm2wat(1)](/wasm2wat/1.md), [wast2json(1)](/wast2json/1.md), [wat-desugar(1)](/wat-desugar/1.md), [wat2wasm(1)](/wat2wasm/1.md), [spectest-interp(1)](/spectest-interp/1.md)

## BUGS

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