File formats reference

JPG, PNG, WebP, SVG, PDF, MP4, when to use which file format on your website and why it matters.

Time
5 min read
Difficulty
Beginner
Last updated
Updated
Share

The file format you choose affects how your website looks, loads, and performs. This reference page explains every common format, and tells you exactly when to use each one.


Image formats

FormatFull nameBest forNotes
JPG / JPEGJoint Photographic Experts GroupPhotographs and images with many colorsGood compression. Not great for images with text or sharp edges. Does not support transparency.
PNGPortable Network GraphicsLogos, icons, screenshots, images needing transparent backgroundsLarger file size than JPG. Supports transparency. Best when you need crisp edges or a transparent background.
WebPWeb Picture formatReplacing JPG and PNG on modern websitesCreated by Google. Smaller file sizes than JPG and PNG at similar quality. Supported by all modern browsers. The preferred format for web images.
AVIFAV1 Image File FormatNext-generation image compressionTypically compresses better than WebP at similar quality. Now supported by current versions of Chrome, Edge, Firefox, Safari and Opera, so it's safe to use with a JPG or WebP fallback for older browsers.
SVGScalable Vector GraphicsLogos, icons, illustrationsVector format: scales to any size with no quality loss. No pixelation. Can be styled with CSS. Not suitable for photographs.
GIFGraphics Interchange FormatSimple animationsLimited to 256 colors. Low quality. Use CSS animations or video instead for most purposes.
TIFFTagged Image File FormatPrint and professional photographyVery large files, and Safari is the only browser that can display one at all. Keep it for print work and offer it as a download, never as a web image.
HEIC / HEIFHigh Efficiency Image File FormatiPhone/iPad photosThe default format for iPhone photos. Only Safari can display one (Chrome, Edge and Firefox can't) so convert to JPG or WebP before uploading.

Document formats

FormatFull nameBest forNotes
PDFPortable Document FormatDownloadable brochures, menus, forms, reportsPreserves formatting exactly. Opens in browsers and PDF apps. Accessible PDFs need proper tagging. Ask us if this matters for compliance.
DOCXWord DocumentEditable documentsMicrosoft Word format. Not suitable for web display: convert to PDF for sharing or download.
XLSXExcel SpreadsheetData and tablesMicrosoft Excel format. Embed or link as a download.
CSVComma-Separated ValuesData tables, product importsPlain text format for tabular data. Used for WooCommerce product imports and analytics exports.

Video formats

FormatFull nameBest forNotes
MP4 (H.264)MPEG-4 with H.264 encodingWebsite videos, background videosThe most widely supported video format on the web. Good quality and file size balance.
WebMWeb MediaModern browser videoAn open, royalty-free format designed for the web, supported in every major browser. Whether the file is smaller than MP4 depends on the codec inside it. Sometimes offered alongside MP4.
MOVApple QuickTime movieApple recordingsWhat your Mac and iPhone record to. Browsers can't reliably play it: Apple itself uses MP4 for web video, so convert before uploading.
AVIAudio Video InterleaveOlder formatAn old Microsoft container. Not supported for web video: convert to MP4.

Don't upload videos directly to WordPress

Video files are very large. Uploading them directly to WordPress slows your site and fills storage quickly. Use YouTube, Vimeo, or Wistia instead, then embed the video on your page. See How to embed a video.


Audio formats

FormatFull nameBest forNotes
MP3MPEG-1 Audio Layer IIIPodcasts, audio playersThe most widely used and best-supported audio format. Well-compressed.
WAVWaveform AudioUncompressed audioVery high quality but huge files. For audio production, not web delivery.
OGGOgg: an open container, usually holding Vorbis or Opus audioWeb audioOpen format from the Xiph.org Foundation. Compresses more efficiently than MP3 at similar quality, but browser support came late: Safari only added it in a recent version. MP3 is the safer choice.

Font formats

FormatFull nameBest forNotes
WOFF2Web Open Font Format 2Web fontsThe preferred font format for websites. Excellent compression, wide browser support.
WOFFWeb Open Font FormatWeb fonts (older fallback)The predecessor to WOFF2. Still used as a fallback for older browsers.
TTFTrueType FontDesktop use, sometimes webLarger than WOFF2. Common for desktop applications.
OTFOpenType FontDesktop useAdvanced typography features. Large files, not ideal for web.

Which format should I use?

Help me choose

Pick a format

What are you uploading?

For uploading to your website:

  • Photos: WebP (first choice) or JPG
  • Logo on a background: SVG or PNG
  • Transparent logo: SVG or PNG
  • Icon: SVG
  • Screenshots: PNG or WebP

For documents & files:

  • Downloadable file: PDF
  • Product data import: CSV
  • Video: upload to YouTube/Vimeo, embed it
  • Audio: MP3

Common questions

What's the difference between JPG and PNG?

JPG is smaller and great for photographs. PNG supports transparency and is sharper for logos and text-based images. When in doubt, use WebP. It handles both well, with better compression.

Can I use the photos straight from my phone?

You can, but your phone's photos are usually far larger than a web page needs, several megabytes each, and on an iPhone they may be in HEIC format, which most browsers can't display. Always resize and convert them before uploading. See How to compress images.

Why is SVG better for logos?

SVG is a vector format. It's made of mathematical lines, not pixels. It scales perfectly to any size without getting blurry. A single SVG logo looks crisp on a mobile screen and a 4K display alike.

Was this page helpful?

Go deeper on chykalophia.com

Done for you

Rather not do this yourself?

This is everyday work for our team. Book a free discovery call and we'll tell you honestly whether it's worth paying someone for.

Already a client? Email support@chykalophia.com.

Last updated