PNG, JPG, WebP, GIF, BMP and other formats your browser can display. Files never leave your device.
About this tool
This image converter handles the three most common conversions on the web: PNG to JPG, WebP to JPG and WebP to PNG. It also turns JPG into PNG or WebP, and opens GIF, BMP and any other format your browser can display. Choose several files to batch convert them with the same settings. Each file shows its size before and after, so you can see whether the new format actually helps. All the work happens in your browser, and no image is uploaded.
How to use the image converter
- Choose or drop one or more images.
- Pick the output format. JPG is selected by default.
- Set the quality for JPG or WebP, and the background color for JPG if your images have transparent areas.
- Download each file, or click Download all. Changing a setting reconverts every file.
How the conversion works
The browser decodes each file into plain pixels, draws them onto a canvas of the same width and height, and encodes the canvas with toBlob() in the format you chose. The quality slider's 10–100% maps to the 0.1–1.0 value that the HTML standard passes to lossy encoders. PNG is lossless, so it has no quality setting. The standard also says that if a browser cannot encode the requested type it must return PNG instead. The tool checks the type of every file it gets back and labels it truthfully, so you never get PNG data with a .webp name.
PNG vs JPG vs WebP: which to use
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| PNG | Lossless | Yes, full alpha | Screenshots, logos, text, graphics you will edit again |
| JPG | Lossy | No | Photos, and any app or site that accepts only JPG |
| WebP | Lossy or lossless | Yes, full alpha | Web pages, where smaller files load faster |
Google's WebP documentation describes both lossy and lossless modes with transparency. Lossy means some detail is thrown away to save space, and the quality slider decides how much. Lossless means every pixel comes back exactly, which is why a PNG screenshot keeps crisp text.
Transparency and the background color
PNG and WebP keep transparent and semi-transparent pixels, so WebP to PNG and PNG to WebP need no background. JPG has no alpha channel. The HTML standard says a canvas saved in a format without alpha is composited onto black, which is why some converters give transparent logos a black box. This tool paints your background color first and then draws the image over it, so each pixel becomes alpha × image + (1 − alpha) × background. White is the default because most documents, email bodies and web pages are white, so the edge pixels blend in.
Worked example
Take a PNG with a fully transparent background and a pure red square at 50% opacity, rgba(255, 0, 0, 0.5). Convert it with the default settings: JPG, 92% quality, white background.
- The transparent background becomes white,
#FFFFFF. - Red: 0.5 × 255 + 0.5 × 255 = 255. Green and blue: 0.5 × 0 + 0.5 × 255 = 127.5. The square becomes pink, about
rgb(255, 128, 128), give or take a unit or two from JPG compression. - With a black background, the square becomes about
rgb(128, 0, 0), a dark red. - Convert the same file to WebP or PNG instead, and both the transparency and the half-transparent red are kept.
The width and height stay the same. To change them, use the Image Resizer.
Browser support for WebP output
Opening WebP files works in all current major browsers. Creating them is different. MDN's compatibility data lists WebP output from toBlob() in Chrome 50, Edge 79 and Firefox 96, and Safari on Mac and iPhone does not support it. Safari has been able to open WebP files since version 14 (on macOS 11 Big Sur or later) and on iOS 14. When the page loads, it tests whether your browser can encode WebP. If it can't, the WebP option is disabled and a message explains why. PNG and JPG output work everywhere.
Metadata, rotation and other limits
- EXIF is removed. A canvas holds only pixels, so camera model, date and GPS location are not copied. That is a privacy plus when you share photos, and a caveat if you need that data: keep the original.
- Rotation still looks right. In our tests in Chrome, a phone photo with an EXIF rotation tag came out upright, because the browser applies the tag when it decodes the image and the new file stores the turned pixels.
- Animated GIFs and WebPs become still images. Only one frame is drawn.
- HEIC photos from iPhones don't open in most browsers. Use the HEIC to JPG Converter.
- Very large images can exceed the browser's canvas size limit. That file then shows an error instead of a download.
Common mistakes
- Renaming
photo.webptophoto.jpg. That changes the name, not the data, and many apps will reject the file. - Converting back and forth between lossy formats. Each JPG or WebP save loses a little more detail, so always convert from the original.
- Expecting 100% JPG quality to be lossless. It is still lossy and often much larger than the source.
- Using JPG for logos with transparent edges. Use PNG or WebP, or match the background color to where the image will appear.
If you only want a smaller file in the same format, the Image Compressor is built for that.
Frequently asked questions
Pick a background color before converting. JPG has no transparency, and the HTML standard says a canvas saved in a format without alpha is composited onto black, so this tool paints your chosen color first. White is the default, which suits most documents and web pages.
Yes. PNG and WebP both store an alpha channel, so transparent and semi-transparent pixels are kept when you convert between them. Only JPG output needs a background color.
Safari can open WebP images but, according to MDN's compatibility data, cannot encode them from a canvas. When a browser can't create the requested format it returns PNG instead, so the tool checks for WebP support, disables the option if it is missing, and suggests Chrome, Edge or Firefox.
Yes. The tool redraws only the pixels onto a canvas and encodes a new file from them, so camera settings, GPS coordinates and other EXIF metadata in the original are not carried over. The original file on your device is unchanged, so keep it if you need that information later.
Yes. Select or drop several files and each one is converted with the same settings. Download them one at a time, or use Download all, which saves them one after another. Your browser may ask once for permission to download multiple files.
JPG is designed for photos. Screenshots, logos and graphics with flat color and sharp text often compress better as PNG, so converting them to JPG can give a bigger file with blurry edges. Compare the sizes the tool shows and keep whichever format is smaller and looks right.
There's no single right number. Start at the default 92%, check the converted size against the original, and lower the slider until you notice softening around edges or text, then move back up a little. Photos tolerate lower settings well, while screenshots with text show artifacts sooner.