Nouplo

MIME-Typen

Was in Content-Type gehört – und was passiert, wenn es falsch ist.

Typen
50
Ergebnis
html htm  text/html
            A web page. Always with charset=utf-8.
css       text/css
js mjs    text/javascript
            application/javascript is obsolete but still served everywhere.
json      application/json
            No charset parameter: JSON is UTF-8 by definition.
xml       application/xml
            text/xml is also registered and means the same to browsers.
txt       text/plain
csv       text/csv
md        text/markdown
yaml yml  application/yaml
            Registered in 2024; text/yaml is what older servers send.
pdf       application/pdf
zip       application/zip
gz        application/gzip
tar       application/x-tar
7z        application/x-7z-compressed
rar       application/vnd.rar
png       image/png
jpg jpeg  image/jpeg
            Note the type is jpeg even when the extension is jpg.
gif       image/gif
webp      image/webp
avif      image/avif
svg       image/svg+xml
            Served as anything else, a browser will not render it.
ico       image/x-icon
            image/vnd.microsoft.icon is the registered one; both work.
bmp       image/bmp
tif tiff  image/tiff
heic      image/heic
mp4 m4v   video/mp4
webm      video/webm
mov       video/quicktime
mp3       audio/mpeg
            Not audio/mp3, which is not registered.
m4a       audio/mp4
wav       audio/wav
            audio/x-wav and audio/wave appear in the wild too.
ogg oga   audio/ogg
flac      audio/flac
woff2     font/woff2
woff      font/woff
ttf       font/ttf
otf       font/otf
wasm      application/wasm
            Must be exact or streaming compilation refuses it.
doc       application/msword
docx      application/vnd.openxmlformats-officedocument.wordprocessingml.document
xls       application/vnd.ms-excel
xlsx      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
ppt       application/vnd.ms-powerpoint
pptx      application/vnd.openxmlformats-officedocument.presentationml.presentation
epub      application/epub+zip
ics       text/calendar
vcf       text/vcard
srt       application/x-subrip
vtt       text/vtt
            Must be exact or the browser ignores the track.
bin       application/octet-stream
            The fallback: bytes with nothing said about them.

Ihre Dateien bleiben auf Ihrem Gerät

Dieses Tool läuft vollständig in Ihrem Browser. Was Sie einfügen, wird auf Ihrem Gerät verarbeitet und nie an einen Server gesendet. Es ist daher auch für Tokens, Schlüssel und unveröffentlichte Texte sicher.

So funktioniert es

  1. Das Feld leer lassen für die Liste.
  2. Eine Endung eintippen – png oder .png – für ihren Typ.
  3. Einen Teil eines Typs eintippen, etwa image/, für alles darunter.
  4. Die Hinweise lesen: einige davon scheitern leise statt laut.

Häufige Fragen

Welche sind wirklich wichtig?
Die, bei denen ein Browser sich weigert zu handeln, wenn sie falsch sind. Ein SVG als text/plain wird nicht dargestellt. Ein WebAssembly-Modul unter irgendetwas anderem als application/wasm lässt sich nicht streamen. Eine .vtt-Untertiteldatei mit falschem Typ wird stillschweigend nicht geladen.
Heißt es text/javascript oder application/javascript?
text/javascript. application/javascript war jahrelang die Empfehlung und gilt inzwischen als überholt, aber beide funktionieren überall, und die alte Form wird Ihnen weiter begegnen.
Soll ich charset=utf-8 anhängen?
An text/html und text/plain ja. An application/json nicht – JSON ist per Definition UTF-8, und ein charset-Parameter darauf ist bedeutungslos, wenn auch harmlos.
Was ist application/octet-stream?
„Ein paar Bytes, und ich sage Ihnen nicht, welche.“ Es ist die richtige Antwort, wenn man es wirklich nicht weiß, und es bringt einen Browser dazu, herunterzuladen statt anzuzeigen.
Wird etwas an einen Server geschickt?
Nein. Es läuft im Browser, was Sie eingeben, bleibt auf Ihrem Rechner.

Verwandte Tools