20 results
.txt→text/plainPlain text file
.html→text/htmlHTML document
.css→text/cssCascading Style Sheet
.js→application/javascriptJavaScript source code
.mjs→application/javascriptJavaScript module
.json→application/jsonJSON data
.xml→application/xmlXML document
.csv→text/csvComma-separated values
.md→text/markdownMarkdown document
.jpg→image/jpegJPEG image
.jpeg→image/jpegJPEG image
.png→image/pngPNG image
.gif→image/gifGIF image
.svg→image/svg+xmlScalable Vector Graphics
.webp→image/webpWebP image
.ico→image/x-iconIcon file
.bmp→image/bmpBitmap image
.mp3→audio/mpegMP3 audio
.wav→audio/wavWAV audio
.ogg→audio/oggOGG audio
Showing 8 of 94 related tools
Get up and running in 30 seconds
Type a file extension like '.pdf', '.mp4', or '.json' to find its MIME type instantly. The search is case-insensitive and works with or without the leading dot.
If you have a MIME type and need to know what file extension it maps to, search for 'image/png' or 'application/json' to find the corresponding extensions.
Scroll through the database to explore MIME types organized by category: text, images, audio, video, fonts, archives, documents, and more.
Click the 'Copy' button next to any MIME type to copy it directly to your clipboard for use in code, server configs, or HTTP headers.
Understanding MIME content types
MIME (Multipurpose Internet Mail Extensions) types are standardized labels that identify the nature and format of a file or data. Originally designed for email attachments, MIME types are now fundamental to how the web works - they tell browsers, servers, and applications how to handle different types of content.
Every file served over HTTP includes a Content-Type header with its MIME type. When your browser downloads an image, the server sends Content-Type: image/jpeg so the browser knows to display it as a picture rather than downloading it as a file.
MIME types follow a simple format: type/subtype
Examples:
text/plain - Plain text filetext/html - HTML documentimage/jpeg - JPEG imageapplication/json - JSON datavideo/mp4 - MP4 videoSome MIME types also include parameters like charset: text/html; charset=utf-8
Browser Rendering: Browsers use MIME types to decide how to render content. A file served as text/html displays as a webpage, while application/octet-stream triggers a download dialog. Incorrect MIME types can cause security issues (MIME sniffing vulnerabilities) or broken functionality.
Server Configuration: Web servers like Nginx and Apache need MIME type mappings to serve files correctly. The .htaccess or nginx.conf files include type definitions that map file extensions to MIME types.
API Development: REST APIs use Content-Type headers to indicate request/response formats. Sending JSON data requires application/json, while file uploads might use multipart/form-data.
File Uploads: Validating uploaded files by MIME type prevents users from uploading malicious files with renamed extensions. Check both the extension AND the MIME type for security.
CDN Configuration: Content Delivery Networks use MIME types to determine caching strategies, compression eligibility, and delivery optimization. Static assets like images and fonts get different treatment than dynamic HTML.
Text formats: HTML, CSS, JavaScript, JSON, XML, Markdown, CSV - all variations of text/* or application/*
Images: JPEG, PNG, GIF, WebP, SVG, ICO - served as image/* types with varying browser support
Audio/Video: MP3, MP4, WebM, OGG - media types that browsers can play natively or via plugins
Fonts: WOFF, WOFF2, TTF, OTF - font/* types essential for web typography
Documents: PDF, Word, Excel, PowerPoint - application/* types for downloadable documents
Archives: ZIP, TAR, GZ, 7Z - compressed file formats for distribution
Binary/Data: application/octet-stream is the catch-all for unknown binary data, triggering downloads rather than inline display
How developers use MIME types
Set up correct Content-Type headers in Nginx, Apache, or Caddy to serve files properly. Essential for SPAs, static sites, and file hosting.
Validate uploaded files by checking both extension and MIME type to prevent security vulnerabilities from renamed malicious files.
Configure correct Content-Type headers in API responses, file downloads, and static asset delivery for proper browser handling.
Troubleshoot files not rendering correctly in browsers - usually caused by missing or incorrect MIME type configuration on the server.
Master MIME type lookup
Each result shows:
Click "Copy" to copy the MIME type string directly to your clipboard.
Nginx:
types {
application/javascript js mjs;
application/json json;
image/webp webp;
}
Apache (.htaccess):
AddType application/javascript .js .mjs
AddType application/json .json
AddType image/webp .webp
Express.js:
app.use(express.static('public', {
setHeaders: (res, path) => {
if (path.endsWith('.wasm')) {
res.setHeader('Content-Type', 'application/wasm');
}
}
}));
Everything you need to know
Your data never leaves your browser
All MIME type lookups happen entirely in your browser. No data is sent to any server - the complete MIME type database is included in the page and searches are performed locally using JavaScript.
When validating file uploads:
// Server-side validation example (Node.js with file-type package)
import { fileTypeFromBuffer } from 'file-type';
async function validateUpload(buffer) {
const type = await fileTypeFromBuffer(buffer);
const allowed = ['image/jpeg', 'image/png', 'application/pdf'];
if (!type || !allowed.includes(type.mime)) {
throw new Error('Invalid file type');
}
}
Some browsers try to guess MIME types from file content (MIME sniffing). This can be exploited by attackers uploading HTML disguised as images. Prevent this with:
X-Content-Type-Options: nosniff
This header tells browsers to respect the declared Content-Type and not attempt to sniff the content.
MIME database stats