NewKit / Reference / MIME Types

MIME Types

Find the MIME type for each file extension. · Processed in your browser.

ExtensionMIME type
.jsonapplication/json
.js / .mjstext/javascript
.csstext/css
.htmltext/html
.svgimage/svg+xml
.pngimage/png
.jpg / .jpegimage/jpeg
.webpimage/webp
.gifimage/gif
.avifimage/avif
.icoimage/x-icon
.bmpimage/bmp
.tiffimage/tiff
.pdfapplication/pdf
.txttext/plain
.mdtext/markdown
.csvtext/csv
.xmlapplication/xml
.yaml / .ymlapplication/yaml
.rtfapplication/rtf
.zipapplication/zip
.gzapplication/gzip
.tarapplication/x-tar
.7zapplication/x-7z-compressed
.rarapplication/vnd.rar
.wasmapplication/wasm
.binapplication/octet-stream
.woff2font/woff2
.wofffont/woff
.ttffont/ttf
.otffont/otf
.mp4video/mp4
.webmvideo/webm
.movvideo/quicktime
.avivideo/x-msvideo
.mp3audio/mpeg
.wavaudio/wav
.oggaudio/ogg
.flacaudio/flac
.docapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.xlsapplication/vnd.ms-excel
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.pptapplication/vnd.ms-powerpoint
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation

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.