Glossary

What Is a MIME Type? (Content-Type Headers Explained)

A MIME type is a label that tells software what kind of data a file or HTTP response contains — like application/json or image/png. Plain explanation with examples.

Short answer

A MIME type (also called media type or content type) is a string that identifies the format of a file or HTTP response — for example application/json for JSON, image/png for a PNG, text/html for a webpage. The browser uses this label to decide whether to display, download, or execute the content.

The format

Every MIME type has the shape type/subtype:

  • Top-level type — broad category: application, text, image, audio, video, font, multipart, message.
  • Subtype — specific format: json, html, png, mp4, woff2.
  • Optional parameter: ; charset=utf-8 for text formats, ; boundary=... for multipart.

Where MIME types appear

  • HTTP Content-Type header — every response declares its media type
  • HTML <input type="file" accept="..."> — restricts file picker
  • Email attachments — MIME (Multipurpose Internet Mail Extensions) was originally invented for email
  • Service workers + fetch API — match responses by content type

Common MIME types you'll meet

MIME typeUsed for
application/jsonREST API responses
application/x-www-form-urlencodedHTML form submissions
multipart/form-dataForms with file uploads
text/htmlWebpages
text/plainPlain text files
image/jpeg / image/png / image/webpWeb images
application/pdfPDF downloads
application/octet-streamGeneric binary "download as file"

Full reference: HTTP MIME types reference.

Why misconfiguration breaks things

  • JS file served as text/plain — browser refuses to execute (since 2018, modern browsers require text/javascript or application/javascript)
  • JSON served as text/html — frontend's response.json() may still work but security middleware (CORB) can block it
  • Custom font served without proper type — browsers may fall back to system fonts
  • PDF served as application/octet-stream — browser shows download dialog instead of inline viewer

Where to look up the right type

The IANA registry (iana.org/assignments/media-types) is canonical. For day-to-day reference, our HTTP MIME types reference covers the practical subset used in web development.

Related tools

Inspect API response headers + body: JSON formatter. Look up unfamiliar HTTP status codes: HTTP status codes. Encode binary content for transmission: Base64.

Featured Tools

Try these free tools directly in your browser — no sign-up required.

what is mime type mime type explained content type media type application/json

Explore 300+ Free Tools

Utilko has tools for developers, writers, designers, students, and everyday users — all free, all browser-based.