What is MIME Types?
A MIME type (or content-type) indicates the nature of a file so browsers and servers handle it correctly: showing an image, running a script or downloading a document. Setting the right content-type is key when serving files or building HTTP responses.
This reference maps the most common file extensions to their corresponding MIME type —from .json to application/json, from .webp to image/webp— so you don't have to memorize them when configuring your server or handling file uploads.
Some that are often confused: JSON is application/json, JavaScript is text/javascript, an SVG is image/svg+xml (not image/svg) and an unknown or binary file uses application/octet-stream. Sending the right Content-Type prevents the browser from misreading the file or downloading it instead of showing it.
Frequently asked questions
What is the MIME type of a JSON file?
application/json. It is the correct Content-Type for .json responses and files.
What is the MIME type of an SVG?
image/svg+xml. Do not use image/svg (it does not exist) or text/xml.
Which Content-Type do I use for JavaScript?
text/javascript is the recommended value today (application/javascript is still valid).
What is a MIME type?
It is a label (like text/html or image/png) that tells the browser the nature of a file so it handles it correctly.
Is it free?
Yes, all NewKit tools are completely free.
Is my data sent to a server?
No. Processing happens 100% in your browser, so it is safe even for sensitive data.