Image Converter
Convert JPG to PNG, PNG to JPG, any image to WebP, and AVIF, WebP or SVG files to PNG or JPG. Resize while you convert and adjust quality — all inside your browser, so your images are never uploaded.
What this image converter does
It decodes an image with your browser’s own decoder, draws it on an HTML canvas at the size you choose, and re-encodes the pixels as PNG, JPG or WebP. It opens anything your browser can display — PNG, JPG, WebP, AVIF, GIF, BMP and SVG in current browsers — but saves only the three formats browsers can reliably encode. The file never leaves your device.
How to convert an image
- Click the box above to choose an image, or drag one onto it.
- Pick a format under Convert to. The preview and the Original and Converted rows (dimensions and file size) update straight away.
- Adjust Size, Quality or Background if you need to; each change re-encodes the image.
- Click the download button (labelled Download PNG, Download JPG or Download WebP). The file keeps its original name with the new extension, so
holiday.pngbecomesholiday.jpg.
Options explained
- Convert to — PNG (lossless, keeps transparency), JPG (lossy, no transparency) or WebP (lossy here, keeps transparency).
- Size — 25%, 50%, 100%, 200% or 400% of the original pixel dimensions. Enlarging a bitmap cannot add detail; it is mainly useful for SVG, which is redrawn sharply at the new size.
- Quality — 10–100%, shown only for JPG and WebP. It is passed to the browser’s encoder, so the same setting can give slightly different files in different browsers.
- Background — shown only for JPG. Transparent pixels are painted with this colour (white by default), because JPG has no alpha channel.
Which format should I use?
| Format | Compression | Transparency | Best for | Here |
|---|---|---|---|---|
| PNG | Lossless | Yes | Screenshots, UI graphics, logos, images with text | In and out |
| JPG / JPEG | Lossy | No | Photographs where file size matters more than perfect detail | In and out |
| WebP | Lossy or lossless | Yes | Web pages; usually smaller than JPG or PNG for the same image | In and out |
| AVIF | Lossy or lossless | Yes | Modern web delivery with very high compression | In only |
| SVG | Vector | Yes | Icons and illustrations that must stay sharp at any size | In only |
| GIF / BMP | Lossless (GIF limited to 256 colours) | GIF: on/off only | Legacy files; convert them to PNG or WebP | In only |
For WebP, Google’s own compression study reported lossy WebP files 25–34% smaller than JPEG at equivalent quality; your results depend on the image. The quickest way to decide is to try both here and compare the Converted size.
Common conversions
JPG to PNG
Useful when an editor or form only accepts PNG, or to avoid further quality loss while editing. PNG cannot restore detail JPG already discarded, and the file grows: in our test, an 800 × 600 photo-like JPG of 167.7 KB became a 1.06 MB PNG.
PNG to JPG or WebP
Photos saved as PNG are often far larger than they need to be. JPG at 80–90% quality, or WebP, usually shrinks them a great deal with no visible difference. A logo with a transparent background is a poor candidate for JPG: the transparency is replaced by the Background colour, so choose WebP or keep PNG.
WebP or AVIF to PNG or JPG
Images saved from websites are often WebP or AVIF, which older editors and some forms still reject. Choose PNG or JPG for a widely compatible copy. Opening AVIF needs a browser that supports it, as current Chrome, Edge, Firefox and Safari do.
SVG to PNG
Social networks, app stores and email clients usually want a bitmap. Choose PNG and 200% or 400% for a crisp, high-resolution export. If the SVG has no usable width and height, the tool takes the size from its viewBox (and falls back to 300 × 150, the default size of a replaced element, if there is none). An SVG with viewBox="0 0 120 60" exports at 480 × 240 pixels at 400%.
Common problems and fixes
| Message or symptom | Cause | Fix |
|---|---|---|
| “Your browser could not read this image” | The file is damaged, or in a format the browser cannot decode, such as HEIC from an iPhone or TIFF. | Export it as JPG or PNG from the device or app that created it, then convert here. |
| “Your browser cannot create WebP files” | Some browsers can display WebP but not encode it from a web page; Safari is the usual case. | Use a recent Chrome, Edge or Firefox for WebP, or choose PNG or JPG. |
| “The output would be … pixels” | The result would exceed 16,777,216 pixels (4096 × 4096), a canvas limit in Safari that the tool applies everywhere. | Choose a smaller Size. |
| Transparent areas filled with a solid colour | JPG cannot store transparency. | Pick a Background colour that matches where the image will be used, or convert to PNG or WebP. |
| The converted file is bigger than the original | PNG was chosen for a photo, or the source was already heavily compressed. | Use JPG or WebP and lower Quality. |
| Colours look slightly different | The pixels are redrawn without the original embedded colour profile. | For colour-critical print work, convert in an editor that manages ICC profiles. |
Frequently asked questions
Are my images uploaded to a server?
No. The image is decoded and re-encoded by your own browser. You can disconnect from the internet after the page loads and the converter keeps working.
Does converting remove EXIF and GPS data?
Yes. Only the pixels are drawn to a canvas and re-encoded, so camera details, GPS coordinates and other metadata are not written to the new file. Converting is therefore a quick way to strip location data before sharing a photo.
Will converting JPG to JPG again lose quality?
Each lossy re-encode discards a little more detail, so avoid repeated JPG or WebP round trips. Keep a PNG or the original as your master copy and export a lossy version from that.
Are animated GIFs or WebPs supported?
Only one frame is converted — the image’s default frame, usually the first. The canvas holds a single still image, so the output is never animated.
Why can I open AVIF but not save as AVIF?
Displaying AVIF and encoding it are separate features. The HTML standard only requires browsers to encode PNG from a canvas, and when asked for AVIF, Chromium returns PNG instead. Use an image editor or a command-line encoder such as avifenc for AVIF output.