Image Format Converter
Convert images between JPG, PNG, WebP and AVIF in your browser. Adjust quality, resize, and batch-convert — no upload.
Image Format Converter
Fills transparent areas. JPG has no transparency.
How to use the image format converter
Add your images
Drop one or more files on the box, or click to choose them. Anything your browser can open will work. A file it cannot open is listed with the reason. Each file then shows what this conversion will remove from it.
Pick the output format
WebP suits most web images, JPG is the safest for photos going to email, print shops or old systems, and PNG is for anything that must stay exact. WebP and AVIF are switched off if your browser cannot create them, which is common: Safari cannot write WebP, and Chrome 152 could not write AVIF when we tested.
Adjust quality and size
For photos try 75 to 85, and check the result at the size it will be shown. The number does not mean the same thing across formats or browsers: the HTML standard says implementations "can have slightly different interpretations". Set a max width to shrink; images are never enlarged.
Screenshots are different. In Chrome, WebP at quality 100 is lossless: on our flat-colour test image it changed 0 pixels and came out 23% smaller than the PNG, while quality 95 changed 40,763 of 480,000. Below 100 you are back to lossy, however close it looks.
Convert and download
Click Convert all. Each file gets its own Download button, and several files can be saved together as one ZIP. If you change a setting, the results clear so you never download something that no longer matches it.
What each format keeps, and what this tool drops
| JPG | PNG | WebP | AVIF | |
|---|---|---|---|---|
| Compression | Lossy | Lossless | Both | Both |
| Transparency | No | Yes | Yes | Yes |
| Animation, as a format | No | APNG | Yes | Yes |
| This tool writes on | All browsers | All browsers | Chrome 50, Edge 79, Firefox 96. Not Safari | Only if your browser passes the test above |
Those are the formats. This tool works through a canvas, so whatever you start with is flattened to a plain 8-bit picture before it is written out. That has costs the format table does not show:
- Metadata goes. EXIF, GPS and XMP were absent from JPG, PNG and WebP output in our test. That is good for privacy and bad if the file carried your copyright notice. To keep or inspect it, use EXIF Viewer first.
- Colour becomes sRGB. Wide-gamut photos are converted, and colours outside sRGB are clipped. The HTML standard has the browser tag its output with a colour profile, so a JPG or WebP from here does carry one, but it describes sRGB, not your original.
- Rotation is applied. A photo tagged "rotate 90°" is drawn upright and saved upright, so the tag is not needed.
- Animation stops. An animated GIF, WebP or APNG keeps its first frame only.
- 16-bit becomes 8-bit. A 16-bit PNG comes out with 8 bits per channel.
- Transparency turns white in JPG. Left alone, the standard composites onto black, which is what you get from tools that skip this step. Here you choose the colour.
How much smaller?
Google's own study found lossy WebP 25 to 34% smaller than JPEG at equivalent SSIM, and lossless WebP 26% smaller than PNG. Those are averages over its test sets at matched quality, so they do not mean WebP at slider 80 beats JPG at slider 85 by that much on your photo. The converter shows the real number for each file. If the output is larger, the original was probably compressed harder than the setting you chose, or you asked for PNG from a JPG, which cannot get the lost detail back.
JPG for screenshots is a trap
JPG smears sharp edges. On our flat-colour test image, quality 100 still changed 31,092 of 480,000 pixels and the file came out 26% larger than the PNG. Quality 100 is not lossless: the colour conversion and the transform discard data at any setting. Use PNG, or WebP at 100 in Chrome.
HEIC from an iPhone
This tool can only convert what your browser can open, and it writes only the four formats above. Chrome 152 on a Mac refused our HEIC test file, and the tool tells you when that happens. Your iPhone can avoid the problem: in Settings, Camera, Formats, Most Compatible shoots JPG in the first place.
FAQ
-
No. Your browser decodes and re-encodes each image on a canvas in this page, and pressing Convert uploads nothing. The page's own scripts and any consented ads still load as they do on any page, so filter DevTools → Network if you want to see that for yourself.
-
Yes, as a side effect: the output is written from pixels, so EXIF, including GPS, was absent from the JPG, PNG and WebP files in our test. Lossy formats are compressed again in the process. To see what a file carries first, use EXIF Viewer.
-
Showing a format and creating one are separate abilities. MDN lists AVIF display in Chrome 85, Firefox 93 and Safari 16.1, but a canvas could not write it in Chrome 152 when we tested. MDN's compatibility data gives Chrome 50 and Firefox 96 for writing WebP and no version of Safari. When a browser cannot write a format, the HTML standard makes it return a PNG with no error, so this page tries a one-pixel encode first and switches off whatever fails. Browsers on an iPhone generally use Safari's engine, so the same usually applies there.
-
It depends on the browser's canvas limit. MDN says most browsers go past 10,000 × 10,000 pixels but iOS devices stop at 4,096 × 4,096, which is smaller than a 48-megapixel photo. If encoding fails, the file says so. Set a max width and try again.
-
SVG yes: the browser draws it at its own stated size, and the result is a flat image. It cannot be scaled up here, because max width only shrinks. For PDF, use PDF to Image.
Method & sources
How it computes
Reads each file's header to report what it holds (EXIF, GPS, XMP, colour profile, animation, bit depth), redraws it on an HTML canvas, optionally scaled down to a maximum width, and re-encodes with toBlob(). JPEG transparency is filled with a colour you choose. WebP and AVIF are offered only after a one-pixel encode proves your browser can write them, because the standard falls back silently to PNG (ImageFormatKernel).
What this tool implements
- Encoders are tested, not assumed. The HTML standard: if the user agent does not support the requested type, "it must create the file using the PNG format", so an unsupported output type is replaced by PNG without an error. MDN browser-compat-data gives toBlob image/webp as Chrome 50, Edge 79, Firefox 96 and no version of Safari. It has no entry for AVIF output, and a one-pixel encode in Chrome 152 returned image/png.
- The HTML standard composites a type with no alpha onto opaque black, and requires a colour profile on types that support one. Measured in Chrome 152 on 2026-11-02: unfilled transparency came out black; JPEG and WebP output carried an ICC profile; EXIF, GPS and XMP from the source were absent from output; a file tagged Orientation 6 came out upright with its dimensions swapped; a Display P3 file was colour-managed into sRGB; an animated GIF drew its first frame; a HEIC file failed to decode.
- Size claims are Google's study, stated as such: lossy WebP 25-34% smaller than JPEG at equivalent SSIM, lossless WebP 26% smaller than PNG. They are not a promise for a given slider position, and the page says so; the HTML standard notes implementations "can have slightly different interpretations" of quality.
- Quality 100 is measured, on one 800 × 600 flat-colour image: WebP changed 0 pixels and came out 23% smaller than the PNG, quality 95 changed 40,763; JPEG at 100 changed 31,092 and came out 26% larger than the PNG.
- Corrected 2026-11-02: AVIF encoding "Chrome 105+, Firefox 113+, Safari 16.4+" (no source lists any of these for output; MDN lists Chrome 85, Firefox 93 and Safari 16.1 for display); GIF listed as an output format; HEIC "Safari and Chrome on Mac" (Chrome refused it); phones handling "~50 MP" against MDN's iOS 4,096 × 4,096 canvas limit; "zero outbound traffic". Removed as unsourced: the date history of PNG and of WebP lossless, "Apple keeps it proprietary on the encode side", a list of APAC sites said to serve WebP via <picture>, and a pull-quote of slider figures.
Sources
- WHATWG HTML Living Standard, section 4.12.5 "The canvas element" — toBlob(): an unsupported type is replaced by image/png; types without alpha are composited onto black; quality is a Number from 0.0 to 1.0. https://html.spec.whatwg.org/multipage/canvas.html
- MDN browser-compat-data, api/HTMLCanvasElement.json — toBlob type_parameter_webp, type_parameter_jpeg, type_parameter_png. https://raw.githubusercontent.com/mdn/browser-compat-data/main/ap…
- MDN Web Docs. Image file type and format guide — AVIF display: Chrome 85, Edge 121, Opera 71, Firefox 93, Safari 16.1. https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats…
- MDN Web Docs. <canvas>, Maximum canvas size — iOS devices limit the canvas to 4,096 × 4,096. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Eleme…
- Google for Developers. An image format for the Web — lossy WebP 25-34% smaller than JPEG at equivalent SSIM, lossless 26% smaller than PNG. https://developers.google.com/speed/webp
- IETF RFC 9649, WebP Image Format (November 2024) — lossy and lossless WebP, and its RIFF chunks. https://www.rfc-editor.org/rfc/rfc9649.html
- Alliance for Open Media. AV1 Image File Format (AVIF) — AV1-coded images in the HEIF container. https://aomediacodec.github.io/av1-avif/
- ITU-T Recommendation T.81 (09/92) | ISO/IEC 10918-1 — the JPEG baseline: lossy, no alpha channel.
What can make this go out of date
- None at runtime: every image is decoded and re-encoded in your browser, and no file is uploaded to RECATOOLS or anyone else.
Abridged — the full review record for this tool runs longer than the list above.
Pick up where you left off
Stored only in this browser — never sent to our servers.