The Content-Type strings you set on responses and uploads — tap any to copy it.
| MIME type | Extension | Used for |
|---|---|---|
| text/plain | .txt | Plain text |
| text/html | .html | Web pages |
| text/css | .css | Stylesheets |
| text/csv | .csv | CSV data |
| text/markdown | .md | Markdown |
| text/javascript | .js | JavaScript (modern) |
| MIME type | Extension | Used for |
|---|---|---|
| application/json | .json | JSON APIs |
| application/pdf | PDF documents | |
| application/zip | .zip | ZIP archives |
| application/xml | .xml | XML data |
| application/octet-stream | Generic binary / download | |
| application/x-www-form-urlencoded | HTML form posts | |
| application/gzip | .gz | Gzip archives |
| application/wasm | .wasm | WebAssembly |
| application/vnd.ms-excel | .xls | Legacy Excel |
| application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx | Excel spreadsheet |
| MIME type | Extension | Used for |
|---|---|---|
| image/jpeg | .jpg | JPEG photos |
| image/png | .png | PNG images |
| image/gif | .gif | GIF images |
| image/webp | .webp | WebP images |
| image/svg+xml | .svg | SVG vectors |
| image/avif | .avif | AVIF images |
| image/x-icon | .ico | Favicons |
| MIME type | Extension | Used for |
|---|---|---|
| audio/mpeg | .mp3 | MP3 audio |
| audio/wav | .wav | WAV audio |
| audio/ogg | .ogg | Ogg audio |
| video/mp4 | .mp4 | MP4 video |
| video/webm | .webm | WebM video |
| video/quicktime | .mov | QuickTime video |
| MIME type | Extension | Used for |
|---|---|---|
| font/woff2 | .woff2 | Web fonts (modern) |
| font/woff | .woff | Web fonts |
| font/ttf | .ttf | TrueType fonts |
| multipart/form-data | File uploads in forms |
A MIME type (also called a media type or Content-Type) is the short string that tells a browser or server what kind of data it's looking at — application/json, image/png, text/html. It travels in the HTTP Content-Type header, and it's what makes a browser render a page instead of downloading it, or hand a PDF to the right viewer. The format is always type/subtype. Two come up constantly in development: application/json for API requests and responses, and application/octet-stream, the generic "unknown binary" type that browsers treat as a download. When a file serves or uploads with the wrong type, this is usually the first header to check. For the response codes that travel alongside it, see HTTP status codes.