Find the smallest image format
Drop an image: it is encoded in AVIF, WebP, JPEG and PNG at comparable quality, and the lightest format that keeps its transparency is suggested. It is free and runs on your device, with no upload and no limit.
Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.
Smallest image format
Drop images here (JPEG, PNG, WebP, AVIF, GIF, HEIC…), several at once if you like.
Images are encoded in your browser and never uploaded.
How to use it
- Drop one or more images (JPEG, PNG, WebP, AVIF, GIF, HEIC…).
- Keep the “Medium” level, or choose High or Light; the advanced mode sets each format’s quality.
- Read the table sorted by weight: saving, browser support and transparency. Compare each format with the original using the slider.
- Download one format, all formats in a ZIP, and copy the <picture> code for your website.
Example
Input
A 640 × 400 px PNG logo with a transparent background and a soft shadow, drawn in your browser, “Medium” level
Output
logo-sample.png (640 × 400 px, transparent) encoded at the “Medium” level: AVIF 50, WebP 72, JPEG 75, PNG palette of 128 colours; JPEG loses the transparency (white background), so the suggestion is the lightest of AVIF, WebP and PNG. Exact sizes depend on the encoders.
Good to know
- “Comparable quality” comes from a fixed table per level (documented on this page), not from a measurement of each image: check the result with the slider.
- JPEG cannot store transparency: transparent areas become white, so JPEG is never suggested for a transparent image.
- Above 4 megapixels, PNG is saved lossless instead of with a reduced palette (too slow); it is then rarely the lightest.
- AVIF encoding is slow: a few seconds for a large photo. Animated GIFs lose their animation; metadata (EXIF, GPS) is removed.
- If no format is lighter than your original, you are told to keep the original. JPEG XL is not compared: few browsers display it.
Which image format is the lightest?
For photographs, the newer formats compress best: AVIF usually produces the smallest files, WebP comes next and JPEG last. All three are lossy at the quality levels used on the web. AVIF is slower to encode, but every current browser displays it.
For graphics such as logos, icons, screenshots and diagrams, flat colours compress well in PNG with a reduced palette or in lossless WebP, and sharp edges stay crisp. JPEG adds blur around text and cannot keep transparency.
These are tendencies, not rules: a noisy photo, a gradient or a tiny icon can reverse the order. Encoding the image in each format at the same visual quality, as this page does, is the only way to know for a given file.
Frequently asked questions
What is the smallest image format?
For photos, AVIF is usually the lightest, followed by WebP, then JPEG; PNG is far heavier for photos but can win on simple graphics with few colours. The order changes from one image to another, which is why this page encodes your own image in all four formats and sorts them by weight.
What is the smallest image format with transparency?
AVIF, WebP and PNG all keep transparency; JPEG does not, so it is never suggested for a transparent image. AVIF or WebP generally win on cut-out photos and soft shadows, while a PNG with a reduced palette can stay competitive on flat logos and icons.
Which image format is best for websites?
Serve AVIF with a WebP or JPEG fallback using a <picture> tag: every visitor gets the lightest format their browser supports. This page builds that code for you once you have chosen, along with the downloads of each format.
What do the High, Medium and Light levels mean?
Each level sets a fixed quality per format, chosen to look alike: Medium is AVIF 50, WebP 72, JPEG 75 and a 128-colour PNG; High is AVIF 62, WebP 82, JPEG 85, 256 colours; Light is AVIF 38, WebP 55, JPEG 60, 64 colours. Check the result with the slider.
What is the smallest lossless image format?
Among widely supported formats, lossless WebP is usually lighter than an optimised PNG. This page compares formats at comparable visual quality, not lossless; to test lossless files, use Compress WebP with its lossless option and Compress PNG with “Lossless only”.
Why is JPEG XL not compared?
JPEG XL compresses very well, but few browsers display it: as of 23 November 2026, Safari does, Chrome and Firefox do not by default. A format your visitors cannot see is no use on a web page, so it is left out; use Convert to JPEG XL to try it.