WebGroundwebground.app
Info & Guider · Webbreferens

Referens för MIME-typer & Filändelser

Slå upp rätt MIME-typ (medietyp) för vanliga filändelser: bilder, ljud, video, text, dokument, arkiv och webbtypsnitt.

Visar 52 av 52
  • .jpg, .jpeg
    MIME-typ
    image/jpeg
    Beskrivning
    JPEG-foto med förstörande komprimering
  • .png
    MIME-typ
    image/png
    Beskrivning
    PNG-bild med förlustfri komprimering och transparens
  • .gif
    MIME-typ
    image/gif
    Beskrivning
    GIF-bild, stöder enkel animering
  • .webp
    MIME-typ
    image/webp
    Beskrivning
    WebP-bild, förstörande eller förlustfri, mindre än JPEG
  • .avif
    MIME-typ
    image/avif
    Beskrivning
    AVIF-bild baserad på AV1, mycket effektiv komprimering
  • .svg
    MIME-typ
    image/svg+xml
    Beskrivning
    SVG, skalbar vektorgrafik
  • .ico
    MIME-typ
    image/vnd.microsoft.icon
    Beskrivning
    Ikonfil, används ofta som favicon
  • .bmp
    MIME-typ
    image/bmp
    Beskrivning
    Okomprimerad bitmappsbild
  • .tif, .tiff
    MIME-typ
    image/tiff
    Beskrivning
    TIFF-bild som används för tryck och skanning
  • .heic
    MIME-typ
    image/heic
    Beskrivning
    HEIC-foto, standard på nyare iPhones
  • .mp3
    MIME-typ
    audio/mpeg
    Beskrivning
    MP3-ljud
  • .wav
    MIME-typ
    audio/wav
    Beskrivning
    Okomprimerat WAV-ljud
  • .oga, .ogg, .opus
    MIME-typ
    audio/ogg
    Beskrivning
    Ogg-ljud (Vorbis eller Opus)
  • .aac
    MIME-typ
    audio/aac
    Beskrivning
    AAC-ljud
  • .flac
    MIME-typ
    audio/flac
    Beskrivning
    Förlustfritt FLAC-ljud
  • .m4a
    MIME-typ
    audio/mp4
    Beskrivning
    MPEG-4-ljud, oftast AAC
  • .weba
    MIME-typ
    audio/webm
    Beskrivning
    WebM-ljud
  • .mp4
    MIME-typ
    video/mp4
    Beskrivning
    MPEG-4-video
  • .webm
    MIME-typ
    video/webm
    Beskrivning
    WebM-video
  • .ogv
    MIME-typ
    video/ogg
    Beskrivning
    Ogg-video
  • .mov
    MIME-typ
    video/quicktime
    Beskrivning
    QuickTime-video
  • .avi
    MIME-typ
    video/x-msvideo
    Beskrivning
    AVI-video
  • .mkv
    MIME-typ
    video/x-matroska
    Beskrivning
    Matroska-video
  • .ts
    MIME-typ
    video/mp2t
    Beskrivning
    MPEG-transportström för videostreaming
  • .html, .htm
    MIME-typ
    text/html
    Beskrivning
    HTML-webbsida
  • .css
    MIME-typ
    text/css
    Beskrivning
    CSS-formatmall
  • .js, .mjs
    MIME-typ
    text/javascript
    Beskrivning
    JavaScript-kod
  • .csv
    MIME-typ
    text/csv
    Beskrivning
    Tabell med kommaavgränsade värden
  • .txt
    MIME-typ
    text/plain
    Beskrivning
    Oformaterad text
  • .md
    MIME-typ
    text/markdown
    Beskrivning
    Markdown-text
  • .ics
    MIME-typ
    text/calendar
    Beskrivning
    iCalendar-fil för händelser
  • .vtt
    MIME-typ
    text/vtt
    Beskrivning
    WebVTT-undertexter för HTML-video
  • .json
    MIME-typ
    application/json
    Beskrivning
    JSON-data
  • .jsonld
    MIME-typ
    application/ld+json
    Beskrivning
    JSON-LD, länkade och strukturerade data
  • .xml
    MIME-typ
    application/xml
    Beskrivning
    XML-data
  • .pdf
    MIME-typ
    application/pdf
    Beskrivning
    PDF-dokument
  • .wasm
    MIME-typ
    application/wasm
    Beskrivning
    WebAssembly-modul
  • .bin
    MIME-typ
    application/octet-stream
    Beskrivning
    Allmänna binära data, startar en nedladdning
  • .docx
    MIME-typ
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
    Beskrivning
    Microsoft Word-dokument
  • .xlsx
    MIME-typ
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    Beskrivning
    Microsoft Excel-kalkylblad
  • .pptx
    MIME-typ
    application/vnd.openxmlformats-officedocument.presentationml.presentation
    Beskrivning
    Microsoft PowerPoint-presentation
  • .webmanifest
    MIME-typ
    application/manifest+json
    Beskrivning
    Webbappmanifest för installerbara webbplatser
  • .epub
    MIME-typ
    application/epub+zip
    Beskrivning
    E-bok i EPUB-format
  • .zip
    MIME-typ
    application/zip
    Beskrivning
    ZIP-arkiv
  • .gz
    MIME-typ
    application/gzip
    Beskrivning
    Gzip-komprimerad fil
  • .tar
    MIME-typ
    application/x-tar
    Beskrivning
    Tar-arkiv
  • .7z
    MIME-typ
    application/x-7z-compressed
    Beskrivning
    7-Zip-arkiv
  • .rar
    MIME-typ
    application/vnd.rar
    Beskrivning
    RAR-arkiv
  • .woff
    MIME-typ
    font/woff
    Beskrivning
    WOFF-webbtypsnitt
  • .woff2
    MIME-typ
    font/woff2
    Beskrivning
    WOFF2-webbtypsnitt med bättre komprimering
  • .ttf
    MIME-typ
    font/ttf
    Beskrivning
    TrueType-typsnitt
  • .otf
    MIME-typ
    font/otf
    Beskrivning
    OpenType-typsnitt

Vad är en MIME-typ?

En MIME-typ, även kallad medietyp, talar om för webbläsare och servrar vilken sorts fil de hanterar. Den består av en typ och en undertyp åtskilda av ett snedstreck, till exempel image/png eller application/json.

Webbservrar skickar den i headern Content-Type. Ett felaktigt värde kan göra att skript inte körs, att bilder laddas ner i stället för att visas eller att typsnitt inte läses in.

Tips för att servera filer

De flesta servrar och CDN:er sätter typen automatiskt utifrån filändelsen, men egna filtyper kan behöva konfigureras manuellt.

  • Lägg till ; charset=utf-8 för texttyper som text/html och text/css.
  • Använd application/octet-stream för att tvinga fram en nedladdning av okända binära data.
  • Skicka X-Content-Type-Options: nosniff så att webbläsare litar på den angivna typen.

Vanliga frågor (FAQ)

Ska JavaScript använda text/javascript eller application/javascript?+

text/javascript är den gällande standarden (RFC 9239). Webbläsare accepterar fortfarande det äldre application/javascript.

Vilken MIME-typ ska JSON-API:er returnera?+

application/json. JSON som utbyts mellan system måste vara UTF-8, så en charset-parameter behövs inte.

Varför börjar vissa typer med x-?+

Prefixet x- markerar typer som aldrig har registrerats officiellt hos IANA. Många används ändå flitigt, till exempel application/x-tar.

Utforska fler verktyg på WebGround

Visa alla