ApplicationBinary

application/wasm

WebAssembly

Reference for application/wasm, the MIME type for WebAssembly binary modules that run near-native code in web browsers.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .wasm

HTTP Content-Type Header

HTTP Header
Content-Type: application/wasm

Associated File Extensions

.wasm

Quick Facts

MIME Typeapplication/wasm
CategoryApplication
TypeBinary
Extensions.wasm

Common Usage

WebAssembly enables high-performance code execution in browsers and server runtimes. It is used for running C/C++/Rust compiled code in the browser, powering applications like Figma, Google Earth, and game engines.

The correct MIME type is required for browsers to compile and instantiate WASM modules.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.wasm" type="application/wasm">

<!-- Or for script/media elements -->
<script type="application/wasm" src="file.wasm"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/wasm');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/wasm' });
nginx
# nginx.conf — add to types block or use default
types {
    application/wasm  wasm;
}

# Or set for a specific location
location /api/ {
    default_type application/wasm;
}

Related MIME Types

More Application MIME Types

Other application types in the Application family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.