Image Format Converter
Convert images to PNG, JPG or WebP entirely in your browser. Set quality and an optional maximum width, and batch-process multiple files at once. No upload, no signup, no compression-quota limits — everything runs locally on your machine using the browser's native image decoders.
Why Format Conversion Still Matters
Different formats are good at different things. JPG is lossy, has no alpha channel, and produces the smallest files for photographs. PNG is lossless, supports transparency, and is the right pick for logos, screenshots, and anything with sharp edges. WebP is roughly 25-35% smaller than JPG at equivalent quality and supports both lossy and lossless modes plus transparency — it's the default modern web image format. AVIF compresses even better than WebP but lacks the universal support WebP enjoys, so it's usually shipped as a <picture> fallback layer.
The right format depends on where the image is going. Email attachments still want JPG for compatibility. Modern web pages want WebP with a JPG fallback. App icons want PNG for the alpha channel. Social media platforms each have their own preferences — Instagram converts everything to JPG anyway, so starting from JPG saves a round-trip of recompression.
How It Works
The tool uses the browser's Canvas 2D API. Each input image is decoded into a canvas, then re-encoded via canvas.toBlob() in the target format. The quality slider maps directly to the quality parameter of toBlob() for JPG and WebP. For PNG output the slider is ignored. Browsers cannot encode BMP or GIF from a canvas, so the tool writes those itself: BMP as an uncompressed 24-bit bitmap, GIF with the gifenc encoder (MIT), reduced to a 256-colour palette with one-bit transparency. Every result is checked: if a browser hands back a different format than the one you chose, the file is not offered and you see why. Exif and colour-profile metadata are not carried over.
Need to compress before converting? Run the input through the image compressor first. Need to resize? The bulk image resizer handles dimensions before format. For removing the background on a photo before converting, the background remover runs locally too. To color-grade a photo before exporting it — and optionally pull the grade out as a .cube LUT with Cinematic Looks — grade first, then convert.
Common Use Cases
Converting a folder of PNG screenshots to WebP for a documentation site (our 1280×720 test came out 9% smaller at quality 90; lower quality saves more). Producing JPG versions of design exports for email-friendly sharing. Stripping the alpha channel from a PNG by converting to JPG so a print service doesn't reject it. Bringing HEIC or AVIF images into a format older software accepts, where your browser can decode them.
Worked example: what each target format really produces
On October 12, 2026 we ran three files through the tool's conversion path in Chromium 141 (draw to canvas, white fill for JPG and BMP, then canvas.toBlob() with the target type at the default quality 90) and read the type and size of each result.
| Input | Original | JPG | WebP | PNG | BMP / GIF (since Oct 12, 2026) |
|---|---|---|---|---|---|
| Photo, 1920×1080 JPEG | 793 KB | 597 KB | 474 KB | 4.12 MB | Real BMP and GIF now (before: PNG data, 4.12 MB, with a .bmp/.gif name) |
| Screenshot PNG, 1280×720 | 68 KB | 98 KB | 62 KB | 107 KB | Real BMP and GIF (before: PNG data) |
| Logo PNG, transparent | 4 KB | 12 KB, white background | 5 KB, transparency kept | 10 KB | BMP on white; GIF keeps transparency (before: PNG data) |
- BMP and GIF are now real BMP and GIF files. Browsers can only encode PNG, JPEG and WebP from a canvas, and the HTML standard says any other type falls back to PNG, so until October 12, 2026 the tool saved PNG data under a .bmp or .gif name. It now writes BMP itself and GIF with gifenc. Re-test in Chromium with a 640 × 420 PNG that has a transparent band: all five targets start with the right file signature and open in Pillow; the BMP (806,454 bytes, 24-bit) matched the source composited on white pixel for pixel, and the GIF has 255 colours plus a transparent index. GIF is still limited to 256 colours, so photos show banding.
- There is no AVIF or metadata option. Chromium 141 also returned PNG when asked for AVIF, and drawing to a canvas removes Exif and ICC data, so every output is metadata-free.
- Converting does not always shrink files. At quality 90 the photo shrank to 75% as JPG and 60% as WebP, but the screenshot grew to 145% as JPG and a re-encoded PNG grew to 159% (the browser's PNG encoder compresses less than most tools). WebP was the only target that never grew the screenshot.
- Transparency becomes white for JPG and BMP. The tool fills the canvas with white first, so logos keep a clean white background instead of black.
Sources
Checked on .
Related tools
- To compare what JPEG, PNG, WebP, and AVIF would each weigh at the same dimensions before converting, the File Size Estimator prints a side-by-side bits-per-pixel table.
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools