Skip to main content
Dev · 283 tools

Fake MIME Type Generator

Generates file extensions paired with their correct MIME types

MIME TypesExample — click Generate for yours
  • .jpeg → image/jpeg
  • .odg → application/vnd.oasis.opendocument.graphics
  • .wav → audio/wav
  • .epub → application/epub+zip
  • .aiff → audio/x-aiff
  • .3mf → model/3mf

Generated 6 items

See 3 examples
  • Example 1
    .jpeg  →  image/jpeg
    .odg  →  application/vnd.oasis.opendocument.graphics
    .wav  →  audio/wav
    .epub  →  application/epub+zip
    .aiff  →  audio/x-aiff
    .3mf  →  model/3mf
  • Example 2
    .jpeg  →  image/jpeg
    .epub  →  application/epub+zip
    .eps  →  application/postscript
    .obj  →  model/obj
    .midi  →  audio/midi
    .aiff  →  audio/x-aiff
  • Example 3
    .html  →  text/html
    .tex  →  application/x-tex
    .rtf  →  application/rtf
    .eot  →  application/vnd.ms-fontobject
    .woff2  →  font/woff2
    .m3u8  →  application/vnd.apple.mpegurl

About this generator

Getting a Content-Type header wrong — serving a .svg as text/plain or a .woff2 without its font/ type — causes browsers to mishandle the file, often silently. Having the correct mapping at hand when you configure a server, write upload validation, or document an API prevents those silent failures. This tool generates between 1 and 16 file extension / MIME type pairings from a pool of nearly 200 real mappings, sampling without replacement so you never see duplicates in a single output. The pool covers the types developers look up most often — JSON, HTML, CSS, JavaScript, PNG, JPEG, SVG, WebP, PDF, ZIP, MP4, MP3, CSV, and WOFF2 — plus the ones you look up less often: AVIF and HEIC images, FLAC and Opus audio, WebM and MKV video, Office and OpenDocument files, archives like 7z and zstd, certificates, calendar and contact files, and 3D formats such as glTF, OBJ, and STL. Each entry is formatted as .ext → type/subtype for easy reading. Use the output as a quick reference, paste the types into a server config, or feed them into upload validation logic. Mappings use the IANA-registered type where one exists, and the conventional x- type that servers and browsers recognize where one does not.

How to use

  1. Choose how many pairings you want.
  2. Click Generate to produce MIME types.
  3. Use them to set Content-Type headers.
  4. Reference the correct type per extension.

Use Cases

  • •Configuring Content-Type headers
  • •Testing upload validation
  • •Learning common MIME types
  • •Documenting file handling
  • •Looking up an extension's type

Tips

  • →Set the correct Content-Type for files.
  • →The wrong type can break rendering.
  • →Each extension maps to a real type.
  • →Use it as a quick reference.

FAQ

are the mime type mappings accurate

Yes. Each extension is paired with its genuine MIME type — .json maps to application/json, .svg to image/svg+xml, .woff2 to font/woff2. Where IANA has registered a type, that is the one used; for formats without a registered type (such as .7z or .mkv), the generator uses the conventional x- type that common server configurations send.

what file types are included in the pool

Nearly 200 extensions across text and code (.html, .css, .js, .md, .yaml), data (.json, .xml, .csv, .geojson), images (.png, .jpg, .webp, .avif, .heic, .svg), audio (.mp3, .flac, .opus, .wav), video (.mp4, .webm, .mov, .mkv), fonts (.woff2, .ttf, .otf), archives (.zip, .gz, .7z, .zst), documents (.pdf, .docx, .xlsx, .odt, .epub), certificates and mail (.cer, .p12, .eml), and 3D models (.gltf, .glb, .obj, .stl). Each output is drawn without replacement, so no extension appears twice in one run.

why does the correct mime type matter for serving files

The browser uses the Content-Type header to decide how to handle a response — whether to render an HTML page, display an image, play audio, or prompt a download. Serving a file with the wrong type can cause it to download unexpectedly, fail to render, or in some cases trigger security warnings.

can I get more than 16 types in one output

No — each run returns at most 16 unique pairings. The pool itself holds nearly 200, so generate again for a different set; if you need a type that is not in the pool, look it up in the IANA media types registry.

You might also like

Popular tools from other categories that share themes with this one.