Mastering MIME (Media) Types & HTTP Content Negotiation
Multipurpose Internet Mail Extensions (MIME), standardized by IANA as Media Types, form the backbone of content exchange across the internet. Whenever a web server delivers an asset, API payload, or file upload to a browser or client SDK, it sends a Content-Type HTTP header that dictates how the browser must handle, render, or download the resource.
Whether you are building REST APIs, constructing cURL requests, configuring CORS headers, or sanitizing user file uploads, having an instant, offline-capable MIME type reference is essential.
Structure of a MIME Type
Broad media category: application, image, text, audio, video, font, model, multipart, message.
Specific format identifier (e.g. json, png) and optional structured syntax suffix (e.g. +xml in image/svg+xml or +json in application/ld+json).
Optional modifiers such as text character set (charset=utf-8) or multipart stream boundaries (boundary=---).
MIME Security & Upload Protection Rules
1. Enforce X-Content-Type-Options: nosniff: Always include this header on server responses to instruct browsers never to ignore the Content-Type header and execute guessed script payloads.
2. Validate Magic Bytes (File Signatures): Never rely solely on user-supplied file extensions or Content-Type headers during file uploads. Inspect the initial binary bytes (magic number) on the server.
3. Sanitize User SVGs & HTML: Vector formats like image/svg+xml and text/html can execute inline JavaScript. Use DOMPurify or render SVGs strictly via <img> tags.
100% Client-Side Privacy Guarantee
ToolZeno performs all MIME type search, category filtering, header code snippet generation, and comparison computations locally inside your browser sandbox. Zero search queries or file metadata are ever transmitted to any backend server.