The Magic Codex

Image Format Converter

Change images between JPG, PNG, and WebP right in your browser — with a quality slider, optional resize, and before/after sizes so you can see exactly what changed. Free, private, no signup.

Output format
85%

Lower quality = smaller file. Applies to JPG and WebP only — PNG is lossless.

Shrinks the longest side; the aspect ratio is preserved. Smaller images are never enlarged.

How to convert an image's format

Different places want different formats: a website hero wants a tiny WebP, a print shop wants a full-quality JPG, a logo needs a transparent PNG. Converting takes seconds:

  1. Choose your image — tap the drop zone or drag a file in. The tool reads its dimensions, type, and size instantly.
  2. Pick the output format: JPG for photos, PNG for screenshots and transparency, WebP for the smallest modern file.
  3. Set the quality (JPG/WebP). 85% is the sweet spot for photos — visibly identical, much smaller.
  4. Resize if needed. A 4000-pixel phone photo doesn't belong in a blog post; cap it at 1920 or 1280.
  5. Convert and download. The before/after sizes tell you exactly what the conversion bought you.

What the tool can't do

Conversion never improves quality — a blurry JPG stays blurry as a PNG (just bigger). Animated GIFs convert to their first frame, since still-image formats can't hold animation. And HEIC photos from iPhones may need converting to JPG on the phone first, if your browser can't decode them.

Which output format should I choose?
JPG for photos and anything with lots of color gradients — it compresses far smaller. PNG for screenshots, logos, and text, or whenever you need transparency. WebP is the modern best-of-both: usually smaller than both, supported by every current browser.
Does converting a JPG to PNG improve its quality?
No. Conversion never adds detail — a JPG's compression artifacts are baked in, and PNG just stores them losslessly (usually in a bigger file). Convert for compatibility or transparency, not to rescue quality.
What does the quality slider do?
It controls compression for JPG and WebP, from 10% (tiny file, visible artifacts) to 100% (largest file, near-original). 85% is a good default for photos. PNG is lossless, so the slider hides when PNG is selected.
Will my image be resized?
Only if you ask it to. By default the original dimensions are kept exactly. The max-dimension dropdown optionally shrinks the longest side to 1920, 1280, or 800 pixels while preserving the aspect ratio — images smaller than the limit are never enlarged.
Is it safe to convert personal photos here?
Yes. Your image is decoded, converted, and re-encoded entirely in your browser with the canvas API. Nothing is uploaded to a server, stored, or seen by anyone else.
Why was my file rejected?
Either it is not an image file (PDFs, text files, and videos are rejected with a friendly message), or the image data is corrupted and the browser cannot decode it. Animated GIFs are accepted but convert to their first frame — animation cannot survive the conversion.

More from the codex

Questions about this tool?

Found a bug or have a suggestion? Email [email protected] — every message is read by the indie dev behind the codex.