consolelog.tools

MIME Type Lookup

Look up the MIME (content) type for any file extension or filename, or find the extensions for a content type — live. Search across hundreds of types, browse by category, see whether a type is compressible, and copy values or pipe the matches as JSON. Runs entirely in your browser.

About this ToolHow it works, benefits & use cases

Look up the MIME (content) type for a file extension or filename, or go the other way and find which extensions belong to a content type — the search runs live across hundreds of entries. Type "png" and you get image/png; type a full filename like archive.tar.gz and it resolves the right type; type "image/" or "application/json" and it lists matching types and their extensions. When an exact lookup finds nothing the tool automatically broadens to a free-text search so you still get useful results. Each result card shows the MIME type, a short description, its associated extensions, its category, and whether the type is compressible (benefits from gzip/brotli) or already binary. You can also browse the whole catalogue by category, copy any value with a click, and export the matches as JSON. Everything runs in your browser.

How to Use

  1. 1Type an extension (png), a filename (archive.tar.gz), or a MIME type (application/json) into the search box.
  2. 2Read the result cards — MIME type, description, associated extensions, category, and a compressible/binary badge.
  3. 3If an exact lookup finds nothing, the tool falls back to a free-text search automatically.
  4. 4Click any MIME type or its copy button to copy the value.
  5. 5Click a category chip under "Browse by category" to see every type in that group.
  6. 6Copy, download, or pipe the matches as JSON to another tool.

Key Benefits

  • Two-way lookup: extension or filename to MIME type, and MIME type to extensions
  • Automatic fallback to free-text search when an exact lookup misses
  • Each result shows description, extensions, category, and compressibility
  • Compressible vs binary badge to inform gzip/brotli decisions
  • Browse the full catalogue grouped by category
  • One-click copy of any MIME value and JSON export of all matches
  • Hundreds of types covered, all resolved in your browser

Common Use Cases

  • Setting the correct Content-Type header when serving a file from a backend
  • Configuring an upload validator to accept specific MIME types
  • Finding which file extensions map to a given content type for a download handler
  • Deciding whether a response type benefits from gzip/brotli compression
  • Looking up the type for an unusual or compound extension like .tar.gz

Browse by category

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools