MIME & Content-Type Studio

Search extensions and MIME types both ways, get problems in a Content-Type header pointed out, and compare a dropped file’s extension, browser file.type and real content. Server config drafts are generated too.

On-device・No upload

Your files and input are processed only inside your browser on this device and are never uploaded to our servers.

How to use

  1. In “Search” enter an extension (xlsx), a MIME (application/json) or a word (video). Candidates appear labelled official, common or deprecated.

  2. Drop a file into “Check a file” to compare the MIME implied by its extension, the file.type the browser assigned, and the type detected from its first bytes. Mismatches are flagged.

  3. Paste a response header value into “Content-Type” to split it into type, subtype, +suffix and parameters and see grammar problems. You can also build a value with a charset below.

  4. In “Make config” list extensions and pick nginx, Apache, .htaccess, Express or S3 for a draft. The download Content-Disposition builder is here too.

  5. Read “Field notes” for pitfalls with JSON, JavaScript, SVG, WebAssembly, fonts, octet-stream and Office’s long MIME types.

What it does

Official, common and deprecated kept apart

IANA-registered values, de-facto values that servers and operating systems really use, and deprecated ones such as application/javascript or image/jpg are labelled separately, with the replacement shown. When an extension has several candidates they are ordered by preference.

Checked against the real content

The extension, the browser’s file.type and the first-bytes signature are shown side by side, catching executables or text posing as images. .docx, .xlsx and .pptx are checked down to the ZIP structure to tell them from a renamed plain ZIP. Files are never uploaded.

Content-Type parsed with RFC 9110 grammar

Tokens, quoted strings, escapes and whitespace are handled as the RFC specifies. It flags charset placement, spaces around “=”, duplicate parameters, unknown charsets, missing boundaries and merged multiple values, and prints a cleaned value.

Config drafts and download headers

Generates an nginx types block, Apache AddType, .htaccess, Express express.static and S3 aws commands plus SDK code. Non-ASCII file names get a Content-Disposition with filename* alongside an ASCII fallback.

Use cases

  • Check that an uploaded file’s extension matches its content
  • Write server config for a new extension such as .wasm, .webp or .woff2
  • Trace a “Refused to execute script … MIME type” error to its Content-Type
  • Copy the long Excel or Word MIME type exactly
  • Build a Content-Disposition for downloads with non-ASCII file names

Supported formats

Input

Extensions, MIME types, keywords (text)Content-Type header valuesAny file (for checking; only the first 4 KB and ZIP entry names are read)

Capability matrix

FeatureSupportNotes
Extension ⇔ MIME search (partial match, descriptions)Supported—
Extension vs file.type vs content mismatch checkSupported—
Content-Type parsing and diagnostics (RFC 9110 grammar)Supported—
nginx / Apache / .htaccess / Express / S3 config generationSupported—
Content-Disposition for non-ASCII file namesSupported—
Every MIME type in existencePartialA table of the main formats, not the full IANA registry
Detection from file contentPartialCovers the main image, audio, video, document, archive and font formats; text types cannot be confirmed
Fetch a server’s real response headersNot supportedNo network access. Run curl -I or use devtools and paste the value
Virus or malware scanningNot supportedIt reports format mismatches, not safety

Limits & notes

  • This tool makes no requests. Read the response headers with curl -I or browser devtools and paste the value.
  • The table covers the main formats and is not exhaustive. A MIME that is not listed can still be checked for grammar.
  • File checks use a 4 KB signature. For ZIP-based files only the central directory at the end is read to list entry names (ZIP64 and damaged ZIPs fall back to the extension). At most 50 files at a time.
  • The browser’s file.type depends on OS registration, so it differs between machines.
  • Default tables of nginx and Apache vary by version. Validate generated config with each server’s syntax check before applying it.

Privacy & safety

Text you enter and files you drop are processed in your browser only. Nothing is sent to or stored on a server.

FAQ

What is the MIME type of .xlsx?
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet. It cannot be shortened. The older .xls is application/vnd.ms-excel and .csv is text/csv. Search “xlsx” to copy it.
Is JavaScript not application/javascript?
RFC 9239 (2022) made text/javascript the single type and obsoleted application/javascript. Module scripts need text/javascript as well.
Can I use image/jpg?
No such MIME type is registered; the correct one is image/jpeg. Browsers are lenient, but servers should send image/jpeg.
What does X-Content-Type-Options: nosniff do?
It stops the browser from ignoring Content-Type and guessing the type from the content. Scripts and stylesheets then only run with the right MIME type, which blocks HTML disguised as an image.
Is a chosen file uploaded?
No. Detection runs in your browser; neither the file’s content nor its name is sent anywhere.
How do I serve a download with a Japanese file name?
Use Content-Disposition with filename*=UTF-8''… (percent-encoded UTF-8) plus an ASCII filename for old clients. “Make config” generates it.

Date & Time Studio — Unix Timestamp & Time Zone Converter

Paste a Unix timestamp or almost any date string — the unit and format are detected automatically and shown in 15 formats and multiple time zones. DST gaps, month ends and Japanese era boundaries are handled precisely.

Encode / Decode Studio — Base64, URL, JWT & more

Paste %E3%81%82, an eyJ… token or any encoded string — the format is detected and decoded instantly. Errors say exactly which character is wrong and why, and nothing leaves your browser.

Markdown Studio — Live Editor & Preview

A split-view Markdown editor with instant GFM preview, a table formatter that aligns pipes, an automatic table of contents and HTML export. Output is always sanitized and external images load only when you allow them.

Text Studio — Character Counter & Text Cleaner

Paste text to see characters, words, lines and bytes instantly, then clean it up in one click — change case, remove duplicate or blank lines, sort naturally, convert line breaks. Every action reports what changed and can be undone.

Unicode Inspector — Character & Invisible Text Analyzer

Paste text to break it into characters with U+ codes, byte sequences and categories. Hidden zero-width spaces, BOMs, bidi controls and look-alike letters are detected and can be removed in one click.

IT Calculator (Storage, Transfer, Uptime, RAID)

Convert storage units (SI GB vs IEC GiB), estimate transfer time from file size and line speed, turn an uptime percentage into allowed downtime, and size RAID arrays, all with the formula shown. Type values with units, like “1.5GB” or “100Mbps”.

Last updated: