PNG, JPG, WebP or AVIF? How to Export Images for the Web Without Guessing
You have finished an edit, you open the export menu and there are fifteen formats in it. Most people pick JPG out of habit, or PNG because it sounds higher quality, and both choices are wrong about half the time.
The good news is that the decision is simple once you know what each format is for. This guide gives you a short set of rules, explains the reasons behind them and shows where each option lives in Photomania.
The short version
If you only read one section, read this one:
| What you are exporting | Best format | Why |
|---|---|---|
| a photo for a website or blog | WebP (or AVIF) | far smaller than JPG at the same quality |
| a photo for email, social media or a client who "just needs a picture" | JPG | opens everywhere, always |
| a logo, icon or screenshot | PNG (or SVG for logos) | sharp edges, exact colours |
| anything with a transparent background | PNG or WebP | JPG has no transparency |
| a short animation | GIF for tiny loops, MP4 for anything longer | GIF files grow very fast |
| something you will edit again | PSD | keeps every layer |
All of them are in File › Export As. PSD is in File › Save as PSD (Alt+Ctrl+S).
Lossy and lossless, in one paragraph
Lossless formats (PNG, BMP, TIFF) store every pixel exactly. Lossy formats (JPG, WebP, AVIF) throw away detail that the eye is unlikely to notice, and they let you choose how much with a quality setting. For photos, lossy is almost always the right call: a well-compressed JPG or WebP is five to ten times smaller than a PNG and looks the same. For flat graphics with sharp edges and text, lossy compression creates visible smudges around the edges, so lossless wins.
JPG: the universal photo format
JPG has been around since the early nineties, and that is its strength: every phone, browser, email client and printing shop accepts it.
- Use it for: photos you send to people, upload to social networks or hand to a printer.
- Avoid it for: text, logos, screenshots and anything transparent. Transparent areas become white.
- Quality setting: around 80–85 % is the sweet spot. Above 90 % the file grows a lot for almost no visible gain. Below 70 % you start to see blocky artefacts in skies and smooth gradients.
One more JPG rule: do not edit and re-save a JPG over and over. Each save throws away a bit more detail. Keep a PSD or PNG as your working copy and export a JPG at the end.
PNG: exact pixels and transparency
PNG is lossless and supports full transparency, including soft, semi-transparent edges.
- Use it for: logos, icons, interface screenshots, cut-out products on a transparent background, images with text.
- Avoid it for: large photos. A photo saved as PNG can easily be 5 MB where a JPG would be 500 KB.
For a fast PNG of the whole canvas, use File › Quick Export as PNG (Alt+Shift+Ctrl+S).
WebP: the modern default for websites
WebP was designed for the web. It does both lossy and lossless compression, supports transparency and animation, and produces files typically 25–35 % smaller than JPG at the same visual quality. Every current browser displays it.
- Use it for: almost every image on a website.
- Be careful with: very old software and some desktop apps that still do not open WebP. If a client cannot open your file, send a JPG.
AVIF: the smallest files
AVIF compresses even better than WebP, often half the size of a JPG, and handles smooth gradients and dark areas especially well.
- Use it for: large hero images and photo-heavy pages where every kilobyte counts.
- Keep in mind: encoding is slower, so exporting a big AVIF takes a moment. Support in older browsers is weaker than WebP's, so many sites serve AVIF with a WebP or JPG fallback.
GIF and MP4: moving pictures
GIF is limited to 256 colours per frame and compresses badly, which makes it fine for small, simple loops (an icon, a short reaction) and a poor choice for anything photographic or longer than a few seconds. For those, File › Export As › MP4 gives you a video that is a fraction of the size with full colour.
SVG and PDF: when it should stay sharp at any size
If your design is made of shapes and text rather than photos, SVG keeps it as vectors: it stays perfectly sharp at any size and is usually tiny. PDF does the same for documents and print. Both are in File › Export As.
Getting the size right
The format is only half of it. A perfectly compressed image that is 6000 pixels wide is still too heavy for a blog post that displays it at 800 pixels.
- Know the display size. Find out how wide the image will actually appear on the page.
- Export at twice that size for sharp screens. Phones and modern laptops have high-density displays, so an image shown at 800 px wide looks crisp at 1600 px.
- Resize with Image › Image Size… (
Alt+Ctrl+I). Keep the proportions linked so the image is not stretched. - Crop before you resize. Use the Crop Tool (
C) to remove what is not needed, so you do not spend pixels on it.
For social networks, crop to the shape the platform uses. Common ones are 1:1 (square), 4:5 (portrait) and 16:9 (landscape). The Crop Tool's options bar lets you set a fixed ratio.
Exporting many sizes or many files
- File › Export Layers… saves each layer as a separate file, which is handy for icon sets and design assets.
- File › Automate › Resize Images… and Convert Formats… process a whole batch, for example turning a folder of PNG screenshots into WebP.
- File › Save for Web (Legacy)… is still there for those who like comparing quality settings side by side before exporting.
A checklist before you hit export
- Is the image cropped to the shape it will be shown in?
- Is it resized to about twice its display width, not more?
- Photo → WebP, AVIF or JPG. Graphic, text or transparency → PNG, WebP or SVG.
- Quality around 80 % for lossy formats, then zoom to 100 % (
Ctrl+1) and check the sky and the edges. - Kept a PSD of the layered version, in case the client asks for "one small change"?
Follow that, and your images will look sharp, load fast and open on every device they meet.
Try it yourself. Photomania is free, works in your browser and needs no account.
Open Photomania