DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeInfo / GuidesMIME Types Reference

About MIME Types Reference

MIME Types Reference preview - Info / Guides tool

Lookup MIME types and file extension mappings. Part of the DevTools Surf developer suite. Browse more tools in the Info / Guides collection.

Use Cases

  • Look up the correct Content-Type header for a file extension before setting it in a server response.
  • Find the file extension for a MIME type received in an API response to determine how to handle it.
  • Verify which MIME types a browser can render natively vs. those that trigger a download.
  • Identify the correct multipart/* subtype for form submissions, file uploads, or email attachments.

Tips

  • Use 'application/octet-stream' as the fallback MIME type for unknown binary files — browsers will prompt a download rather than attempting to render.
  • Set Content-Type headers precisely — sending HTML as text/plain prevents the browser from parsing it; sending CSV as text/plain works but prevents auto-download behavior.
  • Check the IANA registry link for official MIME types before using non-standard types — unofficial types should use the x- prefix by convention (e.g., application/x-custom).

Fun Facts

  • MIME (Multipurpose Internet Mail Extensions) was defined in RFC 1341 in 1992 to allow email to carry non-ASCII content. The same mechanism was later adapted for HTTP Content-Type headers.
  • There are over 1,900 registered MIME types in the IANA registry as of 2024, covering media, application, text, model, font, and message categories. New types are registered via formal IANA review.
  • The 'application/json' MIME type was officially registered in RFC 4627 in 2006 — despite JSON being in widespread use for several years before the MIME type was formally standardized.

FAQ

What's the difference between text/html and application/xhtml+xml?
text/html is parsed in HTML mode (lenient). application/xhtml+xml is parsed as strict XML — a single malformed tag causes a parse error instead of recovery. Use text/html for all modern web pages.
What MIME type should I use for JSON?
application/json is the correct type for JSON API responses. text/json is non-standard. application/geo+json and application/ld+json are registered subtypes for specific JSON-based formats.
Does MIME type affect SEO?
Indirectly — search engines crawl content-type to determine how to parse responses. HTML served as text/plain may not be indexed correctly. Serving non-text content as text/* can cause indexing failures.

Related Info / Guides Tools

Docker BasicsSEO Basics for DevelopersREST API BasicsNext.js App Router BasicsConnect Your Site to GoogleGit Basics (First Hour)Kubernetes BasicsGraphQL vs REST
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf912+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback