PNG vs WebP: Which Image Format to Use, and When to Keep the PNG
File size, transparency, quality, animation, support and metadata, side by side, with a plain rule for when to convert and when to keep PNG.
Quick answer
Use WebP for images on websites, where smaller files load faster; Google measures lossless WebP at 26% smaller than PNG. Keep PNG for editing masters, print work, screenshots you send around and places that do not accept WebP.
- Smaller files
- Lossless WebP is 26% smaller than PNG in Google's measurements, and lossy WebP with transparency is often far smaller still.
- Same quality
- Both can be lossless, so a lossless WebP holds exactly the same pixels as the PNG. Lossy WebP gives up some detail for size.
- Keep PNG for
- Editing, print, archiving, upload forms that take only JPEG and PNG, and anything that needs more than 8 bits per channel or HDR.
- When to use a vault
- When the images, or the originals they came from, should not sit in the Photos library, iCloud Photos or an upload site's server.
Best overall: Stash
Converting between PNG and WebP changes the file size, not who can open the picture: a saved image on an iPhone lands in the Photos library, syncs with iCloud Photos and opens with the phone's passcode. Stash keeps chosen photos and files behind a PIN of its own, inside a working calculator. Imported items are encrypted on the iPhone with AES-256, stay outside the Photos library and are not uploaded by iCloud Photos. Stash is free to download with no ads, so the calculator, the PIN and the encrypted vault are ready from the first launch.
PNG and WebP side by side
PNG and WebP are both image formats for the web, made twenty years apart for different jobs. PNG is the long-standing lossless format: the W3C's third edition of the specification (a W3C Recommendation since 24 June 2025) describes it as a format for "the lossless, portable, well-compressed storage of static and animated raster images" (PNG Specification, Third Edition). WebP is Google's format, which it describes as providing "superior lossless and lossy compression for images on the web" (An image format for the Web, as of 2 December 2026).
The facts below come from those two primary sources and Google's WebP FAQ, all opened on 2 December 2026.
| PNG | WebP | |
|---|---|---|
| Compression | Lossless only | Lossless or lossy |
| File size | Baseline | Lossless 26% smaller than PNG; lossy 25-34% smaller than comparable JPEG |
| Transparency | Yes | Yes; lossless adds about 22% in bytes, lossy with transparency is often about 3x smaller than PNG |
| Animation | Yes (APNG) | Yes (animated WebP) |
| Colour depth | Up to 16 bits per channel; HDR (HLG and PQ) in the third edition | 8 bits per channel; lossy uses YUV 4:2:0 colour |
| Largest image | Up to 2,147,483,647 pixels on a side in the specification | 16,383 x 16,383 pixels |
| Metadata | EXIF (eXIf chunk), text chunks, colour profile | EXIF and XMP chunks, ICC colour profile |
| Browser support | Every current browser | Chrome, Safari, Firefox, Edge and Opera |
| Google Search | Supported | Supported |
Google lists both PNG and WebP among the image formats Google Search supports, next to JPEG, GIF, SVG, BMP and AVIF (Google image SEO best practices). Choosing WebP does not hurt how an image is indexed.
Where WebP wins
- Page speed. A smaller file downloads faster. On a page with a dozen product shots or screenshots, a 26% saving on each adds up.
- Transparent graphics. Logos and cut-out product images with a see-through background are where PNG files get heavy. Google's figure for lossy WebP with transparency is typically three times smaller than PNG.
- Photos that must keep transparency. JPEG has no transparency, so a photo with a cut-out background used to mean a large PNG. Lossy WebP covers that case.
- Animations. Google's FAQ puts animated WebP at 64% smaller than GIF for lossy animations and 19% smaller for lossless ones, with 24-bit colour instead of GIF's 8-bit colour.
Where PNG is still the right choice
- Editing masters. Keep the PNG (or the original camera file) as the copy you edit. Saving a lossy WebP, editing it and saving again loses a little more each time.
- Deep colour and HDR. Lossy WebP works with 8 bits per channel in YUV 4:2:0, which can show banding in smooth gradients. PNG goes up to 16 bits per channel and, in the third edition, carries HDR.
- Upload forms and older software. Many forms, print services and office programs list JPEG and PNG only. LinkedIn's profile photo upload, for example, takes PNG or JPG (LinkedIn Help, as of 2 December 2026).
- Very large images. WebP stops at 16,383 pixels on a side; huge scans and panoramas can exceed that.
- Files you send to people. A PNG opens in almost any viewer on any device, which is why screenshots are still saved as PNG.
Lossless or lossy WebP
The choice inside WebP matters more than the choice between WebP and PNG.
- Lossless WebP keeps every pixel. Use it for screenshots, interface graphics, diagrams, text and logos: sharp edges and flat colours that lossy compression smears.
- Lossy WebP throws away detail the eye is unlikely to miss. Use it for photos, where it is much smaller than lossless and the loss is hard to see.
Google's FAQ also notes that a WebP can end up larger than its source in some cases, so compare the two sizes before replacing a file.
How to convert a PNG to WebP and compare the sizes
The tools on this site run in the browser tab: the image is decoded and saved by your own browser, and no file is uploaded.
For a file-size target, use the image compressor:
- Pick a target size, for example 100 KB, or press Custom.
- Pick WebP as the format.
- Press Choose a photo and pick the PNG.
- Compare the before and after cards: file size, width and height, and the quality used.
- Press Download compressed image.
For a new pixel size at the same time, use the image resizer: choose the PNG, set the size, pick WebP as the output format, then Resize image and Download resized image.
Both tools save WebP as lossy, at a quality the compressor picks for the target or 90% in the resizer, so they suit photos and large images rather than pixel-exact screenshots. A transparent background stays transparent in WebP. Some browsers, Safari among them, cannot save WebP from a web page; the tools then turn the WebP option off and say so.
To go the other way, from WebP to PNG, open the WebP in the image resizer, set Percent to 100 and pick PNG as the output format.
What a conversion does to metadata
Both formats can carry metadata. PNG's third edition specifies an eXIf chunk for camera data "such as shutter speed, aperture, and orientation", and WebP's container has optional EXIF and XMP chunks (WebP Container Specification). EXIF can include the date, the device and the GPS position.
Whether that data survives a conversion depends on the tool, not the format:
- The compressor and the resizer on this site draw a new image from pixels only, so the result carries no date, device or location.
- Desktop converters and command-line tools may copy metadata across, or not, depending on settings.
- An upload converter receives the whole file, metadata included, before it does anything else.
To see what a file holds before you share it, open it in the photo metadata viewer, which reads it in the browser and can make a copy without the metadata. Apple explains in its Personal Safety guide that location coordinates "are embedded into each photo and video" when Location Services is on for the Camera, and that people you share photos with may be able to see where they were taken.
When a PNG or WebP on your computer is enough
For most images, the format question is about speed and compatibility, not privacy:
- The image is a public product shot, a logo or a website screenshot.
- You converted it with a tool that keeps the file on your device.
- Nobody else uses the computer or phone where the file is saved.
When you need more than a converted file
Converting shrinks a file. It does not lock it:
- The originals matter. Photos you convert for a website or a listing often have originals with the full date and place in them.
- The images are personal. Scans of documents, screenshots of messages or photos of people you would not post.
- The phone is shared or handed around. Everything in the Photos library opens with the phone's passcode, and with iCloud Photos on it syncs to every device on the Apple Account.
How to keep the originals private with Stash
Stash looks and works like a calculator. Your PIN opens the vault, and photos and files you import are encrypted on your device with AES-256, with the key kept in the iOS Keychain. They are stored inside the app, not in your Photos library.
- Convert or compress the copy you want to publish, as above.
- Install Stash from the App Store. It runs on iPhone and iPad with iOS 15 or later.
- Open it, choose your PIN and write down the recovery key that Stash shows once during setup.
- In the vault, tap + and import the originals you want to keep private.
- Back in Photos, delete them, then delete them again in Recently Deleted.
- Optional: turn on Face ID or Touch ID and auto-lock in Stash. Premium adds a guest PIN that opens a separate vault.
The published copy stays small and stripped; the full-quality original stays behind a code only you chose.
FAQ
Is WebP better than PNG?
For images on a website, usually yes: smaller files with the same or nearly the same quality. For editing, print and maximum compatibility, PNG is still the safer file.
Does WebP support transparency?
Yes, in both lossless and lossy WebP. Google measures lossless transparency at about 22% extra bytes.
Does converting PNG to WebP lose quality?
Not with lossless WebP, which keeps every pixel. Lossy WebP loses some detail, which is usually invisible in photos and more visible around text and sharp edges.
Is WebP bad for SEO?
No. Google Search lists WebP among its supported image formats. Smaller images can also help a page load faster.
Can I convert WebP back to PNG?
Yes. The PNG will be lossless from that point, but detail already removed by lossy WebP does not come back.
Does converting remove the photo's location?
With the tools on this site, yes, because they save pixels only. Other converters may keep it, so check the result in a metadata viewer.
Why is my WebP bigger than the PNG?
Google's WebP FAQ notes that a WebP can grow larger than its source. When that happens, keep whichever file is smaller.
The Bottom Line
Google's own figure is the core of this comparison: lossless WebP is 26% smaller than PNG, and lossy WebP with transparency is often far smaller still. For images on a website, that makes WebP the better default, and Google Search indexes it like any other image. PNG keeps its place where size matters less than compatibility and fidelity: editing masters, print, upload forms that take only JPEG and PNG, very large images, and deep colour or HDR. The side-by-side table above lists each difference.
Whichever format you pick, the file still carries whatever metadata the tool lets through, and the original still sits wherever you saved it. Convert with a tool that keeps the file on your device, check the result for location data, and keep personal originals in a place with its own lock.
·Written by the developer of Stash
Save this guide
Download this guide as an image