Image Converter

Output format—
Dimensions—
Megapixels—
Uncompressed size (RGB)—

How Image Converter is calculated: Conversion re-encodes the same pixels in the chosen format; uncompressed size = width × height × 3 bytes (× 4 for PNG with alpha). Actual file size depends on image content.

What is an image converter?

An image converter changes the file format of a picture — JPEG to PNG, PNG to WebP, WebP to JPEG — without changing what is in it. The pixels stay the same; only the way they are stored changes. A photo that is 1920 by 1080 pixels stays 1920 by 1080 pixels, but the file that holds it is written in a different format, with a different size and different trade-offs.

People convert images every day for practical reasons. A website owner converts a PNG photo to JPEG because the JPEG is a fifth of the size and the page loads faster. A designer converts a JPEG to PNG because the image needs a transparent background. A developer converts everything to WebP because it is smaller than both. The format is a choice, and the converter is how you make it.

This image converter works entirely in your browser. When you choose a file, it is read on your own device, drawn onto a canvas at its original size, and re-encoded in the format you chose. Nothing is uploaded to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

How image conversion works

Every digital image is a grid of pixels, and a format is a set of rules for storing that grid. A 1920 by 1080 photo has about 2.1 million pixels, and at 3 bytes per pixel — one each for red, green and blue — the uncompressed data is 6,220,800 bytes, about 5.93 MB. No file on your disk is that big, because every format compresses the data — and the formats differ in how they compress it.

JPEG compresses by throwing away fine detail your eye cannot see, which is why it is so small for photographs and so bad for sharp text. PNG compresses without losing anything, which is why it is perfect for screenshots and logos and terrible for photographs — a PNG photo can be five times larger than the same photo as a JPEG, because it keeps every pixel exactly. WebP does both: it can compress like JPEG and like PNG, and it is usually smaller than either.

The quality slider controls how much JPEG and WebP throw away. At 85%, a photo looks identical to the original for almost every purpose, and the file is a fraction of the size. At 50%, the file is smaller still, but flat areas of sky start to show blocks. PNG ignores the quality slider completely, because it never throws anything away — and this tool greys the slider out when PNG is chosen, so you can see that it does nothing.

JPEG, PNG, or WebP — the format people get wrong

The most common mistake is saving a photograph as PNG. PNG is the right format for a screenshot, a logo, a diagram or anything with flat colours and sharp edges — and it is the wrong format for a photograph, because a PNG photo is far larger than the same photo as a JPEG with no visible benefit. If the image is a photo, choose JPEG or WebP.

The second mistake is saving a graphic with transparency as JPEG. JPEG has no transparency, so a logo with a transparent background comes out with a white box behind it. If the image needs transparency, choose PNG or WebP — both support it, and WebP is smaller. The third mistake is converting a JPEG to PNG to improve quality. Conversion never adds detail: a JPEG converted to PNG is a bigger file holding the same compressed pixels, and the quality does not improve by a single pixel.

The right choice is simple. Photographs for the web: JPEG at 85% quality, or WebP at 85% if the site supports it. Screenshots, logos and graphics: PNG. Anything where size matters most: WebP. Our image compressor squeezes a file smaller in the same format after converting, if the file is still heavier than you want.

A worked example: a 1920 by 1080 photo in three formats

Take a typical photo, 1920 by 1080 pixels, about 2.1 megapixels. The uncompressed size is 6,220,800 bytes at 3 bytes per pixel, which is 5.93 MB. That is the number in the results box, and it is the same for JPEG and WebP, because both store three colour channels per pixel.

Convert it to PNG and the uncompressed size becomes 7.91 MB, because PNG stores a fourth channel — alpha, for transparency — at 4 bytes per pixel: 1920 times 1080 times 4 is 8,294,400 bytes. The actual PNG file will be much smaller than 7.91 MB, because PNG compresses the data, but it will still be far larger than the JPEG, because it keeps every pixel exactly.

Now try a smaller image. An 800 by 600 photo is 0.5 megapixels, and its uncompressed size is 1,440,000 bytes at 3 bytes per pixel, which is 1.37 MB. The actual downloaded file will be much smaller than either number, because compression squeezes the data — but the ratio between the formats stays roughly the same, and the actual original and converted sizes are shown under the preview after conversion, so you can see the real saving before you download.

Why convert images before uploading them

The biggest reason is speed. A web page with five 6 MB PNG photos takes seconds to load on a mobile connection, and most visitors leave before it finishes. The same page with five 150 KB JPEG photos loads almost instantly. Search engines also rank faster pages higher, so converting is one of the cheapest speed wins a site owner can get. Our aspect ratio converter shows the ratio of any width and height pair while you plan sizes, and our resolution converter compares what different sizes mean in megapixels.

The second reason is limits. Upload forms, email attachments and messaging apps all cap file sizes — often at 2 MB, 5 MB or 10 MB — and many of them only accept certain formats. A form that wants a JPEG will reject a PNG, and a form that wants a PNG will reject a WebP. Converting to the format the form accepts is the fix, and it takes seconds.

The third reason is compatibility. Some older software cannot open WebP, some social platforms recompress PNG uploads badly, and some print shops want JPEG. Converting to the format the destination expects avoids the silent recompression that degrades the image without telling you. A pixel converter helps if you are converting between pixel counts and other screen units while planning sizes.

Image converter vs image resizer: which do you need?

A converter and a resizer solve different problems, and people often mix them up. A converter changes the file format: a JPEG becomes a PNG, and the pixels stay 1920 by 1080. A resizer changes the pixel dimensions: 1920 by 1080 becomes 800 by 450, and the format stays the same. If your photo is in the wrong format, you need a converter. If it is too big in pixels, you need a resizer.

In practice, most photos need both. A 4000 by 3000 PNG photo is far too big in every way; converting it to JPEG might bring it from 12 MB to 2 MB, and resizing it to 800 by 600 might bring it to 120 KB. The two steps multiply: convert first, then resize, or resize first, then convert — the order does not matter, because the steps are independent.

One warning: converting down in quality is a one-way street. A JPEG saved at 50% quality and converted to PNG does not get its lost detail back — the PNG just holds the damaged pixels more expensively. Always keep the original file and convert a copy, so you can go back if you change your mind. And a DPI converter is handy alongside this if you are preparing an image for print rather than for a screen.

Common mistakes when converting images

The most common mistake is converting a JPEG to PNG to improve quality. It does not work: the JPEG has already thrown away detail, and the PNG just stores the damaged pixels in a bigger file. The quality never improves, and the file gets five times larger for nothing.

The second mistake is forgetting that JPEG has no transparency. A logo with a transparent background converted to JPEG comes out with a white box behind it, and the transparency is gone for good. The third mistake is converting to WebP for a destination that cannot open it — some older software and some print shops still cannot read WebP, so check before you convert a batch.

The fourth mistake is trusting the uncompressed size as the file size. The results box shows the uncompressed size — 5.93 MB for a 1920 by 1080 photo — but the actual downloaded file is far smaller, because compression squeezes the data. The real saving is shown under the preview after conversion, and that is the number to judge by. And the fifth mistake is converting your only copy: always work on a copy, because a conversion at low quality can never be undone.

How to use this image converter

First, choose an image with the file picker. JPEG, PNG and WebP files work; other formats are rejected with a clear message, because those are the three formats a browser canvas can reliably encode. As soon as the image loads, its real width and height fill in automatically above, and a converted preview appears below with a download button.

Next, pick the format and the quality. For a photo, choose JPEG or WebP at 85% quality — the default, which looks identical to the original for almost every photo. For a graphic with transparency, choose PNG, and the quality slider greys out, because PNG ignores quality. The results box updates live as you change the format, showing the output format, the dimensions, the megapixel count and the uncompressed size, so you can check the numbers before downloading.

Finally, download the converted image. The file name gets a -converted suffix and the new extension, so your original is never overwritten. The preview shows the actual original and converted file sizes, so you can see the real saving. Your image never leaves your device: the whole process runs in your browser, and closing the page deletes everything.

Frequently Asked Questions

Converting to PNG or to WebP at high quality does not visibly change it. Converting to JPEG throws away fine detail, and at 85% quality the loss is invisible for almost every photo. Converting a JPEG to PNG never improves quality — the detail the JPEG threw away is gone, and the PNG just stores the damaged pixels in a bigger file.

Photographs for the web: JPEG at 85% quality, or WebP at 85% if the destination supports it. Screenshots, logos and graphics with flat colours: PNG. Anything where size matters most: WebP, which is usually smaller than both. PNG photos are much larger than JPEG photos with no visible benefit.

No. The file is read on your own device, drawn onto a canvas in your browser at its original size, and re-encoded in the format you chose. Nothing is sent to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

Because PNG is lossless — it never throws any detail away, so there is no quality to adjust. The slider only affects JPEG and WebP, which compress by discarding fine detail. The tool greys the slider out when PNG is chosen so you can see that it does nothing.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.