Image Format Converter

PNG to JPG, JPG to WebP, WebP to PNG — converted on your device in a fraction of a second.

Drop an image here or click to choose a file — PNG, JPG, WebP, GIF, BMP or SVG

Runs in your browser. Everything you type or load here is processed locally by JavaScript on this page. Nothing is uploaded to Tooltrusty or to any third party.

What the image Format Converter does

Converting between image formats means decoding the file into raw pixels and re-encoding them using a different codec. Your browser can already do both halves, so no server is involved: the image is decoded by the browser's image pipeline, drawn into a canvas, and re-encoded by the same engine that renders every image you see.

The three formats solve different problems. PNG is lossless and stores an alpha channel, which makes it correct for logos, screenshots, diagrams and anything that needs transparency, and wasteful for photographs. JPEG is lossy and has no alpha channel; it is excellent at photographs and poor at flat colour and text, where it produces visible ringing around edges. WebP does both jobs — lossy or lossless, with transparency — and typically produces files 25–35% smaller than the equivalent JPEG or PNG. Every current browser supports it.

Converting to JPEG raises a question the other directions do not: what should happen to transparent pixels? Left alone, a canvas renders them as black, which is almost never wanted. This tool fills them with a colour you choose, defaulting to white. Set it to match the background the image will sit on and the edges will look clean.

One direction is worth avoiding. Converting an existing JPEG to PNG makes the file much larger without recovering any of the detail the JPEG already discarded — you get a lossless copy of a lossy image. The only good reason to do it is when a system you are feeding refuses JPEG.

How to use it

  1. Drop in the image you want to convert.
  2. Choose the target format, and set the quality if you are producing JPEG or WebP.
  3. If you are converting a transparent image to JPEG, pick the background colour that suits its destination.
  4. Compare the before and after file sizes, then download.

A worked example

A 240 KB PNG screenshot of a dashboard, being prepared for a blog post:

TargetResultVerdict
JPEG, quality 90186 KB, text edges slightly fuzzyPoor choice — screenshots have hard edges JPEG handles badly
WebP, lossy 9084 KB, edges cleanBest choice — a third of the size with no visible loss
PNG (unchanged)240 KBSafe fallback where WebP is not accepted

For a photograph the ranking reverses: JPEG at quality 85 would beat PNG by a factor of five or more, and WebP would beat JPEG again by roughly a third.

Frequently asked questions

Which format should I use for my website?

WebP for almost everything, with a JPEG or PNG fallback if you support very old browsers. For photographs specifically, WebP then JPEG; for logos, icons and screenshots, WebP then PNG. Never use PNG for a large photograph.

Why do transparent areas turn white when I convert to JPEG?

Because JPEG has no alpha channel — the format simply cannot store transparency. This tool fills those pixels with the background colour you pick, defaulting to white. Choose the colour the image will actually sit on.

Can I convert an SVG to PNG here?

You can drop an SVG in and it will rasterise, but the dedicated SVG to PNG Converter is better for that job because it lets you choose the output resolution — which matters a great deal for a vector file that has no fixed pixel size.

Will converting to PNG restore quality lost by a JPEG?

No. Detail discarded by JPEG compression is gone permanently. Converting to PNG produces a lossless copy of the already-degraded image, at a much larger file size. Only do it when a system you are feeding requires PNG.