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.
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.
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.