Executable formats

WebAssembly memory limits

Encode Core 1.0 minimum and optional maximum memory-page limits.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Emit flag 0 or 1, then unsigned LEB128 page counts. Each memory page is 65536 bytes.

Minimum 1 and maximum 2 pages encode as 01 01 02.

Limits

Core 1.0 unshared 32-bit memory only. Shared memory, memory64, import/export records and module validation are excluded.