.js file (extension) MIME type reference

MIME with js extension (filename suffix) usually comes in 4 types: text/javascript application/javascript application/x-javascript text/jscript

MIME type reference for .js
File Extension (Filename Suffix) MIME Type
.js text/javascript 📋
application/javascript 📋
application/x-javascript 📋
text/jscript 📋
📖 Related references
File extension (filename suffix) reference for text/javascript
MIME Type File Extension (Filename Suffix)
text/javascript .js 📋
.jsm 📋
.mjs 📋
File extension (filename suffix) reference for application/javascript
MIME Type File Extension (Filename Suffix)
application/javascript .js 📋
.mjs 📋
.jsm 📋
File extension (filename suffix) reference for application/x-javascript
MIME Type File Extension (Filename Suffix)
application/x-javascript .js 📋
.jsm 📋
.mjs 📋
File extension (filename suffix) reference for text/jscript
MIME Type File Extension (Filename Suffix)
text/jscript .js 📋
.jsm 📋
.mjs 📋

FAQs

What is the MIME Type for js file?

The MIME of the js file can be one or more of the following: text/javascript application/javascript application/x-javascript text/jscript