developer validator

MIME Type Validator

Validate MIME type strings before using them in headers or configs.

Results

Paste input and validate locally.
Status
Ready when you validate.
Details
Ready when you validate.

Rules & checks

Validates structure like type/subtype.

Runs locally; no network requests.

When to use it

  • Validate MIME types before setting Content-Type headers
  • Check uploads or API specs for correct media types
  • Normalize MIME values in config files

Tips

  • Match MIME type to actual file content to avoid client errors
  • Use charset when appropriate, e.g., text/html; charset=utf-8

Examples

Valid

  • application/json -> valid

Invalid

  • json -> invalid format

FAQs

Do you verify file contents?
No. This checks MIME string format only.
Are vendor types supported?
Yes, as long as they follow type/subtype syntax.

Related validators

Format-only; does not check server support.