Convert images between PNG, JPEG, WebP, GIF and BMP (and AVIF where your browser supports it), one at a time or in a batch, and compare how big each format makes your picture.
Initializing in your browser…
Convert SVG files to PNG, JPG or WebP at any size, sharp at every scale, with a transparent or coloured background and a live preview.
Turn an image into Base64 text or a data URL to embed in HTML, CSS or Markdown, checked to decode back to your exact file. Optional resizing first.
Resize, convert or apply an effect to many images at once, with presets for social media and the web, a naming pattern, and one ZIP download.
A 1600 by 1067 photo saved by a camera app as a 405 KB JPEG. Which format makes the smallest file at the same 80% quality?
Input
sample-sunset.jpg, 1600 x 1067, 405 KB JPEG Compare formats at 80% quality
Compare formats
WebP 141 KB likeness 0.883 (smallest) JPEG 159 KB likeness 0.853 GIF 670 KB 256 colours PNG 2.55 MB exact BMP 4.88 MB exact
At the same quality setting WebP is about 11% smaller than JPEG and also a little closer to the original, which is why it is the usual choice for photos on the web. PNG and BMP keep every decoded pixel exactly, so they are many times larger than the JPEG they came from: they store the film grain of the photo precisely instead of approximating it. GIF has to fit the sunset into 256 colours and dithers the rest, which is both larger and less faithful than WebP for a photo. The likeness figure is SSIM, where 1 is identical; it is lower than usual here because the sample photo carries fine grain on purpose.
Turn a picture into the format you need: PNG for lossless graphics and transparency, JPEG for photos that open everywhere, WebP for small files on the web, GIF for simple graphics, BMP for older software, and AVIF where your browser can write it. Convert one image with a live preview, many at once into a ZIP, or compare every format side by side to see which is smallest.
Smaller WebP versions of photos load faster, which helps visitors on phones.
JPEG and PNG copies of WebP or AVIF images for apps and services that do not accept them.
PNG or GIF for flat colours, sharp edges and transparency.
Compare every format on your own picture before deciding what to publish.
Converting a 405 KB 1600 by 1067 photo to WebP at 80% gives 141 KB, about 65% smaller, with no visible difference at normal viewing size.
Some email clients still prefer JPEG. Choose JPEG, set the background to the colour of the email, and the transparent edges blend into it instead of turning black.
A legacy application only opens BMP. Switch to Batch, add the PNG screenshots, choose BMP and download the ZIP; every pixel comes through unchanged.
Pick a format or a quick preset. For the web makes a WebP at 80% quality, Lossless makes a PNG that keeps every pixel, To share makes a JPEG at 90% that any device can open, and Smallest makes a WebP at 60%. You can also choose the format directly. JPEG, WebP and AVIF have a quality slider; PNG, GIF and BMP do not, because PNG and BMP keep every pixel exactly and GIF instead reduces the picture to at most 256 colours, dithered so gradients stay smooth.
What you get is checked. Browsers can only write some formats, and when asked for one they cannot write, a browser quietly produces a PNG instead. This tool tests what your browser can really write and only offers those formats; GIF and BMP are written by the page itself, so they work everywhere. After every conversion the file is read back and its first bytes are checked, so the format shown is the format you download, and the file name gets the matching extension.
Size and quality at a glance. The result shows the original and converted sizes, how much smaller or larger the new file is, and a preview of both. File details compares the converted picture with the original pixel by pixel: a lossless format reports no change at all, and a lossy one reports how similar it still is (SSIM, where 1 means identical) and how far the largest change goes. Compare formats does this for every format at once and puts the smallest first, which is the quickest way to decide.
Transparency. PNG, WebP, GIF, BMP and AVIF keep transparent areas. JPEG cannot, so when your picture has transparent pixels the tool says how many and lets you choose the colour they become; white is the default rather than the black a canvas would otherwise give.
Batch conversion. Switch to Batch, drop or choose any number of pictures, pick the format and press Convert. Each file is converted with a progress bar and a Cancel button, every result is checked the same way, and Download ZIP saves them all with the right extensions. Metadata such as camera details, GPS location and colour profiles is not carried into the converted files. Everything happens in your browser, so your pictures are never uploaded.
For photos on the web, WebP is usually smallest and JPEG is the safest for compatibility. For screenshots, logos and anything with transparency or sharp text, use PNG. GIF suits simple graphics with few colours, and BMP is only for software that needs it. Compare shows the real numbers for your picture.
Your browser cannot write AVIF from a web page. Asked anyway, it would produce a PNG, so the tool tests support first and disables formats that would not come out as asked.
A JPEG is compressed by discarding detail. Converting it to PNG keeps every decoded pixel exactly and cannot rediscover what was discarded, so the lossless file is usually several times larger. For a smaller file, choose WebP or JPEG.
Not with PNG or BMP, which keep every pixel exactly; the tool confirms this by comparing the result with the original. JPEG, WebP and AVIF trade some detail for size, and GIF reduces the picture to 256 colours. File details shows how much changed.
PNG, WebP, GIF, BMP and AVIF keep it. JPEG has no transparency, so transparent pixels are filled with the background colour you choose, white by default.
No. The picture is converted from its pixels, so camera details, GPS location and other metadata are left out, and colours in a wide-gamut profile are converted to standard sRGB.
No. Decoding, converting and checking all happen in your browser, and the files never leave your device.
Images are decoded, edited, and exported entirely inside this browser tab. No originals, exports, or metadata are uploaded.