MIME Type
Multipurpose Internet Mail Extensions Type
ELI5 — The Vibe Check
A MIME type is a standardized label for what type of content something is. 'text/html' means HTML. 'image/jpeg' means a JPEG image. 'application/json' means JSON data. Browsers use MIME types to decide how to handle files — whether to display, download, or run them.
Real Talk
MIME types are standardized identifiers for content types using the format type/subtype (e.g., text/html, application/json). They originated for email attachments but are now used everywhere in HTTP via Content-Type headers. Registered by IANA.
Show Me The Code
// Common MIME types
text/html // HTML document
text/css // CSS stylesheet
text/javascript // JavaScript
application/json // JSON data
application/xml // XML
application/pdf // PDF
image/jpeg // JPEG image
image/png // PNG image
image/svg+xml // SVG
audio/mpeg // MP3
video/mp4 // MP4 video
multipart/form-data // File uploads
application/octet-stream // Binary / unknown
When You'll Hear This
"Set the correct MIME type so the browser handles the file properly." / "The server is sending SVG with the wrong MIME type."
Related Terms
Content-Type
Content-Type is a header that tells the receiver what format the data is in. 'I'm sending you JSON.' 'I'm sending you a PNG image.' 'I'm sending you HTML.
Header
Headers are the metadata attached to HTTP requests and responses — information about the information.
HTTP (HyperText Transfer Protocol)
HTTP is the language your browser uses to ask websites for stuff. You type a URL, your browser shouts 'hey, give me that page!
Response
A response is what the server sends back after receiving a request.