Executable formats

WebAssembly section framing

Wrap a raw payload with its section ID and unsigned LEB128 byte length.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Emit the section ID, the payload byte count as unsigned LEB128, and the unchanged payload.

Custom section ID 0 with one zero payload byte encodes as 00 01 00.

Limits

Section framing only. Supply a complete section payload, including any custom-section name. Ordering and payload semantics require a WebAssembly validator.