🖼️ Client-Side Image Converter

Image Format Converter (JPG ↔ PNG ↔ WebP)

Convert image files between JPG, PNG, and WebP formats instantly in your browser without uploading photos to any server.

How JPG, PNG and WebP store pixels

JPG (JPEG) is a lossy format built for photographs. It splits the image into 8 x 8 pixel blocks, converts each block into frequency components with a discrete cosine transform, and then rounds off the fine detail that the eye notices least. Colour information is usually stored at lower resolution than brightness. The result is small files for photos and visible smearing around sharp edges such as text.

PNG is lossless. Each row of pixels is passed through a prediction filter and then compressed with DEFLATE, the same algorithm used in ZIP files. Nothing is thrown away, which makes PNG ideal for screenshots, logos, line art and anything with transparency, but poor for photos, where the noise in every pixel defeats the compressor.

WebP has two separate modes. Lossy WebP is based on the VP8 video codec and predicts each block from its neighbours before discarding detail, which is why it usually beats JPG at the same visual quality. Lossless WebP is a different algorithm aimed at the same jobs as PNG. Both modes support an alpha channel.

What the converter actually does to your file

The tool decodes your PNG, JPG or WebP into raw pixels, draws them onto an HTML canvas at the original width and height, and asks the browser to encode that canvas in the target format. All of this runs in the page; no image is sent to a server.

Because only pixels pass through the canvas, metadata does not survive. Camera model, capture date, GPS coordinates and embedded colour profiles are all dropped. That is useful when you want to strip location data before sharing a photo, but it matters if you rely on a wide-gamut profile, since the output is treated as standard sRGB.

The quality slider, from 10 to 100, is passed straight to the browser's encoder for WebP and JPG. It is not a percentage of the original quality; it is an encoder setting, and the same number gives different file sizes in different browsers. PNG ignores it because there is nothing to tune in lossless output.

Picking the right target

Converting a JPG to PNG does not restore lost detail. It locks in the JPG artefacts losslessly and often produces a file three to five times larger. Converting a PNG screenshot to JPG makes it smaller but adds fuzz around letters. Match the format to the content, not to a habit.

  • Photo for a web page: lossy WebP around 75 to 85. Most photos look the same as the source at a fraction of the size.
  • Photo for a portal or printer that only accepts JPEG: JPG around 85 to 92.
  • Screenshot, diagram or UI mock-up: PNG. Text stays crisp and colours stay exact.
  • Logo with a transparent background: PNG or WebP, never JPG.
  • Image you will edit again later: keep a PNG master and export lossy copies from it.

Generation loss and other pitfalls

Each time a lossy file is decoded and saved as lossy again, new rounding errors are added on top of the old ones. One extra pass at quality 85 is rarely visible; ten passes are. Always convert from the highest-quality source you have rather than from a file that has already been through a messaging app or a previous export.

The HTML canvas specification lets a browser fall back to PNG when it cannot encode the requested type. Some older Safari versions handle WebP this way. This converter checks the type the browser actually produced: if it differs from the format you picked, it shows a notice and names the download with the real extension, so you never get PNG data inside a file called .webp. Try a current Chromium or Firefox browser if you need true WebP output.

Very large images are limited by memory, not by the tool. A 24 megapixel photo needs about 96 MB of RAM as raw pixels on the canvas, which phones with little free memory can refuse.

Image Format Converter: frequently asked questions

Is WebP lossy or lossless?

It can be either. The format has a lossy mode based on VP8 and a separate lossless mode. How a browser canvas encodes WebP is up to the browser, so treat WebP files exported here as lossy unless you have checked otherwise.

Why is my PNG bigger than the JPG I converted it from?

PNG stores every pixel exactly, including the noise and compression artefacts in the JPG. Photographic content compresses badly without loss, so the PNG is typically several times larger with no visible improvement.

Does converting remove EXIF and location data?

Yes. The output is encoded from canvas pixels only, so EXIF fields such as GPS position, camera model and capture time are not copied into the new file.

What quality setting should I use for JPG?

Between 80 and 90 suits most photos. Below about 70, blocky artefacts appear in skies and smooth gradients; above 95, file size climbs quickly for almost no visible gain.

Can a converted image be converted back without loss?

Only if every step was lossless, such as PNG to lossless WebP and back. Once an image has passed through a lossy JPG or WebP encode, the discarded detail is gone for good.

All image & media suite