MultipartText-based

multipart/related

Related Content

Reference for multipart/related, the MIME type for messages containing interdependent parts that reference each other.

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: multipart/related; charset=utf-8

Quick Facts

MIME Typemultipart/related
CategoryMultipart
TypeText-based (human-readable)

Common Usage

multipart/related bundles a root document with resources it references (images, stylesheets). The primary use is HTML email with inline images — the HTML body references embedded images by Content-ID.

Also used in SOAP messages with attachments and MHTML web archives.

Code Examples

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

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

# Or set for a specific location
location /api/ {
    default_type multipart/related;
}

Related MIME Types

More Multipart MIME Types

Other multipart types in the Multipart family

Related Tools

Explore More MIME Types

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