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

How do I check if my browser supports a format?
The table above auto-detects your browser and highlights its column. You can also use JavaScript: for images, use canvas.toDataURL(mime); for video/audio, use element.canPlayType(mime). Or simply download a sample file from TrueFileSize and try to open it in your browser.
Why doesn't my browser play HEVC/H.265 video?
H.265 (HEVC) has patent licensing issues that prevent most browsers from including it by default. Chrome and Edge support it only with a hardware decoder (newer GPUs). Firefox does not support it at all. Safari supports it fully. For web video, use H.264 (universal) or AV1 (royalty-free, newest).
What image format should I use for the web in 2025?
Use the <picture> tag with AVIF first (92%+ support, smallest files), WebP second (96%+), and JPEG as fallback (100%). For logos and icons, use SVG. This gives every browser the best format it supports automatically.
Why can't I open HEIC files from my iPhone in Chrome?
HEIC is Apple's proprietary format. Only Safari supports it in browsers. Chrome, Firefox, and Edge cannot display HEIC. Convert to JPEG or WebP for web use. iPhone Settings → Camera → Formats → 'Most Compatible' switches to JPEG.
Is this data kept up to date?
We update this table when major browser releases add new format support. Data is sourced from caniuse.com and browser release notes. The auto-detection feature tests your actual browser at visit time.

Related reading