Image Converter
Published Updated
Convert any image your browser can open to PNG, JPEG or WebP at the same pixel size.
Three outputs, any input the browser can read
The converter decodes your file with the browser's own image decoder, draws it on a canvas of the same size and encodes it as PNG, JPEG or WebP. Pixel size does not change, except past a format's own limit: see Very wide pictures below. That makes the list of supported inputs as long as your browser's: GIF, BMP, ICO, SVG and AVIF opened in all four engines in our test, while TIFF opened only in Playwright's WebKit build (see the table below).
Which output for which picture
Two test images encoded by Google Chrome 156's canvas encoder, the one this tool uses:
| Output | 2000 x 1500 photo (JPEG, 307,159 bytes) | 1280 x 800 screenshot (PNG, 4,593 bytes) |
|---|---|---|
| PNG | 3,423,844 bytes | 23,973 bytes |
| JPEG, quality 90 | 285,207 bytes | 50,477 bytes |
| WebP, quality 90 | 135,074 bytes | 4,240 bytes |
| WebP, quality 100 (lossless) | 1,968,472 bytes | 1,804 bytes |
The pattern is the usual one: JPEG and Lossy. Compression that throws some detail away to get a smaller file, so the decoded result only approximates the original. JPEG is the best-known example; each further lossy save can remove a little more. Read the guide WebP for photos, PNG or WebP for flat graphics. Re-encoding an already compressed JPEG as PNG never brings detail back; it only makes the file larger.
Thirty files, four browsers: what opened and what came out
We loaded the page's real converter in Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and the WebKit build and gave it 30 generated files: drawn photo-like scenes, a flat screenshot-like graphic, transparency, animation, a rotated JPEG, a Display P3 colour test, made-up camera tags and very wide strips. Each one was converted to PNG, JPEG and WebP at the default quality (two of them at five quality settings) with the page's own controls, the result downloaded from the page's link and decoded again in the same browser. One run per engine; no real photos, and we did not view the files in other apps.
| Input | Chrome 156 | Chromium 153 | Firefox 155 | WebKit build |
|---|---|---|---|---|
| PNG (8-bit colour, greyscale, transparency, 16-bit), JPEG (RGB and CMYK), WebP, GIF, APNG, BMP, AVIF, ICO | Opened | Opened | Opened | Opened |
| SVG with a width and height (200 x 100) | 200 x 100 | 200 x 100 | 200 x 100 | 200 x 100 |
| SVG with no width and height, with or without a viewBox | 300 x 150 | 300 x 150 | 300 x 150 | 300 x 150 |
| ICO holding 16, 32, 48 and 256 px pictures | The 256 px one | The 256 px one | The 256 px one | The 256 px one |
| TIFF (written by Pillow); HEIC (written by macOS sips) | Could not read | Could not read | Could not read | Opened |
| Animated GIF, WebP and APNG | First frame | First frame | First frame | First frame |
| 30,000 random bytes named .png | Could not read | Could not read | Could not read | Could not read |
The WebKit build handed back a PNG whenever the page asked its canvas for WebP, so every WebP request there ended with the page's own message and no download. The Source format line comes from the file's type; the WebKit build gave our .apng no type at all, so the card showed APPLICATION/OCTET-STREAM.
The quality slider is not the same in every browser
The slider number is handed to the browser's own encoder, and each engine reads it its own way. Sizes in bytes for our 1600 x 1200 photo-like test picture (a 668,060-byte JPEG), same picture and same setting in each engine:
| Output | Chrome 156 | Chromium 153 | Firefox 155 | WebKit build |
|---|---|---|---|---|
| PNG | 4,563,468 | 4,441,967 | 3,784,842 | 3,895,758 |
| JPEG, quality 10 | 15,875 | 15,869 | 34,075 | 49,854 |
| JPEG, quality 50 | 106,167 | 106,138 | 131,019 | 273,968 |
| JPEG, quality 75 | 220,763 | 220,740 | 251,197 | 661,924 |
| JPEG, quality 90 (default) | 605,682 | 605,943 | 728,231 | 873,569 |
| JPEG, quality 100 | 1,828,682 | 1,773,086 | 2,134,172 | 2,162,999 |
| WebP, quality 10 | 14,086 | 14,122 | 13,616 | No WebP encoder |
| WebP, quality 50 | 110,508 | 110,482 | 110,144 | No WebP encoder |
| WebP, quality 75 | 240,936 | 239,340 | 239,316 | No WebP encoder |
| WebP, quality 90 (default) | 585,302 | 585,596 | 586,074 | No WebP encoder |
| WebP, quality 100 | 2,672,192 (lossless) | 2,664,340 (lossless) | 2,513,124 (lossless) | No WebP encoder |
At 75, the WebKit build's JPEG was three times the size of Chrome 156's and also closer to the picture it was drawn from: an average difference of 1.05 per colour value (on the 0 to 255 scale) against 4.70. Firefox 155 switched to full-resolution colour (4:4:4) from quality 90, while Chrome 156, Chromium 153 and the WebKit build kept half-resolution colour (4:2:0) up to 90 and used 4:4:4 only at 100. At WebP 100, Chrome 156, Chromium 153 and Firefox 155 all wrote lossless WebP (a VP8L stream) with no pixel difference from the source.
Flat graphics behave differently. Our 1280 x 800 screenshot-like PNG of 6,989 bytes came back larger as PNG in every engine (10,533 bytes in Firefox 155, 23,805 to 25,813 in the others), because each browser writes PNG with its own compression; as lossless WebP it was 6,850 bytes in Chrome 156 and Chromium 153 and 1,130 bytes in Firefox 155.
Transparency, rotation, colour and metadata, measured
- Transparency: PNG and WebP kept the transparency of our test picture in every engine that wrote them, with the same 39,979 fully transparent, 20,621 opaque and 59,400 partly transparent pixels as the source. JPEG got the white background the page paints first: a fully transparent pixel became 255,255,255 and a half-transparent blue (30,60,220 at alpha 128) became about 142,157,238.
- Rotation: a JPEG stored 300 x 200 with an EXIF orientation of 6 came out 200 x 300 and upright in all four engines, the red corner square at the top right where a viewer shows it.
- Camera tags: the make, model, date and GPS tags of a test JPEG were missing from every output in all four engines. Chrome 156 and Chromium 153 wrote no EXIF and put a 456-byte sRGB colour profile into their JPEG and WebP files; Firefox 155 wrote neither. The WebKit build added a small Exif block of its own to its PNG and JPEG files, holding only the colour space (sRGB) and the pixel width and height.
- Colour profile: a solid 200,100,50 tagged as Display P3 came out as about 215,93,31 (converted to sRGB numbers) in Chrome 156, Chromium 153 and the WebKit build. Firefox 155 drew the same file as 200,100,50 and wrote those numbers with no profile.
- Depth and CMYK: a 16-bit PNG came out 8-bit in every engine. Our CMYK JPEG decoded to within a few levels of the RGB picture it was made from in Chrome 156, Chromium 153 and Firefox 155 (56,142,47 against 54,146,50 at one test point), and to 75,114,83 in the WebKit build.
- Animation: each animated GIF, WebP and APNG gave its first frame (red) in all four engines, as the HTML canvas rules ask when a picture is drawn onto a canvas.
Very wide pictures and a 48-megapixel photo
To find the edges we converted strips 4 pixels tall and 16,384 to 65,535 pixels wide, with a red marker at the right end, so a cut could be told from a squeeze.
| Engine | PNG | JPEG | WebP |
|---|---|---|---|
| Chrome 156 | All widths kept | Up to 65,500 px kept; at 65,535 px wide or tall, no file: the page names its 65,500-pixel JPEG limit | At 16,384 px wide or tall, no file: the page names WebP's 16,383-pixel limit. A 16,383 x 4 strip converted whole |
| Chromium 153 | All widths kept | Same as Chrome 156 | Same as Chrome 156 |
| Firefox 155 | All widths kept | Same as Chrome 156 | Same as Chrome 156: the 16,383-pixel message at 16,384 px; a 16,383 x 4 strip converted whole |
| The WebKit build | All widths kept | Same as Chrome 156 | The 16,383-pixel message at 16,384 px; below that, its no-WebP-encoder message |
Google's WebP FAQ says: "The maximum pixel dimensions of a WebP image is 16383 x 16383." The converter compares the picture with that limit before it asks the browser for a WebP, so in our test a strip of 16,384 x 4 or 4 x 16,384 pixels got the same message in Chrome 156, Chromium 153, Firefox 155 and WebKit, and no file. The check matters because the browsers differ: asked directly for a WebP of a 16,384-pixel canvas, Chrome 156 and Chromium 153 returned one cut to 16,383 pixels, and Firefox 155 returned none. For anything wider, PNG is the output that kept every column in all four engines.
JPEG has a limit of its own here: the converter saves JPEGs up to 65,500 pixels a side and checks that before encoding. Asked for a larger JPEG, Chrome 156 and Chromium 153 returned one cut to 65,500 pixels with the right end missing, and Firefox 155 returned none. With the check, a 65,535 x 8 strip and an 8 x 65,535 strip got the 65,500-pixel message in all four engines, and a 65,500 x 8 strip converted whole, red end included.
An 8000 x 6000 photo-like JPEG of 14,218,401 bytes converted in all four engines. PNG took 2.2 to 2.8 seconds and gave 88.9 to 108.8 MB (the WebKit build's figure is from a fresh tab, see below), JPEG 0.5 to 1.2 seconds, and WebP about 16 seconds in Chrome 156, Chromium 153 and Firefox 155. One warning from the WebKit build: in our long run, after 15 earlier conversions in the same tab, its PNG of this photo came out fully transparent (838,629 bytes) with no message, while the JPEG made right after was fine; in a fresh tab the same PNG was correct (91,589,121 bytes). Our test page also drew pictures of its own for checking, so we cannot say how many conversions the converter alone allows. Check a large result before deleting the original.
Converting an image
Step 1
Add an image
Any format your browser can display. The source format, pixel size and file size are shown.
Step 2
Pick PNG, JPEG or WebP
PNG is the default. JPEG and WebP get a quality slider from 10 to 100, starting at 90.
Step 3
Convert and save
The file is named after the original with -converted and the new extension.
Browser limits worth knowing
Writing WebP needs Chrome, Edge or Firefox 96 or later; Safari gets a message in place of a download, because of the compatibility table on MDN's toBlob page. Animated inputs give their first frame. SVG files are drawn at the size written in the file; for a chosen pixel size use SVG Converter. For HEIC use HEIC to JPG.
Image Converter FAQ
Which formats can I convert from?
Whatever your browser can decode. In our test PNG, JPEG, WebP, GIF, APNG, BMP, ICO, SVG and AVIF opened in Chrome 156, Chromium 153, Firefox 155 and the WebKit build. TIFF and HEIC opened only in the WebKit build; the other three could not read them. Elsewhere, HEIC to JPG or HEIC to PNG handle HEIC photos.
Why did my PNG get bigger as a JPEG?
Photos shrink as JPEG; flat graphics often grow. A 4,593-byte screenshot PNG became 50,477 bytes as JPEG at quality 90 in a test, while WebP at 90 gave 4,240 bytes. Use JPEG for photos and PNG or WebP for screenshots, logos and text.
Is WebP at quality 100 lossless?
In Chrome it behaves that way: at 100 the test screenshot shrank to 1,804 bytes, smaller than at 95 and smaller than its PNG, while the test photo grew to 1.97 MB. That pattern is what a lossless encoder produces. The test files at 100 were lossless WebP (VP8L) in Chrome 156, Chromium 153 and Firefox 155, with no pixel difference from the source.
Can I save a WebP in Safari?
In the WebKit build the canvas handed back a PNG every time the page asked for WebP; the page spots that, says so and saves nothing, so pick PNG or JPEG there. Chrome 156, Chromium 153 and Firefox 155 wrote WebP files.
What happens to transparency and animation?
PNG and WebP keep transparency; JPEG gets a white background. Animated GIF, WebP or APNG files give one still frame, the first, because that is what a browser draws onto a canvas.
Is EXIF data kept?
Camera details and location are not carried over. The make, model, date and GPS tags of a test JPEG were missing from every output in Chrome 156, Chromium 153, Firefox 155 and WebKit, and a photo with an orientation tag came out upright in all four. The WebKit build did add a small Exif block of its own, with only the colour space and the pixel size.
Why does the same quality setting give different JPEG sizes in different browsers?
Each browser has its own JPEG encoder and maps the slider to its own tables. Quality 75 gave 220,763 bytes in Chrome 156 and 661,924 bytes in the WebKit build for the same picture, and Firefox 155 kept full-resolution colour from quality 90 while the others kept half-resolution colour up to 90. Compare sizes in the browser you use.
Does it keep a Display P3 colour profile?
Not as a profile. Chrome 156, Chromium 153 and the WebKit build converted a Display P3 colour to sRGB numbers (200,100,50 became 215,93,31), and Chrome and Chromium tagged their JPEG and WebP files as sRGB. Firefox 155 drew the file as 200,100,50 and wrote those numbers with no profile.
What happens with a very wide or very large image?
PNG kept strips up to 65,535 pixels wide in all four engines. WebP allows at most 16,383 pixels a side, and the converter checks that first: for a 16,384-pixel strip, wide or tall, Chrome 156, Chromium 153, Firefox 155 and the WebKit build all showed a message naming the limit and saved nothing. JPEG stops at 65,500 pixels a side: a 65,535-pixel strip, wide or tall, got a message naming that limit and no file in all four engines, and a 65,500-pixel strip converted whole. An 8000 x 6000 photo converted in all four engines, with WebP taking about 16 seconds.
Can it open HEIC or TIFF files?
Only where the browser decodes them. Both opened in the WebKit build and converted to PNG and JPEG, while Chrome 156, Chromium 153 and Firefox 155 showed the could-not-read message.
Related guide
JPG, PNG, WebP, HEIC and SVG: which image format to use. The guide compares PNG, JPEG and lossy and lossless WebP for one photo and one screenshot, using this converter's own encoder.