Home › Developer Tools › MIME Type Lookup

MIME Type Lookup

Type a file extension like .webp or a MIME type like application/pdf to get the answer instantly, browse 400+ extensions by category, or drop a file to check its real type from its first bytes.

Last updated:

ExtensionMIME typeFile typeCopy

Check a file's real type

Drop any file here or click to choose Reads only the first bytes (magic number) on your device – nothing is uploaded

Exports contain the rows currently shown (use the search and category filters to narrow them).

Advertisement
Advertisement

How to use the MIME Type Lookup

  1. Type an extension or MIME type in the search box, for example webp, .docx or image/svg+xml, and press Look up.
  2. Read the answer card for the exact match and copy it, or scan the table for related types.
  3. Filter by category to browse every image, audio, video, font or document type.
  4. Drop a file into Check a file's real type to see what its content actually is and whether the extension matches.
  5. Export the filtered list as CSV or JSON, or as ready-to-paste nginx or Apache configuration.

How MIME types are structured

A MIME type has a type and a subtype separated by a slash, optionally followed by parameters: text/html; charset=utf-8. The top-level type tells software the broad kind of data:

Top-level typeUsed forExamples
text/Human-readable texttext/plain, text/html, text/css, text/csv, text/javascript
image/Pictures and graphicsimage/png, image/jpeg, image/webp, image/svg+xml
audio/Soundaudio/mpeg, audio/wav, audio/ogg, audio/flac
video/Moving picturesvideo/mp4, video/webm, video/quicktime
font/Font filesfont/woff2, font/ttf, font/otf
model/3D modelsmodel/gltf-binary, model/stl, model/obj
application/Everything else: binary data, documents, archives, structured dataapplication/pdf, application/zip, application/json
multipart/, message/Containers of several parts, emailsmultipart/form-data, message/rfc822

Subtypes have their own conventions: vnd. marks a vendor-specific type (application/vnd.ms-excel), x- an unregistered one (application/x-7z-compressed), and a suffix such as +xml, +json or +zip says which generic format the data is built on (image/svg+xml, application/ld+json, application/epub+zip).

The MIME types web developers need most

ExtensionMIME typeNote
.htmltext/htmlAdd ; charset=utf-8
.csstext/cssBrowsers refuse stylesheets served with the wrong type
.js, .mjstext/javascriptModule scripts require a JavaScript type
.jsonapplication/jsonJSON is UTF-8 by definition
.svgimage/svg+xmlWrong type means SVG shows as text or downloads
.webp / .avifimage/webp / image/avifModern image formats
.woff2font/woff2Fonts also need CORS headers across domains
.wasmapplication/wasmRequired for WebAssembly streaming compilation
.webmanifestapplication/manifest+jsonProgressive web app manifest
.mp4 / .webmvideo/mp4 / video/webmServe with byte-range support for seeking

Common file signatures (magic numbers)

FormatFirst bytes (hex)As text
PNG89 50 4E 47 0D 0A 1A 0A‰PNG
JPEGFF D8 FFÿØÿ
GIF47 49 46 38 39 61GIF89a
PDF25 50 44 46 2D%PDF-
ZIP, DOCX, XLSX, EPUB, APK50 4B 03 04PK
GZIP1F 8B
WebP / WAV / AVI52 49 46 46 … 57 45 42 50 / 57 41 56 45 / 41 56 49 20RIFF…WEBP / WAVE / AVI
MP4, MOV, HEIC, AVIF?? ?? ?? ?? 66 74 79 70….ftyp + brand
Windows EXE / DLL4D 5AMZ
WebAssembly00 61 73 6D\0asm

Tip: never trust the extension or the browser-reported type of an uploaded file on a server. Check the signature, as the file checker above does, and only then accept or process the file.

Frequently asked questions

What is a MIME type?

A MIME type (officially a media type) is a label such as image/png or application/pdf that tells browsers and other software what kind of data a file contains. Web servers send it in the Content-Type header, and browsers use it to decide whether to display, play or download a file.

What MIME type should I use for an unknown file?

Use application/octet-stream. It means arbitrary binary data, and browsers will offer to download the file rather than try to display it.

What is the MIME type for JavaScript?

text/javascript. RFC 9239 (2022) made it the official type for JavaScript and JavaScript modules; application/javascript still works but is obsolete.

Why does my server send the wrong Content-Type?

Servers map extensions to types with a configuration file such as nginx mime.types or Apache AddType directives. If an extension is missing, the server falls back to a default like application/octet-stream or text/plain. Use the nginx or Apache export to add the missing entries.

How does the file check work?

Most formats start with a fixed signature, or magic number, such as 89 50 4E 47 for PNG or %PDF for PDF. The tool reads only the first and last 64 KB of the file in your browser, compares them with known signatures and tells you if the content does not match the extension. The file is never uploaded.

Are DOCX, XLSX and EPUB files really ZIP files?

Yes. They are ZIP archives with a specific internal structure, which is why their signature is the ZIP header PK. The checker looks inside the archive for folders like word/, xl/ or ppt/, or for an EPUB mimetype entry, to report the exact format.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

File Info ViewerCheck file size, type, date and MD5/SHA hashes.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.URL ParserBreak a URL into its parts and edit query string parameters with a live rebuild.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.HAR File ViewerOpen a .har file to see a waterfall timeline, headers, bodies, timings and size totals.Image Format DetectorFind an image's real format from its magic bytes, see size and bit depth, and fix a wrong extension.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Barcode GeneratorCreate Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes as PNG or SVG.UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Schema Markup Generator (JSON-LD)Create JSON-LD structured data for FAQ, Product, Article and more.Fake Data GeneratorGenerate mock data as JSON, CSV or SQL.Random String GeneratorGenerate secure random strings and tokens in bulk with any length and character set.API Key GeneratorCreate secure API keys and secrets with prefixes, checksums and SHA-256 hashes for storage.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs: accents, stop words, separators and bulk lines.JSON Schema GeneratorTurn sample JSON into a draft 2020-12 JSON Schema with types, required fields and formats.Gitignore GeneratorBuild a .gitignore from 50+ templates for languages, frameworks, IDEs and OS, merged and deduped.License GeneratorCreate a LICENSE file for MIT, Apache, GPL, BSD, ISC, MPL or Unlicense with your name and year.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Placeholder Image GeneratorCreate placeholder images in any size, color and text as PNG, JPG, WebP, SVG or data URI.Ads.txt GeneratorCreate or validate ads.txt and app-ads.txt files: seller lines, cert IDs and variables.Docker Run to Compose ConverterConvert docker run commands to docker-compose.yml, or a compose file back to docker run.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.HTML Boilerplate GeneratorTick the options you need and get a clean HTML5 starter template with meta, OG tags and CSS reset.JSON to Zod SchemaInfer a Zod (or Yup) schema from sample JSON with optional, nullable and z.infer types.Linux Commands Cheat SheetSearchable Linux and bash command reference with flags explained, examples and copy buttons.LLMs.txt GeneratorBuild an llms.txt file for AI crawlers: summary and link sections, import from your sitemap.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.Nginx Config GeneratorBuild an nginx server block: static site, SPA, reverse proxy or PHP, with SSL, gzip and redirects.OpenAPI / Swagger ViewerView OpenAPI 2/3 JSON or YAML as interactive API docs with validation and an endpoint list.package.json GeneratorFill a form and get a valid, npm-ready package.json with scripts, dependencies and checks.PKCE Code Challenge GeneratorGenerate an OAuth 2.0 PKCE code_verifier and S256 code_challenge, build auth URLs, verify pairs.README GeneratorFill in a form and get a polished README.md with badges, install, usage and license, live preview.Regex GeneratorBuild regular expressions visually from blocks or presets (email, date, phone) and test them live.Commit Message GeneratorBuild Conventional Commit messages with type, scope, body, breaking change and issue refs.SQL Query BuilderBuild SELECT queries visually: joins, filters, GROUP BY, ORDER BY and LIMIT, as clean SQL.Truth Table GeneratorType a logic expression and get its full truth table, minterms and canonical DNF/CNF.TypeScript PlaygroundWrite TypeScript with live type checking, see the compiled JavaScript and run it in your browser.Article Schema GeneratorCreate Article, BlogPosting or NewsArticle JSON-LD with headline, authors, dates and images.Event Schema GeneratorCreate Event JSON-LD with dates, venue or online location, tickets, organizer and performers.Google Search Query BuilderBuild advanced Google searches with site:, filetype:, intitle:, exact phrases and date operators.HowTo Schema GeneratorCreate HowTo JSON-LD with steps, tools, supplies, total time and cost, then copy it.Htaccess GeneratorBuild an Apache .htaccess file: HTTPS, www, gzip, caching, error pages, IP blocks, hotlinks.HTML Email Template BuilderDrag and drop blocks to build a responsive, table-based HTML email with inline styles.Organization Schema GeneratorCreate Organization JSON-LD with logo, URL, contact points, address and social profiles.PIN GeneratorGenerate random 4, 6 or 8-digit PINs that avoid sequences, repeats, dates and common PINs.Product Schema GeneratorBuild Product JSON-LD with price, availability, brand, GTIN, ratings and reviews.Question Keyword GeneratorFind the questions people ask about a topic, grouped by who, what, why, how, can and more.Recipe Schema GeneratorCreate Recipe JSON-LD with ingredients, steps, prep and cook times, nutrition and ratings.Security Headers GeneratorPick HSTS, CSP, frame, referrer and permissions options and get Apache, Nginx, Netlify or Cloudflare config.SKU GeneratorBuild consistent SKUs from brand, category, size and color, then export every variant as CSV.Typography Scale GeneratorBuild a modular type scale from a base size and ratio, then copy CSS variables or a Tailwind config.WordPress Salt GeneratorGenerate fresh WordPress security keys and salts for wp-config.php, .env or Docker in one click.ANSI Color Code GeneratorStyle terminal text with 16, 256 or RGB colors and get escape codes for bash, Python, JS and C.Apache Virtual Host GeneratorCreate an Apache VirtualHost config with SSL, redirects, reverse proxy or PHP-FPM in seconds.Bash Prompt GeneratorDrag and drop a custom PS1 prompt for bash or zsh with colors, git branch and a live preview.Changelog GeneratorTurn Conventional Commit messages into a grouped Keep a Changelog Markdown file per version.cURL Command BuilderBuild curl commands from a form: method, headers, query, JSON or form body, auth and flags.Docker Compose to KubernetesConvert docker-compose.yml into Kubernetes Deployment, Service, ConfigMap and PVC manifests.Docker Compose ValidatorCheck a docker-compose.yml for YAML errors, schema mistakes, broken references and deprecated keys.Dockerfile LinterLint a Dockerfile for best practices: pinned tags, apt cleanup, non-root USER and layer count.Dockerignore GeneratorBuild a .dockerignore from Node, Python, Go and Java templates, plus your own entries.ESLint Config GeneratorGenerate a flat eslint.config.js for JavaScript, TypeScript, React or Node with rule presets.Git Branch Name GeneratorTurn a ticket ID and title into a clean, valid git branch name like feature/PROJ-12-add-login.GitLab CI Config GeneratorGenerate a .gitlab-ci.yml with stages, jobs, images, cache, artifacts and rules from templates.
See all 85 Code Generators & Builders →