Code
What is a .js file?
A .js file is a JavaScript file. This is a code, script or executable format.
How to open a .js file
- VS Code opens and highlights nearly every text-based code format.
- Never run a script you didn't write or trust.
The registry records this extension against JavaScript file, so software from that family is the most likely match.
How to convert a .js file
- Text-based code needs no conversion โ just save with a different extension if a tool insists.
MIME type
When a .js file travels over the web, servers label it with this MIME type:
application/javascriptThe technical record
For archivists, developers and the merely curious: these are the PRONOM registry entries for .js.
| Format name | Version | MIME type | PUID |
|---|---|---|---|
| JavaScript file | โ | application/javascript | x-fmt/423 |