Guide6 min readUpdated
JPG vs PNG vs SVG vs WebP: Which Image Format to Use
JPG vs PNG vs SVG explained in plain words: which image format to use for your website, which one keeps a transparent background, and why.
A shop owner sends his designer a logo as a screenshot from WhatsApp. It looks fine on the phone. On the flex banner it becomes a blurry mess. Nothing was wrong with the logo. The file format was wrong for the job. This guide explains the common image formats, so you can ask for the right one.
An image format is the way a picture is stored in a file. Different formats keep different things: some are small, some keep a transparent background, and some can grow to any size without losing quality.
What is the difference between vector and raster images?
A raster image is made of tiny coloured squares called pixels, and a vector image is made of lines and shapes described by maths. Raster images blur when enlarged. Vector images stay sharp at any size.
Think of a photo on a wall and a stencil. If you stretch the photo, you see the squares. If you stretch the stencil pattern, the edges stay clean, because the computer redraws the shape at the new size.
| Type | Made of | Examples | Best for |
|---|---|---|---|
| Raster | Pixels | JPG, PNG, WebP | Photos, screenshots, detailed images |
| Vector | Shapes and lines | SVG | Logos, icons, simple illustrations |
A photograph cannot be a true vector, because a photo has millions of tiny colour changes. A logo should be a vector, because it has simple shapes and flat colours.
What is a JPG, and when should I use it?
JPG (also written JPEG) is a format for photographs that makes files small by throwing away a little detail you rarely notice. Use it for photos of products, people, food and places.
JPG has two limits. It cannot have a transparent background, so empty areas become white or another solid colour. It also loses a little quality each time you save it again. Sharp text and thin lines inside a JPG can look slightly fuzzy.
Do not use JPG for logos or screenshots with small text. Do use it for a hero photo on a website, a product photo for your online shop or a picture for WhatsApp, where a smaller file is a real benefit.
What is a PNG, and how do I get a transparent image?
PNG is a pixel format that keeps every detail and supports a transparent background. Use PNG when you need to place a logo or a cut-out product on top of a coloured background.
A transparent image means the area around the object is empty, so whatever is behind it shows through. A logo with a white box around it looks bad on a coloured page. A logo saved as a PNG with a transparent background looks clean.
PNG files are often larger than JPG files, especially for photographs. So use PNG for graphics, screenshots and logos, and use JPG for photos. If you need a transparent background, ask your designer for "PNG with transparent background". A white background that only looks transparent in your gallery app is not the same thing.
What is an SVG, and why do designers love it?
SVG stands for scalable vector graphics. It is a vector format that stays sharp at any size and is usually very small in file size, so it suits logos and icons on websites.
One SVG logo can appear on a tiny browser tab and a large wall banner without loss of quality. Web developers can also change its colour with code, which is useful for dark mode and hover effects. The guide on dark mode UI design shows why this matters.
SVG is not for photographs. Some printers and some older software do not open SVG files directly, so for print your designer usually also supplies a PDF or other vector print file. The design terms glossary gives plain meanings of other words you may meet.
What is WebP, and should I use it?
WebP is a newer image format made for the web that gives smaller files than JPG or PNG at similar quality. It can also hold a transparent background. Modern browsers can show it.
Smaller files help a website load faster. That matters for customers on mid-range phones and slow mobile networks in smaller towns. See designing for low-end phones and slow networks.
You do not always need to convert images by hand. Many website tools and developers handle this for you. Still, WebP is not a good format to send to people for editing or printing, because not every editing tool or printer opens it. Keep your original JPG or PNG files as the master copies.
Which image format should I use for my website?
Use SVG for logos and icons, JPG or WebP for photographs, and PNG for graphics that need transparency or sharp text. Choose the smallest file that still looks clear.
| What you have | Format to ask for |
|---|---|
| Logo on a website | SVG, with PNG as a backup |
| Icons and simple drawings | SVG |
| Product photos and banners | JPG or WebP |
| Cut-out product on a coloured area | PNG or WebP with transparency |
| Screenshot with small text | PNG |
| Logo for a flex banner or print | A vector print file, such as PDF or SVG |
Size matters as much as format. A phone photo can be several megabytes, far larger than a website needs. Ask your designer or developer to resize and compress photos before they go online. The website image and photo guidelines go through sizes and quality step by step.
Which format should I send to my designer?
Send the best quality original you have, whatever the format. Do not send screenshots or images forwarded on WhatsApp, because WhatsApp compresses them and removes detail.
A short list for your first message to a designer:
- Send the logo in the original file if you still have it, such as AI, SVG or PDF.
- Send photos as original files, by email or a drive link, not through WhatsApp chat.
- Name files clearly, for example "shop-front.jpg" instead of "IMG_2231.jpg".
- Say where each image will be used: website, print, social media or all three.
When I work on a logo, the final delivery includes vector files, so you can print the logo on a small visiting card or a large signboard without blur. For other projects, I tell clients up front which formats they will receive. The design brief guide shows how to describe where each image is used.
What are the common mistakes with image formats?
The most common mistakes are using a low quality image for a big print, saving a logo as a JPG, and putting a very large photo on a website.
- Enlarging a small image. A tiny image stretched to a large size will always look soft. No format fixes this.
- Renaming a file extension. Changing "logo.jpg" to "logo.png" does not change the real format, and it does not add transparency.
- Re-saving JPGs many times. Each save loses a little detail. Keep one clean original.
- Using a screenshot as a logo. It is a low quality pixel copy of the real file.
If you are unsure which file to use for a certain job, ask your designer before the work starts. If you need a clean set of logo and image files for a website, you can read about my website design service or message me through the contact section.
Frequently asked questions
Which is better, JPG or PNG?
+
Neither is better for every job. JPG is better for photos because the files are smaller. PNG is better for logos, screenshots and any image that needs a transparent background.
How do I make a transparent background for my logo?
+
Ask your designer for a PNG or SVG with a transparent background. Removing a white background from a low quality image often leaves rough edges, so the best fix is the original vector file.
Can I convert a JPG logo into an SVG?
+
Software can trace a JPG, but the result is often rough. A designer can redraw the logo cleanly as a vector, which gives sharper and more reliable files.
Why does my image look blurry on a big banner?
+
The image has too few pixels for the size. A pixel image looks sharp only at or below its original size, so a banner needs a very high quality file or a vector.
Working on something like this?
Tell Tithi what you are planning. You get a clear scope, a fixed price and a timeline before any work begins. I reply to every enquiry within 24 hours.