MIME Type Lookup
Find the MIME type for any file extension, and build the accept value for a file upload field from the types you choose. Free reference, no sign-up.
Accept value for a file input (2 chosen)
HTML
| Extension | MIME type | Group |
|---|---|---|
| text/plain | Text | |
| text/html | Code | |
| text/html | Code | |
| text/css | Code | |
| text/csv | Data | |
| text/markdown | Text | |
| text/javascript | Code | |
| text/javascript | Code | |
| application/json | Data | |
| application/xml | Data | |
| application/yaml | Data | |
| application/yaml | Data | |
| application/wasm | Code | |
| application/x-sh | Code | |
| application/x-httpd-php | Code | |
| text/calendar | Data | |
| text/vcard | Data | |
| image/jpeg | Image | |
| image/jpeg | Image | |
| image/png | Image | |
| image/gif | Image | |
| image/webp | Image | |
| image/avif | Image | |
| image/svg+xml | Image | |
| image/vnd.microsoft.icon | Image | |
| image/bmp | Image | |
| image/tiff | Image | |
| image/tiff | Image | |
| image/heic | Image | |
| audio/mpeg | Audio | |
| audio/wav | Audio | |
| audio/ogg | Audio | |
| audio/ogg | Audio | |
| audio/mp4 | Audio | |
| audio/aac | Audio | |
| audio/flac | Audio | |
| audio/webm | Audio | |
| audio/midi | Audio | |
| video/mp4 | Video | |
| video/webm | Video | |
| video/ogg | Video | |
| video/quicktime | Video | |
| video/x-msvideo | Video | |
| video/x-matroska | Video | |
| video/mpeg | Video | |
| video/3gpp | Video | |
| application/pdf | Document | |
| application/msword | Document | |
| application/vnd.openxmlformats-officedocument.wordprocessingml.document | Document | |
| application/vnd.ms-excel | Document | |
| application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Document | |
| application/vnd.ms-powerpoint | Document | |
| application/vnd.openxmlformats-officedocument.presentationml.presentation | Document | |
| application/vnd.oasis.opendocument.text | Document | |
| application/vnd.oasis.opendocument.spreadsheet | Document | |
| application/vnd.oasis.opendocument.presentation | Document | |
| application/rtf | Document | |
| application/epub+zip | Document | |
| application/zip | Archive | |
| application/gzip | Archive | |
| application/x-tar | Archive | |
| application/x-7z-compressed | Archive | |
| application/vnd.rar | Archive | |
| application/x-bzip2 | Archive | |
| font/woff | Font | |
| font/woff2 | Font | |
| font/ttf | Font | |
| font/otf | Font | |
| application/vnd.ms-fontobject | Font | |
| application/octet-stream | Data | |
| application/vnd.microsoft.portable-executable | Data | |
| application/vnd.android.package-archive | Data | |
| application/java-archive | Data | |
| application/sql | Data | |
| application/x-pem-file | Data | |
| application/x-pkcs12 | Data | |
| application/x-pkcs12 | Data | |
| application/x-x509-ca-cert | Data |
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
MIME Types List and Accept Attribute Builder
Search a file extension to get its MIME type. Tick the types you want and copy the accept value for an upload field. It gives developers a quick browser-based way to solve a focused mime type lookup task before moving the result into a project.
How to find a MIME type
Type an extension such as pdf, or part of a type such as image, in the search box. Use the buttons to filter by group.
How to build an accept value
Tick the extensions you want in the table. You can also type your own, such as image/*. The finished HTML appears below.
Common mistakes
- Trusting accept for security: users can pick any file. Check the type and size on the server.
- Listing only the MIME type for Office files: some systems report them differently, so add the extensions too.
Frequently asked questions
What is a MIME type?
A label such as image/png or application/pdf that tells a browser or server what kind of file something is. It is sent in the Content-Type header and used by the accept attribute.
How does the accept attribute work?
It lists the file kinds a file picker should offer: extensions (.pdf), exact types (image/png) or groups (image/*). It is a convenience, not security: always check the file again on the server.
Why is .js text/javascript?
The standard now names text/javascript as the JavaScript type. application/javascript still works but is the obsolete name.
What type should I use for an unknown file?
application/octet-stream, which means "binary data". Browsers will usually offer to download it.
How do I use this mime type lookup tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.
More DevOps & Network
Docker Compose BuilderBuild a Docker setup by picking servicesDockerfile LinterFind problems in a DockerfileKubernetes YAML ValidatorCheck Kubernetes files before deploying.env Parser & ValidatorCheck .env settings files.gitignore GeneratorCreate a .gitignore for your projectNginx Config GeneratorCreate a web server config.htaccess GeneratorCreate redirects and HTTPS ruleschmod CalculatorWork out file permission numbers