On this page
Image format decides how big a file is, whether it can have a transparent background, and where it will open. This page converts images between PNG, JPEG, and WebP (plus AVIF if your browser can create it) without uploading anything. The conversion happens on your device, and you see the before and after file sizes. Below the tool is a short guide to choosing a format and to what conversion can and cannot do.
Try it
What conversion actually does
Converting is not renaming. The browser reads the file, decodes it into a grid of pixels, draws those pixels onto a canvas, and then encodes the canvas again in the format you picked. Renaming photo.png to photo.jpg only changes the label, and many programs will refuse the result.
Which format should you pick?
| Format | Compression | Transparency | Good for |
|---|---|---|---|
| PNG | Lossless | Yes | Screenshots, logos, text, anything with sharp edges |
| JPEG | Lossy | No | Photographs that must open everywhere |
| WebP | Lossy or lossless | Yes | Web pages where file size matters; all current major browsers can show it |
| AVIF | Lossy or lossless | Yes | Smallest files for photos, but many browsers cannot create it, so the option appears only if yours can |
A practical rule: use PNG when exact pixels or transparency matter, JPEG when you need maximum compatibility for a photo, and WebP when you publish to the web and want smaller files. Google's WebP documentation lists its features, and MDN's image format guide covers browser support.
Lossy versus lossless
Lossless formats store every pixel exactly, so you can save and reopen them without damage. Lossy formats throw away detail the eye is unlikely to miss to make the file smaller. The Quality slider controls how much is discarded: lower numbers give smaller files and more visible artefacts. Many people find values around 75 to 85 an acceptable balance for photographs, but your own eyes are the test, so compare the result at full size.
- Convert once, from the best source. Each lossy save discards more detail. Re-saving a JPEG repeatedly makes it steadily worse.
- Going from JPEG to PNG does not restore anything. The PNG keeps the JPEG's flaws exactly and is usually much larger. The tool points this out when it happens.
- A small, soft image stays small and soft. A format change cannot add detail. For that, see the guide to AI upscaling.
Transparency and JPEG
JPEG has no transparent pixels. When you convert a PNG or WebP with a see-through background to JPEG, those areas must become a solid colour. The tool fills them with the colour you choose, white by default.
What gets lost
- Metadata. Camera model, date, and GPS location are not carried over, which can help when you share a photo, but copyright notes are dropped too. To see what a file contains before converting, use the EXIF data viewer.
- Animation. An animated GIF or WebP becomes a single still frame.
- Vector qualities. An SVG is turned into pixels at its own size and will not scale cleanly afterwards.
- Colour profile. Images in wide-gamut colour spaces may look slightly different after conversion.
Limits of this tool
- It can only convert what your browser can open. HEIC photos from many phones will not open in most browsers outside Safari.
- Very large images may fail, especially on phones, because browsers limit canvas size. The tool reports an error instead of producing a broken file.
- Encoders differ between browsers, so the same quality number can give a different file size in Chrome, Firefox, and Safari.
- Output is not resized. To change dimensions, use the image resizing guide, and to flip or rotate first, try the image mirror and rotation tool.
Further reading
- MDN: HTMLCanvasElement.toBlob(): the browser function that encodes the converted image.
- MDN: Image file type and format guide: browser support and use cases.
- W3C: Portable Network Graphics specification: how PNG stores pixels and transparency.
- Google: WebP: features and comparisons from the format's creator.
- Wikipedia: JPEG: how lossy compression works.