PortImg Insights

10 Image Formats Explained: JPG, PNG, WebP, GIF, SVG and More, Measured

Date
Updated
Read time5 min read
10 Image Formats Explained: JPG, PNG, WebP, GIF, SVG and More, Measured

JPG, PNG, WebP, GIF, BMP, TIFF, SVG, EPS, DXF and HEIC: what each is for, with file sizes we measured for the same photo, screenshot and logo.

The right image format can make a file ten times smaller, keep a logo's transparent background, or let a print shop scale your artwork to a billboard. The wrong one gives you blurry text, a black box behind a logo, or an attachment too big to send. Here are the ten formats you are most likely to meet, what each is for, and, so you can compare them fairly, the sizes we measured when we saved the same three images in each.

The same images in six formats

We took a 512 × 512 photo, a 1280 × 800 screenshot of text, and a 500 × 500 logo with a transparent background, saved each as PNG, and converted it with our own converters: JPG at quality 90, WebP at quality 80, TIFF with lossless LZW compression.

FormatPhotoScreenshotTransparent logo
PNG417 KB60 KB3.3 KB, clear background
JPG70 KB130 KB16 KB, background turns white
WebP34 KB58 KB3.6 KB, clear background
GIF176 KB (256 colors)36 KB2.5 KB, clear background
TIFF767 KB138 KB15 KB, clear background
BMP768 KB3.0 MB733 KB, background turns white

Two things stand out. No format wins everywhere: JPG is small for the photo and big for the screenshot, GIF is the opposite. And the kind of image matters as much as the format, which is the main thing to take from this page.

1. JPG (JPEG)

The format for photos. JPG throws away detail the eye barely notices, which is why our photo shrank from 417 KB as PNG to 70 KB. The same trick goes wrong on sharp edges: around text and lines it leaves faint smudges, and our screenshot came out more than twice the size of the PNG. JPG has no transparency, so transparent areas are filled with a color, usually white. Every time a JPG is edited and saved again it loses a little more, so keep an original for editing.

2. PNG

Lossless: every pixel is kept exactly. Best for screenshots, diagrams, logos and anything with text, and the usual choice when you need a transparent background, including soft, partly see-through edges. For photos it is large, as the 417 KB above shows.

3. WebP

Google's web format. It was the smallest for the photo by far, and close to the smallest for the screenshot and logo, where only GIF (and, for the logo, PNG) beat it. It can be lossy like JPG or lossless like PNG, keeps transparency and can be animated. All current browsers show it, but plenty of older programs, upload forms and office software still cannot open it, so it is a format for websites more than for sending to people.

4. GIF

An old format limited to 256 colors per frame. That limit made our photo blotchy and two and a half times larger than the JPG, but suits flat graphics: the screenshot and logo were the smallest of all as GIF. Transparency is all or nothing, so soft edges become hard ones. Its real strength is animation that plays everywhere, including email.

5. TIFF

The archive and print format: lossless, with many options, and read by every serious image and layout program. With LZW compression it is efficient for flat graphics (138 KB for the screenshot) but no smaller than raw pixels for photos. Use it when a printer or archive asks for it.

6. BMP

The plain Windows bitmap: no compression, so every pixel costs three bytes, which is why our screenshot was 3 MB. Some older programs, embroidery and engraving tools and small devices still require it. Otherwise there is no reason to use it.

7. SVG

A vector format: instead of pixels it stores shapes, lines and text, so it stays sharp at any size and is often tiny. It is the standard for icons and logos on the web and can be edited in design software or as code. Photos cannot be stored as SVG in any useful way. Converting an SVG to PNG or JPG fixes its size in pixels.

8. EPS

An older vector format from the print world, still requested by print shops, sign makers and promotional-product companies. Most phones, and Windows without extra software, cannot open it; to see one, convert it to PNG or SVG.

9. DXF

The drawing exchange format of CAD software: lines, arcs and circles with real-world coordinates, used by AutoCAD, laser cutters and CNC machines. It is not really an image format, but people often need to turn a logo into DXF for cutting, or a DXF into a picture to share. Converting a photo to DXF traces its outlines; it cannot turn a photo into a drawing with depth.

10. HEIC

What iPhones save photos as by default: often about half the size of a JPG of similar quality, but not opened by many websites, Windows programs and Android apps. Our converters do not read HEIC. On an iPhone, Settings, Camera, Formats, Most Compatible makes the camera save JPG instead, and choosing photos in a browser on the iPhone usually hands them over as JPG. HEIC causes most trouble once the files have been copied to a computer.

Quick guide

  • Photo to email, upload or print: JPG. To shrink it further, Compress Image.
  • Screenshot, diagram, anything with text: PNG. Converting a screenshot to JPG makes it bigger and blurrier; see PNG to JPG for when it still makes sense.
  • Logo with a transparent background: PNG for documents and slides, SVG for websites, EPS if a print shop asks.
  • Images on your own website: WebP, with JPG or PNG for anything people will download.
  • Short animation: GIF for the widest support; animated WebP is far smaller where it is accepted.
  • Laser cutting or CAD: DXF, traced from a clean, high-contrast image; see JPG to DXF.

Our main converter pages list what each conversion keeps and what it loses, measured the same way as this table. Here is how we test.

Written and tested by the PortImg team: the figures in this guide come from running files through our own tools. How we test

Image ToolsPDFTutorial
Found this helpful?

Try PortImg's free tools

Convert, compress, and edit images and PDFs — no sign-up needed.

Explore tools