N
NJHTools

MIME Type Lookup

Find the Content-Type for any file extension, or look up which extensions map to a MIME type. Search, filter by category, and click to copy.

Most Common Content-Types

Frequently Asked Questions

What is the MIME type for JSON?↓

The correct MIME type (Content-Type) for JSON is application/json. Use this header in REST API responses: Content-Type: application/json. An older type, text/json, is sometimes seen but is not the standard.

What is the Content-Type for a PDF file?↓

The MIME type for PDF files is application/pdf. Set the HTTP header Content-Type: application/pdf to serve a PDF from a server. To force a download instead of in-browser viewing, also add Content-Disposition: attachment; filename="file.pdf".

What is the MIME type for PNG images?↓

The MIME type for PNG images is image/png. The .png file extension maps to Content-Type: image/png. Similarly, JPEG uses image/jpeg, WebP uses image/webp, GIF uses image/gif, and SVG uses image/svg+xml.

What does application/octet-stream mean?↓

application/octet-stream is the default MIME type for arbitrary binary data when no more specific type is known. Browsers treat it as a generic binary file and typically trigger a download rather than attempting to display it. It maps to extensions like .bin, .exe, .dmg, and .iso.

What is the difference between text/javascript and application/javascript?↓

Both types were used for JavaScript files, but RFC 9239 (2022) officially standardizes text/javascript as the correct MIME type. application/javascript is now considered obsolete. Modern servers should use Content-Type: text/javascript for .js and .mjs files. Browsers accept both, but text/javascript is the standard going forward.

Last updated: