MIME-Typen nachschlagen
MIME-Typen nachschlagen: 178 Einträge von Dateiendung zu Content-Type und umgekehrt, mit Suche nach Dateiname, Endung oder Media Type.
| Endung | MIME-Typ | Beschreibung | Kopieren |
|---|---|---|---|
| .html, .htm | text/html | HTML-Seite | |
| .css | text/css | Stylesheet | |
| .js, .mjs | text/javascript | JavaScript (RFC 9239) | |
| .txt | text/plain | Reiner Text | |
| .csv | text/csv | Kommagetrennte Werte | |
| .tsv | text/tab-separated-values | Tabulatorgetrennte Werte | |
| .md, .markdown | text/markdown | Markdown | |
| .ics | text/calendar | Kalender (iCalendar) | |
| .vcf, .vcard | text/vcard | Visitenkarte (vCard) | |
| .vtt | text/vtt | Untertitel WebVTT | |
| .srt | application/x-subrip | Untertitel SubRip | |
| .xml | application/xml | XML-Dokument (auch text/xml) | |
| .xhtml | application/xhtml+xml | XHTML-Seite | |
| .xsl, .xslt | application/xslt+xml | XSLT-Stylesheet | |
| .dtd | application/xml-dtd | XML-DTD | |
| .rss | application/rss+xml | RSS-Feed | |
| .atom | application/atom+xml | Atom-Feed | |
| .rtf | application/rtf | Rich Text Format | |
| .log | text/plain | Protokolldatei | |
| .diff, .patch | text/x-diff | Diff/Patch | |
| .py | text/x-python | Python-Quelltext | |
| .java | text/x-java-source | Java-Quelltext | |
| .c, .h | text/x-c | C-Quelltext | |
| .sh | application/x-sh | Shell-Skript | |
| .php | application/x-httpd-php | PHP (nur intern, wird serverseitig ausgeführt) | |
| .sql | application/sql | SQL-Skript | |
| .json | application/json | JSON | |
| .jsonld | application/ld+json | JSON-LD (strukturierte Daten) | |
| .map | application/json | Source Map | |
| .webmanifest | application/manifest+json | Web-App-Manifest | |
| .geojson | application/geo+json | GeoJSON | |
| .ndjson | application/x-ndjson | JSON-Zeilen (NDJSON) | |
| .yaml, .yml | application/yaml | YAML (RFC 9512) | |
| .toml | application/toml | TOML | |
| .ipynb | application/x-ipynb+json | Jupyter-Notebook | |
| .wasm | application/wasm | WebAssembly | |
| .bin | application/octet-stream | Beliebige Binärdaten | |
| .sqlite, .sqlite3 | application/vnd.sqlite3 | SQLite-Datenbank | |
| .mdb | application/x-msaccess | Access-Datenbank | |
| .gpx | application/gpx+xml | GPS-Track | |
| .kml | application/vnd.google-earth.kml+xml | Google Earth KML | |
| .kmz | application/vnd.google-earth.kmz | Google Earth KMZ | |
| .torrent | application/x-bittorrent | BitTorrent-Datei | |
application/pdf | PDF-Dokument | ||
| .doc | application/msword | Word 97–2003 | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word-Dokument | |
| .dotx | application/vnd.openxmlformats-officedocument.wordprocessingml.template | Word-Vorlage | |
| .docm | application/vnd.ms-word.document.macroEnabled.12 | Word mit Makros | |
| .xls | application/vnd.ms-excel | Excel 97–2003 | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel-Arbeitsmappe | |
| .xltx | application/vnd.openxmlformats-officedocument.spreadsheetml.template | Excel-Vorlage | |
| .xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | Excel mit Makros | |
| .ppt | application/vnd.ms-powerpoint | PowerPoint 97–2003 | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint-Präsentation | |
| .potx | application/vnd.openxmlformats-officedocument.presentationml.template | PowerPoint-Vorlage | |
| .ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow | PowerPoint-Bildschirmpräsentation | |
| .pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.12 | PowerPoint mit Makros | |
| .vsdx | application/vnd.ms-visio.drawing | Visio-Zeichnung | |
| .msg | application/vnd.ms-outlook | Outlook-Nachricht | |
| .eml | message/rfc822 | E-Mail-Nachricht | |
| .odt | application/vnd.oasis.opendocument.text | OpenDocument Text | |
| .ods | application/vnd.oasis.opendocument.spreadsheet | OpenDocument Tabelle | |
| .odp | application/vnd.oasis.opendocument.presentation | OpenDocument Präsentation | |
| .odg | application/vnd.oasis.opendocument.graphics | OpenDocument Zeichnung | |
| .epub | application/epub+zip | E-Book EPUB | |
| .mobi | application/x-mobipocket-ebook | E-Book Mobipocket | |
| .azw | application/vnd.amazon.ebook | Kindle-E-Book | |
| .ps | application/postscript | PostScript | |
| .eps | application/postscript | Encapsulated PostScript | |
| .ai | application/postscript | Adobe Illustrator (älter) | |
| .zip | application/zip | ZIP-Archiv | |
| .gz, .tgz | application/gzip | Gzip-Archiv | |
| .tar | application/x-tar | Tar-Archiv | |
| .bz2 | application/x-bzip2 | Bzip2-Archiv | |
| .xz | application/x-xz | XZ-Archiv | |
| .zst | application/zstd | Zstandard-Archiv | |
| .7z | application/x-7z-compressed | 7-Zip-Archiv | |
| .rar | application/vnd.rar | RAR-Archiv | |
| .iso | application/x-iso9660-image | CD/DVD-Abbild | |
| .exe, .dll | application/vnd.microsoft.portable-executable | Windows-Programm (oft auch application/x-msdownload) | |
| .msi | application/x-msi | Windows-Installer | |
| .dmg | application/x-apple-diskimage | macOS-Disk-Image | |
| .apk | application/vnd.android.package-archive | Android-App | |
| .deb | application/vnd.debian.binary-package | Debian-Paket | |
| .rpm | application/x-rpm | RPM-Paket | |
| .jar | application/java-archive | Java-Archiv | |
| .class | application/java-vm | Java-Bytecode | |
| .swf | application/x-shockwave-flash | Flash (veraltet) | |
| .pem | application/x-pem-file | PEM-Datei (Zertifikat oder Schlüssel) | |
| .crt | application/x-x509-ca-cert | Zertifikat | |
| .cer | application/pkix-cert | Zertifikat (DER) | |
| .der | application/x-x509-ca-cert | Zertifikat (DER) | |
| .csr | application/pkcs10 | Zertifikatsanfrage | |
| .crl | application/pkix-crl | Sperrliste | |
| .p12, .pfx | application/x-pkcs12 | PKCS#12-Container | |
| .p7s | application/pkcs7-signature | S/MIME-Signatur | |
| .p7m | application/pkcs7-mime | S/MIME-Nachricht | |
| .png | image/png | PNG-Bild | |
| .jpg, .jpeg, .jpe | image/jpeg | JPEG-Bild | |
| .gif | image/gif | GIF-Bild | |
| .webp | image/webp | WebP-Bild | |
| .avif | image/avif | AVIF-Bild | |
| .svg, .svgz | image/svg+xml | SVG-Vektorgrafik | |
| .ico | image/vnd.microsoft.icon | Icon (oft auch image/x-icon) | |
| .bmp | image/bmp | Bitmap | |
| .tif, .tiff | image/tiff | TIFF-Bild | |
| .heic | image/heic | HEIC-Bild (iPhone) | |
| .heif | image/heif | HEIF-Bild | |
| .jxl | image/jxl | JPEG XL | |
| .apng | image/apng | Animiertes PNG | |
| .jp2 | image/jp2 | JPEG 2000 | |
| .psd | image/vnd.adobe.photoshop | Photoshop-Datei | |
| .dng | image/x-adobe-dng | RAW (DNG) | |
| .cr2 | image/x-canon-cr2 | RAW Canon | |
| .nef | image/x-nikon-nef | RAW Nikon | |
| .xcf | image/x-xcf | GIMP-Datei | |
| .woff | font/woff | Webfont WOFF | |
| .woff2 | font/woff2 | Webfont WOFF2 | |
| .ttf | font/ttf | TrueType-Schrift | |
| .otf | font/otf | OpenType-Schrift | |
| .ttc | font/collection | Schriftsammlung | |
| .eot | application/vnd.ms-fontobject | Embedded OpenType (veraltet) | |
| .mp3 | audio/mpeg | MP3-Audio | |
| .wav | audio/wav | WAV-Audio | |
| .ogg, .oga | audio/ogg | Ogg-Audio | |
| .opus | audio/opus | Opus-Audio | |
| .flac | audio/flac | FLAC verlustfrei | |
| .aac | audio/aac | AAC-Audio | |
| .m4a | audio/mp4 | MPEG-4-Audio | |
| .weba | audio/webm | WebM-Audio | |
| .mid, .midi | audio/midi | MIDI | |
| .aif, .aiff | audio/aiff | AIFF-Audio | |
| .wma | audio/x-ms-wma | Windows Media Audio | |
| .amr | audio/amr | AMR-Sprachaufnahme | |
| .m3u | audio/x-mpegurl | Wiedergabeliste M3U | |
| .mp4, .m4v | video/mp4 | MPEG-4-Video | |
| .webm | video/webm | WebM-Video | |
| .ogv | video/ogg | Ogg-Video | |
| .mov | video/quicktime | QuickTime-Video | |
| .avi | video/x-msvideo | AVI-Video | |
| .mkv | video/x-matroska | Matroska-Video | |
| .wmv | video/x-ms-wmv | Windows Media Video | |
| .flv | video/x-flv | Flash-Video | |
| .mpeg, .mpg | video/mpeg | MPEG-Video | |
| .3gp | video/3gpp | 3GPP-Video | |
| .3g2 | video/3gpp2 | 3GPP2-Video | |
| .ts | video/mp2t | MPEG-Transportstrom (nicht TypeScript) | |
| .m3u8 | application/vnd.apple.mpegurl | HLS-Wiedergabeliste | |
| .mpd | application/dash+xml | MPEG-DASH-Manifest | |
| – | application/x-www-form-urlencoded | Formulardaten (Standard bei HTML-Formularen) | |
| – | multipart/form-data | Formular mit Datei-Upload | |
| – | multipart/byteranges | Mehrere Teilbereiche einer Antwort | |
| – | text/event-stream | Server-Sent Events | |
| – | application/problem+json | Fehlerbeschreibung für APIs (RFC 9457) | |
| – | application/jwt | JSON Web Token | |
| – | application/graphql-response+json | GraphQL-Antwort | |
| – | application/x-protobuf | Protocol Buffers (nicht registriert) |
Alles läuft in Ihrem Browser. Eingaben verlassen Ihr Gerät nicht.
Wozu MIME-Typen dienen
MIME-Typen, offiziell Media Types, sagen einem Programm, wie es Daten deuten soll. Ein Webserver schickt sie im Content-Type-Header mit, E-Mail-Programme in den Anhängen, Betriebssysteme nutzen sie zur Zuordnung von Programmen. Der Aufbau ist immer Typ/Untertyp, etwa image/png oder application/pdf. Diese MIME Type Liste enthält 178 Einträge.
Die Zuordnung von Dateiendung zu Media Type erfolgt über Tabellen wie diese, in nginx etwa in der Datei mime.types, in Apache über AddType. Liefert der Server einen falschen Content-Type, zeigt der Browser eine Datei als Text an, lädt ein Skript nicht oder startet einen Download statt der Anzeige. Mit dem Header X-Content-Type-Options: nosniff verlässt sich der Browser ausschließlich auf den gesendeten Typ.
Offiziell registriert werden Media Types bei der IANA. Typen mit x- oder vnd. im Namen sind herstellerspezifisch oder nicht standardisiert; für manche Formate gibt es mehrere verbreitete Schreibweisen, etwa beim Icon. Achtung bei .ts: Gemeint ist der MPEG-Transportstrom, nicht TypeScript.
Anleitung: MIME-Typen in 3 Schritten
- Dateiendung, Dateinamen oder MIME-Typ in das Suchfeld eingeben, etwa .webp, bericht.docx oder application/json.
- In der Tabelle Endung, MIME-Typ und Beschreibung ablesen.
- Den passenden Typ mit „Kopieren“ übernehmen und in Server-Konfiguration, Header oder Code einsetzen.
Typische Anwendungsfälle
- Webserver einrichten: Eine fehlende Zuordnung in der mime.types von nginx oder per AddType in Apache ergänzen.
- Datei-Upload absichern: Die erlaubten Content-Types für ein Upload-Formular festlegen, etwa nur PDF und Bilder.
- API entwickeln: Den richtigen Content-Type für JSON, Fehlerbeschreibungen nach RFC 9457 oder Server-Sent Events setzen.
- Anzeigeprobleme lösen: Klären, warum ein Browser eine Datei herunterlädt statt sie anzuzeigen oder ein Skript blockiert.
Häufige Fragen
Was ist ein MIME-Typ?
Eine standardisierte Angabe zum Datenformat, bestehend aus Typ und Untertyp, etwa text/html. Webserver senden sie im Content-Type-Header.
Welcher MIME-Typ gilt für JavaScript?
text/javascript. RFC 9239 hat application/javascript als veraltet markiert; Browser akzeptieren beide.
Welchen Typ nehme ich für unbekannte Dateien?
application/octet-stream. Der Browser bietet die Datei dann zum Herunterladen an, statt sie anzuzeigen.
Woher kennt der Server die Dateiendung?
Aus einer Zuordnungstabelle in der Konfiguration, bei nginx aus mime.types, bei Apache über AddType oder die Datei mime.types des Systems.
Wie finde ich den MIME-Typ einer Datei heraus?
Unter Linux und macOS mit file --mime-type datei.pdf, das den Inhalt untersucht statt nur die Endung. Im Browser zeigt die Netzwerkanalyse der Entwicklertools den Content-Type, den der Server tatsächlich sendet.
Welchen MIME-Typ haben Office-Dateien wie docx und xlsx?
docx hat application/vnd.openxmlformats-officedocument.wordprocessingml.document, xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet. Die älteren Formate .doc und .xls nutzen application/msword und application/vnd.ms-excel.
Das könnte auch helfen
HTTP-Statuscodes
Alle gängigen HTTP-Statuscodes von 100 bis 511 mit Bedeutung, typischer Ursache und Suche.
ÖffnenHTTP-Header-Referenz
Wichtige Anfrage- und Antwort-Header mit Bedeutung und Beispiel, durchsuchbar.
ÖffnenGit-Befehle
Git-Spickzettel: die wichtigsten Befehle nach Aufgaben gruppiert, durchsuchbar und kopierbar.
ÖffnenBash-Befehle
Bash- und Linux-Befehle für Dateien, Text, Prozesse und Netzwerk, mit Suche und Kopieren.
ÖffnenPort-Liste
Bekannte TCP- und UDP-Ports von 20 bis 51820 mit Dienst und Hinweis, durchsuchbar.
ÖffnenDNS-Records erklärt
DNS-Record einfügen und zerlegen lassen: A, MX, TXT, SPF, SOA, SRV, CAA, HTTPS und mehr.
Öffnen