Choosing the right image file types might seem like a trivial decision.

But human beings are visual creatures, and images are an integral part of the online experience.

Most pages and articles use screenshots and images to enrich the text content. In fact, only around 8% of websites don’t include any visual content.

Unfortunately, many website owners still don’t understand which image file types to choose for different use cases. The result? They end up slowing down their site loading speed because their images aren’t the best format available, nor are optimized.

In this article, we’ll cover all the most important image file extensions and when you should use them to provide the best possible user experience to your visitors.

What Are the Different Image File Types?

Image file types and formats are divided into two main different categories: raster image files and vector image files.

Let’s take a closer look at each category.

Raster Image File Formats

The most common image formats for the web (JPEG, GIF, and PNG) are all under the raster category.

Raster image file types display static images where every pixel has a defined color, position, and proportion based on their resolution (for example 1280×720).

Since they’re static, you cannot efficiently resize the images, the original design and pixels will simply get stretched to fill the extra space. This ends up creating a blurry, pixelated, or otherwise distorted image.

Image file types: raster image jpg
Raster Image – JPEG example

The vast majority of the photographs or images you see on the internet use a raster image format.

Vector Image File Formats

SVG, EPS, AI, and PDF are examples of vector image file types.

Unlike the static raster image file formats, where each design shape and color is tied to a pixel, these formats are more flexible.

Vector graphics instead use a system of lines and curves on a cartesian plane, scaled in comparison to the total area, not any single pixel.

This means you can endlessly enlarge the original image resolution without any loss in quality or distortion.

Image file types: vector image
Vector Image Format Magnification (Image source: Wikipedia.com)

As you can see, the difference between quality when magnified 7x is completely incomparable.

Since the SVG calculates the positions based on a percentage of the total area, and not pixels, there’s no pixelation at all.

15 Most Popular Image File Types

Below, we cover every major graphic file format, from raster web images, to vectors, to image editing software files.

We do a deep-dive and cover the pros and cons, browser and OS support, and ideal use cases for each format.

1.JPEG (And JPG) — Joint Photographic Experts Group

tiger jpg
Tiger Image JPEG Format

JPEG (or JPG) is a raster image file format with lossy compression that makes it suitable for sharing images. JPEGs are “lossy” meaning they reduce file size, but also the quality of the images when you use the format.

JPEG is still one of the most used image file types that you’ll see on the internet because of its compression and virtually universal browser/OS support.

Most social media platforms (like Facebook and Instagram) automatically turn uploaded image files into JPEGs. They also use unique social media image sizes to control the resolution of your photos.

Advantages and Disadvantages

  • Universal browser and OS support.
  • Fairly low file size.
  • Lossy image compression might lead to poor text readability.

Browser and OS Support

  • Supported since version 1.0 of all major browsers (Chrome, Firefox, Safari, etc.)
  • Supported by default by all image viewers and editors of all major operating systems.

Use Cases

  • Good choice for blog and article images, like interviewee headshots, product images, and more.
  • Do not use JPEG for infographics with a lot of small text or tutorial screenshots where the text is key.

2. PNG — Portable Network Graphics

Image file types: kinsta resource center png image
Kinsta’s resource center .png image file

PNG is a raster graphics format that supports lossless compression, maintaining detail and contrast between colors.

In particular, PNG offers much better text readability than JPEG.

This makes PNG a more popular choice for infographics, banners, screenshots, and other graphics that include both images and text.

Advantages and Disadvantages

Browser and OS Support

  • Supported by all major browsers (Chrome, Edge, Firefox, Internet Explorer, Opera, Safari).
  • Supported by all major operating systems and their standard image editors.

Use Cases

  • Good choice for infographics, banners, blog graphics, screenshots, coupons, and other visuals that include text.
  • Do not use for high-resolution photos, as it will create large files of up to several megabytes.

3. GIF — Graphics Interchange Format

Image file types: turtle dancing gif
Example of a gif image

The GIF is another image file type falling within the raster format. It uses lossless compression but “constrains” the image to 8 bits per pixel and a limited palette of 256 colors.

The GIF format is most famous (and most used) for animated images because its 8-bit limitation keeps file sizes of animations small and internet-friendly.

Advantages and Disadvantages

  • Low file size.
  • Animation support.
  • 8-bit limitation leads to limited image quality.

Browser and OS Support

  • Supported by all major browsers (Chrome, Edge, Firefox, Internet Explorer, Opera, Safari).
  • Supported by all major operating systems and their standard image editors.

Use Cases

  • Use animated GIFs not just to “spice up content” but demonstrate how to complete tasks in tutorials and guides.
  • Do not use it if you need greater than 8-bit color images (JPEG supports up to 24-bit).

4. WebP

Image file types: webp image compression
WebP image example

WebP is an image format developed specifically to provide better lossless and lossy compression of images.

Switching from JPEG and PNG to WebP can help save server disk space and significant bandwidth, with up to 35% smaller image files for identical quality.

Advantages and Disadvantages

  • Smaller files for the same or better image quality.
  • Not supported by all browsers and image editors.

Browser and OS Support

  • Google Chrome (Version 17+ for desktop, 25+ for mobile), Firefox (65+), Edge (18+), and Opera (11.0+), support WebP natively. Safari’s planned version 14 will support WebP.
  • The format is still not supported by most native OS image editors, but professional options like Photoshop supports WebP.

Use Cases

5. TIFF

Image file types: tiff icon
TIFFC icon

One format that shouldn’t be missing in this guide to image file types,  we have TIFF.

TIFF, which is short for Tagged Image File Format, is a raster image format most commonly used for storing and editing images that will be later used for print.

While it does support lossy compression, it’s typically used as a lossless image format. Furthermore, most professional graphics applications that support TIFF (Photoshop, Illustrator, etc.) do not use compression. Thus, it’s common for TIFF images to be large in file size.

Advantages and Disadvantages

  • High-quality files perfect for storage or print publishing.
  • Large file size due to typical use with no compression.
  • Limited browser support.

Browsers and OS Support

  • No major browsers can render a TIFF file without add-ons or extensions.
  • Mainly available as an export format for professional image editing and publishing tools.

Use Cases

  • Storing and preparing images and graphics for publication.
  • Used by many scanners to preserve the quality of scanned documents or pictures.

6. BMP — Bitmap

Image file types: bmp vs gif
Bitmap vs gif

Bitmap (BMP) is a mostly outdated image file format that maps individual pixels with little to no compression. That means BMP files can easily become extremely large and are impractical to store or handle.

Advantages and Disadvantages

  • Giant file sizes without noticeable quality gains over formats like WebP, GIF, or PNG.

Browsers and OS Support

  • Supported by all major browsers (Chrome, Edge, Firefox, Internet Explorer, Opera, Safari).
  • Native support in most default OS image editors, like MS Paint.

Use Cases

  • In 2024, there are basically zero legitimate use cases for the BMP image format.

7.  HEIF — High Efficiency Image File Format

Image file types: jpeg vs heif
JPEG vs HEIF format

HEIF, short for High Efficiency Image File Format, is an image format developed by the team behind the MPEG video format to be a direct competitor to JPEG.

In theory, the compression is almost twice as efficient as JPEG, leading to images of up to double quality with identical file sizes.

It’s a raster image format, based on pixel mapping, meaning you cannot scale up the images without losing quality.

Advantages and Disadvantages

  • Great quality to file size ratio.
  • No browser and limited OS support.

Browsers and OS Support

  • Not supported by any major browsers.
  • Native support in macOS Sierra and iOS 11 and later, but not in their respective Safari versions.

Use Cases

  • Used by some newer phones and devices to store photos in higher quality than JPEG files.

8. SVG — Scalable Vector Graphics

Image file types: SVG logo
SVG logo

The Scalable Vector Graphics file format, usually referred to as SVG, was developed by W3C as a markup language to render two-dimensional images right within the browser.

It doesn’t rely on pixels like a raster format, but rather uses XML text to outline shapes and lines in a similar way to how mathematical equations create graphs.

This means you can scale up SVG images infinitely without any loss of quality.

Advantages and Disadvantages

  • Small file sizes and loss-free scaling for simple illustrations, shapes, and text.
  • Not an ideal format for images or complex drawings.

Browsers and OS Support

  • Supported by all major browsers (Chrome, Edge, Firefox, Internet Explorer, Opera, Safari).
  • Default image editors tend not to support SVG (as it’s not suitable for photographs), but most illustration software support SVG exports.

Use Cases

9. EPS — Encapsulated Postscript

EPS icon
EPS icon

In essence, an EPS (Encapsulated PostScript) file is a vector image file used for storing illustrations in Adobe Illustrator and other illustration software like CorelDraw.

Like SVG files, EPS is actually a text-based document that outlines shapes and lines with code, rather than mapping pixels and colors. As a result, EPS files also support lossless scaling.

Advantages and Disadvantages

  • Lossless scaling.
  • Printer support for documents and designs.

Browsers and OS Support

  • EPS isn’t a standard web image file format and isn’t supported by any major browsers.

Use Cases

  • It’s mostly used for storing, saving, and printing illustrations when working with Adobe Illustrator or other software.

10. PDF — Portable Document Format

adobe pdf
PDF file example

You probably associate PDF with storing, saving, and reading mostly-text based documents. That’s perfectly understandable — document is right there in the name after all.

But PDF files are actually based on the same PostScript language that powers EPS vector image files and can be used to save images and illustrations as well.

It’s the image format of choice for storing illustrations, magazine covers, and more for later printing. It’s also the preferred choice for our Kinsta ebooks.

Advantages and Disadvantages

  • Indexable and searchable text makes it perfect for in-depth infographics or reports.
  • Can include links, CTA buttons, and other interactive elements.
  • Lossless scalability.
  • Cannot be included in web content, must be loaded and read as a separate file.

Browsers and OS Support

  • Supported by all major browsers, but you are forced to open the PDF as a separate file. (You cannot use PDF files to display images throughout your HTML content.)
  • Supported as a format by most standard document editors (like MS Word or Google Docs), and illustration software (AI, Inkscape) but not by image editing software.

Use Cases

  • PDF is the best option if you want to create an interactive visual report or infographic that complements your content. Here’s a nice list of the best PDF viewer plugins for WordPress users.

11. PSD — Photoshop Document

Image file types: psd logo
PSD logo

As the name suggests, the PSD file format is an image format used for saving image documents and works in progress with Adobe Photoshop.

It’s not a web-safe image format, so it’s not supported by any browsers or standard image viewers or editors.

Advantages and Disadvantages

  • All filters, transparency, paths, and edits are fully customizable and reversible.
  • Lossless image quality.
  • Large file sizes.

Use Cases

  • Saving and storing Photoshop projects before and after they’re completed.

12. AI — Adobe Illustrator Artwork

adobe illustrator file icon
Adobe Illustrator file icon

AI is another image format specifically developed by Adobe to not just save the image, but also the project state.

Like PSD, it’s not meant for use on the web and isn’t supported by any browsers, nor most default image viewers.

Unlike PSD files, you can freely scale AI files without any loss in quality.

Advantages and Disadvantages

  • All strokes, lines, shapes, filters, are customizable and reversible.
  • Scale up or down illustration sizes freely.
  • Large file sizes.

Use Cases

  • Saving and storing Adobe Illustrator projects before and after they’re completed.

13. XCF — eXperimental Computing Facility

xcf icon
XCF icon

XCF, which stands for eXperimental Computing Facility, is an image file type native to the open source image editor GIMP. It’s the equivalent of PSD files and saves paths, transparency, filters, and more.

Once again, this is a native file type for storing projects and it’s not supported by any browsers or default image viewers.

Advantages and Disadvantages

  • All paths, filters, and shapes are customizable and reversible.
  • Lossless image quality.
  • Large file sizes.

Use Cases

  • Saving and storing GIMP projects before and after they’re completed.

14.  INDD — Adobe InDesign Document

adobe indesign icon
Adobe InDesign icon

The INDD is a native file type for Adobe InDesign users where you can save project files including page content, styles, swatches, and more.

Although sometimes referred to as an image file format, it tends to link to visual elements beyond text.

It isn’t supported by any browsers or default image viewers, as it’s not a web-safe format.

Advantages and Disadvantages

  • Store large, multi-page design projects with customizable elements.

Use Cases

  • It’s mainly used by graphic designers and production artists for designing and collaborating on posters, flyers, magazines, pamphlets, and more.

15. Raw Image File Types

Raw image formats are the file types a digital camera uses to store full-quality images for later post-production and editing.

Major raw image file types by camera maker:

  • Kodak: CR, K25, KDC
  • Canon: CRW CR2 CR3
  • Epson: ERF
  • Nikon: NEF NRW
  • Olympus: ORF
  • Pentax: PEF
  • Panasonic: RW2
  • Sony: ARW, SRF, SR2

Rather than the 256 shades per color channel (8 bit) available in a JPEG file, RAW files offer up to 16,384 shades per color channel (14 bit) in a single picture. That gives you more flexibility when tweaking colors and contrast in post-processing.

Raw images aren’t meant for the web or sharing and aren’t supported by any major browser or image viewer.

Advantages and Disadvantages

  • Higher quality pictures with more variability in colors.
  • Giant image files (a raw file can easily be up to 20 to 40 megabytes).

Use Cases

  • Saving photos in the highest possible quality for post-processing and editing.

Image File Types FAQs

What Are the 3 Common File Types of an Image File?

Based on data related to web usage, the three most common image file types are JPEG, PNG, and SVG.

image file types statistics
Usage statistics of image file formats (Image source: w3techs.com)

Let’s examine what makes them so widespread below.

1. PNG: Screenshots, Banners, Infographics, Pictures

Since PNG as a format lends itself better to text inside the image, it’s more often used for screenshots, banners (depending on the banner ad size), and more.

Since it uses lossless compression, it’s also used by designers and photographers to showcase high-quality pictures on their portfolio websites for example.

These two factors, along with its universal browser and OS support, make it the most popular image file type on the web. PNGs are present on a whopping 77% of websites.

2. JPEG: Pictures

The lossy compression means that JPEG is a better option to use to showcase pictures throughout your content. The loss in quality is barely visible to the average internet user, and you can save considerable disk space and bandwidth.

That’s why it’s the second most popular format on the internet, used by almost 72% of websites. Most sites use both PNGs and JPEGs for different purposes.

As a reminder: There’s no difference between JPG vs JPEG, they’re two different acronyms and file extensions for the same format.

3. SVG: Logos, Icons, and Illustrations

SVG files are scalable vector files that are perfect for icons, logos, graphs, and simple illustrations. The image can even be inserted directly into the page as CSS code.

That’s why SVGs come in third, used by 27% of websites.

Honorable Mention: Animated GIF Images

While rarely the format of choice for static images, GIF has made a comeback as the #1 choice for sharing animations.

comeback gif
Animated gif example

As a result, around 22% of websites use GIFs on their pages, even though they likely use PNGs and JPEGs as their standard formats as well.

Which Image Format Is the Highest Quality?

Raw image formats are the highest quality but have unreasonably large file sizes of up to hundreds of megabytes.

For web images, the WebP file format offers 25-35% smaller file sizes than JPEG for the same quality photos, meaning you can upload higher quality images for the same disk space and speed up your site.

HEIF is another JPEG alternative with more efficient compression but isn’t currently supported by any major browsers.

PNG files offer lossless compression, but that means the file sizes will be exceedingly large and slow to load. A single PNG file can often be hundreds of KB or even 1MB+. However, if you take advantage of some tactics like lazy loading (available in core since WordPress 5.5) and a CDN, you could still have a fast site.

Which File Formats Support Transparency?

The most common image file types for the web that support transparency are PNG, WebP, GIF, and even SVG.

Most native project image file types like PSD, XCF, and AI also support transparency.

On the other hand, the popular JPEG image format does not support transparency.

Is PNG Better than JPEG?

The main difference between PNG and JPEG is that PNG is a lossless image format, while JPEG is a lossy one. This basically means that PNG uses compression techniques without sacrificing the original quality or detail of the image.

For text in images, tutorial screenshots, and when you want signs or other fine elements to be 100% visible in a photo, PNG is the right format.

Image file types: PNG vs JPEG
PNG vs JPEG comic strip (Image source: lbrandy.com)

As you can see from this funny picture above, PNG, which is depicted on the left, is much better at clearly displaying text and simple shapes when compared to JPEG, the one on the right.

Does this mean JPEG is a bad image file type? Not at all!

For regular blog posts or header images, JPEG offers more than good enough quality with significantly lower file size. You can often save up to 50% or more space while struggling to spot any difference in quality with the naked eye.

Summary

There’s no shortage of images you could legitimately use for your projects. Hopefully, this article has helped you understand which image file types and formats to use in which context for the best results.

Raster formats are best used for images and pictures, while vectors are a great substitute for logos, icons, and digital graphics.

Using the right image file types for the right task can not only help improve your page loading speeds but also lower bandwidth and server loads. As a subsequent positive effect, your overall user experience will also improve big time. Not bad, uh?

Matteo Duò

Kinsta

Head of Content at Kinsta and Content Marketing Consultant for WordPress plugin developers. Connect with Matteo on Twitter.