ApplicationText-based

application/x-www-form-urlencoded

URL-Encoded Form Data

Reference for application/x-www-form-urlencoded, the default MIME type for HTML form submissions via POST requests.

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

HTTP Content-Type Header

HTTP Header
Content-Type: application/x-www-form-urlencoded; charset=utf-8

Quick Facts

MIME Typeapplication/x-www-form-urlencoded
CategoryApplication
TypeText-based (human-readable)

Common Usage

This is the default Content-Type for HTML form submissions. Form data is encoded as key=value pairs separated by ampersands, with special characters percent-encoded.

Used by login forms, search forms, and simple POST requests. For file uploads, multipart/form-data is used instead.

Code Examples

HTML
<!-- Set MIME type in meta or fetch headers -->
<meta http-equiv="Content-Type" content="application/x-www-form-urlencoded">
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/x-www-form-urlencoded');
  res.send(data);
});

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

# Or set for a specific location
location /api/ {
    default_type application/x-www-form-urlencoded;
}

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.