Skip to content
>_ TrueFileSize.com

Browser File Format Support — Complete Compatibility Table

Which file formats does your browser support? This reference covers 28 image, video, audio, and font formats across Chrome, Firefox, Safari, Edge, Opera, and Samsung Internet — with version numbers and links to test files.

Your Browser: Detecting...

28 formats
FormatChromeFirefoxSafariEdgeOperaSamsungTest
Images
JPEG
JPEG Image
1+1+1+12+1+1+Download
PNG
PNG Image
1+1+1+12+1+1+Download
GIF
GIF (animated)
1+1+1+12+1+1+Download
WebP
WebP Image
32+65+14+18+19+4+Download
AVIF
AVIF Image
No support in older Edge (pre-121), IE, or older Safari
85+93+16+121+71+20+Download
HEIC
HEIC (iPhone)
Safari-only in browsers. Desktop apps (Photos, Preview) support it on macOS.
11+Download
SVG
SVG Vector
4+3+3.2+12+10+1+Download
BMP
BMP Bitmap
1+1+1+12+1+1+Download
ICO
ICO Favicon
1+1+1+12+1+1+Download
TIFF
TIFF Image
Safari displays inline; others typically download.
1+Download
APNG
Animated PNG
59+3+8+79+46+7+
Video & Codecs
MP4/H.264
H.264 in MP4
4+35+3.2+12+25+1+Download
MP4/H.265
H.265 (HEVC) in MP4
Chrome/Edge require hardware decoder. Firefox does not support HEVC.
⚠️107+11+⚠️107+⚠️93+⚠️14+Download
WebM/VP9
VP9 in WebM
29+28+14.1+79+16+2+Download
WebM/AV1
AV1 in WebM/MP4
Newest codec. Safari 17+. Slower to decode on old hardware.
70+67+17+79+57+20+
OGG/Theora
Theora in OGG
Legacy open-source codec. Replaced by VP9/AV1.
4+3.5+79+11+1+
MKV
Matroska Video
No browser supports MKV natively. Use VLC or convert to MP4.
Download
Audio
MP3
MP3 Audio
4+20+3.1+12+25+1+Download
WAV
WAV Audio
8+3.5+3.1+12+25+1+Download
OGG Vorbis
OGG Vorbis Audio
4+3.5+15.4+79+11+1+Download
AAC
AAC Audio
12+22+3.1+12+15+1+Download
FLAC
FLAC Lossless
Safari 11+ supports FLAC in <audio>.
56+51+11+79+43+6+Download
Opus
Opus Audio
33+15+15.4+79+20+4+
Fonts
TTF
TrueType Font
4+3.5+3.1+12+10+1+Download
OTF
OpenType Font
4+3.5+3.1+12+10+1+Download
WOFF
WOFF Web Font
6+3.5+5.1+12+11.5+1+
WOFF2
WOFF2 Web Font
36+39+10+14+23+4+Download
SVG Font
SVG Font (deprecated)
Deprecated. Only Safari supports it. Use WOFF2 instead.
3.1+
Fully supported⚠️ Partial (HW only, conditions) Not supportedVersion numbers = first supported version

How to test format support in your browser

// JavaScript — test image format support
function supportsFormat(mime) {
  const img = document.createElement('canvas');
  return img.toDataURL(mime).startsWith('data:' + mime);
}
console.log('WebP:', supportsFormat('image/webp'));
console.log('AVIF:', supportsFormat('image/avif'));

// Test video codec support
const video = document.createElement('video');
console.log('H.264:', video.canPlayType('video/mp4; codecs="avc1.42E01E"'));
console.log('H.265:', video.canPlayType('video/mp4; codecs="hvc1"'));
console.log('VP9:',   video.canPlayType('video/webm; codecs="vp9"'));
console.log('AV1:',   video.canPlayType('video/mp4; codecs="av01.0.01M.08"'));

// Test audio format support
const audio = document.createElement('audio');
console.log('MP3:',  audio.canPlayType('audio/mpeg'));
console.log('FLAC:', audio.canPlayType('audio/flac'));
console.log('Opus:', audio.canPlayType('audio/opus'));

Recommended formats for maximum compatibility

Use CaseBest FormatFallback
Web photosAVIF → WebPJPEG
Icons / logosSVGPNG
Web videoMP4/H.264WebM/VP9
Web audioMP3 or AACOGG Vorbis
Web fontsWOFF2WOFF → TTF

Frequently Asked Questions

Related reading