Convert Images Between JPG, PNG and WebP

Pick a target format, drop an image, download the result. Transparency survives PNG and WebP, JPEG gets a matte colour you choose, and the file never leaves this tab.

Image format converter

Converted in this tab — never uploaded

Drop an image here, or click to choose one JPG, PNG or WebP · up to 40 MB · you can also paste from the clipboard HEIC is not supported — see the note below.
Output format JPG, PNG or WebP

Converting does not improve quality. A JPEG decoded to PNG keeps exactly the artefacts it already had — it just stores them losslessly, usually in a bigger file.

EXIF is dropped in the conversion, including GPS location and camera model. That is usually what you want for a photo you are about to publish.

HEIC photos from an iPhone are not supported — browsers cannot decode them without a bundled codec. Export as JPEG from the Photos app first.

Why convert in the browser

Format conversion sounds harmless, and for a stock photo it mostly is. But the images people actually convert are often things like a signed contract scan, an ID photo for a form, a screenshot of an invoice, a product shot not yet published. Every one of those passing through somebody's upload folder is a small unnecessary risk.

This converter decodes the file in the tab, draws it to a canvas, and re-encodes it in the format you pick. There is no upload, no queue, no temporary file on a server. The output comes back as a blob URL you download directly.

What each format is actually for

  • JPEG — lossy, no transparency, best for photographs. It is the format upload forms and print shops usually expect.
  • PNG — lossless, supports transparency, best for screenshots, logos, diagrams and anything with sharp edges or flat colour.
  • WebP — smaller files and transparency. The browser's canvas encoder writes lossy WebP even at maximum quality, so treat it as the smaller-file option, not a pixel-exact one.

The practical mapping: photographs to JPEG, graphics and screenshots to PNG — the only output here that does not lose pixel data — and anything that needs a transparent background to PNG or WebP.

One distinction that saves confusion: the file extension does not always match what is inside. A PNG renamed to .jpg is still a PNG, and some upload forms inspect the actual bytes rather than the name. If a form insists on JPEG and rejects your file, re-convert it here instead of renaming it — renaming changes the label, not the encoding.

Three things conversion will not do

It will not recover quality. A JPEG has already thrown information away. Converting it to PNG preserves what is left, perfectly, but the artefacts from the original compression come along. There is no operation that puts back detail the encoder discarded.

It will not usually make a JPEG smaller by turning it into PNG. The opposite is common: a 200KB JPEG can become a 2MB PNG because PNG stores every pixel losslessly. If the goal is a smaller file, convert to WebP or re-compress as JPEG with a byte target — the image compressor handles that case.

It will not add transparency to a JPEG. People search for "jpg to png transparent background", and no converter can do it: the JPEG has no alpha channel to preserve, so there is nothing to recover. Converting gives you a PNG with an opaque background. Removing a background is a separate editing job.

Advertisement

What happens to transparency when you switch format

Going from PNG or WebP to JPEG is the case that needs a decision. JPEG cannot store transparency, so transparent pixels must be filled with something. This tool lets you pick the matte: white is right for documents and product photos on a light page, black for dark backgrounds, and a matching colour for a logo that sits on a brand panel. If you skip this, you get whatever the encoder defaults to — often black — and a logo designed for a white page arrives with a black box behind it.

Going the other way, PNG to WebP: transparency is preserved, but the pixels are re-encoded by a lossy encoder — at maximum quality the difference is usually invisible, and a logo with hard edges is the case most likely to show it. If the file has to be pixel-exact, keep it as PNG.

Advertisement

HEIC, and why it is not here

iPhone photos are often HEIC. Converting them is a real need, and this tool does not do it. Decoding HEIC requires a licensed codec that browsers do not ship; anybody offering it in a pure web tool is either bundling a large WebAssembly build or uploading your photo to a server. We are not doing the second, and the first would blow the page's size budget for one format.

The workaround is built into iOS: in the Photos app, share the photo and choose to keep it as JPEG, or change the camera setting to "Most Compatible". The result converts normally here.

EXIF and location data

Re-encoding through a canvas drops the metadata block, and that includes GPS coordinates, camera model and capture time. For publishing, that is usually a benefit — a photo taken at home does not need to announce the street. The exception is a photo that depends on its EXIF orientation flag; if a portrait photo arrives rotated, rotate it explicitly rather than relying on the original flag.

Nothing is uploaded

The file is read with FileReader, decoded by the browser, drawn to a canvas and re-encoded. No request carries image data, nothing is stored, and the tool keeps working if you disconnect after the page has loaded. Verify it in the network panel: converting a photo produces no outbound request with the file in it.

Check the result

Open the downloaded file, not the preview: check dimensions are unchanged, check the transparent areas are still transparent (or that the matte colour is right), and check the file extension matches the format you asked for. Forms that reject a file usually reject on extension or size, not on visual quality.

Back to all SizeGlide tools.

Frequently asked questions

Does converting JPG to PNG make it transparent?

No. A JPEG has no transparency to preserve, so the PNG you get has an opaque background. Removing a background is an editing task, not a format conversion.

Will converting to PNG make my file smaller?

Usually not — it often makes it much bigger, because PNG stores every pixel losslessly. If you need a smaller file, convert to WebP or compress to a target size instead.

Can it convert HEIC photos from my iPhone?

No. Browsers cannot decode HEIC without a bundled codec, and we do not upload your photo to a server to convert it. Export the photo as JPEG from the Photos app, or set the camera to Most Compatible, then convert here.

Is EXIF data kept?

No. Re-encoding drops the metadata block, including GPS location, camera model and timestamp. That is usually desirable for publishing; the exception is a photo that relies on its orientation flag, which should be rotated explicitly.

Does converting reduce quality?

Converting to PNG keeps every pixel exactly. WebP is re-encoded by the browser even at its highest setting, so use PNG when exact pixels matter.

Advertisement