DevKits

application/*

application/wasm

File extensions: .wasm

WebAssembly binary module — near-native code for the web.

What is application/wasm?

application/wasm is the media type for WebAssembly binary modules. Setting it correctly is required for the browser's streaming compilation via WebAssembly.instantiateStreaming — with a wrong type the browser falls back to slower path.

Typical usage

Games, image/video processing, cryptography libraries, ports of C/C++/Rust code.

Common gotchas

If you serve .wasm files without this type (e.g. as application/octet-stream), instantiateStreaming throws a TypeError. Configure your server to map .wasm → application/wasm.

HTTP header example

Response header

Content-Type: application/wasm; charset=utf-8

Reference

W3C WebAssembly

Related MIME types