JPG, PNG, WebP and AVIF: the differences, and how this tool's Auto format chooses
For photos use JPG (opens everywhere) or WebP (smaller); for transparency and crisp graphics use PNG (lossless) or WebP; for maximum compression where the recipient supports it, AVIF. "Auto" encodes JPG and WebP for opaque images, or PNG and WebP for transparent ones, and keeps the smaller. AVIF is slow and is not part of Auto.
Changing the format is not renaming the extension. This tool re-compresses the pixels with the real encoder for the chosen format (MozJPEG, OxiPNG, libwebp, libavif). That is why file size, quality and compatibility differ by format, and why information lost to lossy compression never comes back whatever format you convert to.
The choice comes down to four questions. Do you need transparency? Are there many sharp edges such as text and lines? What does the recipient (site, app or person) open? And how much does file size matter? Below are the characteristics of each format and how this tool handles it.
How to use
- Check which formats the destination accepts. Portals, messengers and shop platforms generally accept JPG and PNG; WebP and AVIF are accepted by some and rejected by others. This tool does not check the destination's rules for you.
- If you need transparency, choose PNG, WebP or AVIF. Choosing JPG fills transparent areas with the "JPG background colour" (white by default).
- For photographs, start with JPG or WebP; for screenshots, logos and charts, start with PNG or WebP.
- If you do not know which will be smaller, set the format to "Auto". Opaque photos are encoded as both JPG and WebP, transparent ones as both PNG and WebP, and the smaller result is kept. In Keep high quality mode only candidates with SSIM of at least 0.985 are compared.
- If you must shrink as far as possible and the recipient supports it, press "Reduce further as AVIF" in the result card. A note warns that encoding is slow.
- Check the format badge, file size and comparison slider in the result card, then download. The extension .jpg, .png, .webp or .avif is added automatically.
Characteristics of each format
- JPG (JPEG): lossy, no transparency. The most widely opened photo format and the default for submissions and sharing. This tool uses the MozJPEG encoder with quality 0 to 100. Compression artefacts appear easily at the edges of text and lines, so it is a poor fit for screenshots.
- PNG: lossless with transparency. There is no quality value and pixels are preserved exactly. Used on photographs it becomes very large. After encoding, this tool re-optimises the file structure with OxiPNG, and PNG originals processed in Keep high quality mode get a separate "Download lossless PNG" result.
- WebP: lossy (quality 0 to 100) with transparency. At a similar perceived quality it is often smaller than JPG, and the transparency channel is always encoded at the maximum quality (100). Most current browsers display it, but some older software and submission systems reject it, so check where it is going.
- AVIF: the most efficient compression of the four but the slowest to encode. Supports transparency; the alpha channel is encoded at maximum quality and colour is subsampled 4:2:0. Support arrived later than WebP, so confirming the recipient is essential, and it is not included in Auto.
- HEIC/HEIF (input only): the iPhone photo format, supported for reading only. Output defaults to JPG and other formats can be chosen.
What "Auto" and "Keep original" actually do
"Auto" really encodes the candidates and compares them. With no transparent pixel at all it produces JPG and WebP; with even one it produces PNG and WebP; then it keeps the smaller. In Keep high quality mode both candidates first search for a quality above SSIM 0.985 before being compared, which prevents "smaller but smeared" from winning. JPG is never chosen for an image with transparency.
"Keep original" re-encodes in the same format as the input (JPG for HEIC). There is one more rule. If you changed nothing — no size, crop, rotation or background removal — and the re-encoded result is not smaller than the original, the original file is returned unchanged and marked "Original kept". Only in this case is EXIF metadata preserved. The same rule applies to JPG and WebP originals (and transparent PNGs) in Keep high quality + Auto.
Choosing by situation
- Document submission, government offices, job applications: JPG. Transparency, if any, is composited onto white.
- Sharing photos by messenger or e-mail: JPG. The safest choice when you do not know the recipient's device.
- Your own website or blog: WebP or Auto. JPG if the platform blocks WebP uploads.
- Logos, icons, transparent stickers: PNG (lossless) or WebP (size first). Graphics with few colours can be small enough as PNG.
- Screenshots and document captures: keep PNG originals as they are (lossless optimisation); WebP if they must shrink. JPG smears the area around letters.
- Cutting transfer volume for large image sets (support confirmed): AVIF. It takes time, so process in small batches.
Common misconceptions
- Converting JPG to PNG improves quality: no. Lost information does not return; only the file grows. PNG is a decision to lose nothing more from now on.
- WebP is always smaller: usually, but not always. An efficiently compressed JPG original or a small image can grow. Check the size in the result card and leave "Keep original" selected if it grew.
- Renaming the extension to .jpg makes it a JPG: the file contents do not change, so it fails to open or is rejected. This tool actually re-encodes.
- PNG can be shrunk by lowering quality: PNG has no quality value. To shrink further, reduce the dimensions or switch to WebP or JPG.
- The same quality number means the same quality across formats: JPG, WebP and AVIF at quality 80 are different results. Judge with the comparison slider and the SSIM badge, not the number.
Frequently asked questions
Can I add GIF, BMP, TIFF or SVG files?
Input is currently JPG, PNG, WebP, AVIF and HEIC/HEIF. Other formats show "Choose a JPG, PNG, WebP, AVIF or HEIC/HEIF photo" and must first be converted to PNG or JPG with another tool.
Can I change the background colour when converting a transparent image to JPG?
Yes. When transparency is detected, the "JPG background colour" input appears, white (#ffffff) by default. Semi-transparent pixels are blended with that colour too.
What happens to metadata when the format changes?
Re-encoded results contain no EXIF (location, camera model, time). Metadata survives only in the "Original kept" status, where the original file is returned unchanged.