JPG vs PNG: Which Format Should You Use?

Written by

in

You have a photo to share, a logo to put on a website, or a screenshot to send to a colleague, and the save dialog asks you to pick JPG or PNG. The choice matters, because the two formats store pictures in very different ways. Pick the wrong one and a photo becomes a multi-megabyte file for no reason, or a logo arrives with a white box where a transparent background should be. This guide explains the difference in plain terms, with real file size examples, so you can choose correctly every time. If you already have a JPG that needs to become a PNG, our JPG to PNG converter does the conversion in your browser, with no upload and no sign-up.

1. The short answer: photos use JPG, graphics with sharp edges use PNG

Use JPG for photographs and other images with smooth colour changes, such as a holiday photo, a portrait, a product photo, or a landscape. JPG compresses this kind of image very efficiently, so the file stays small while still looking good. Use PNG for images with sharp edges, flat areas of colour, or text, and for any image that needs a transparent background, such as a logo, an icon, a diagram, a screenshot that contains text, or line art. PNG stores every pixel exactly, so edges stay crisp and text stays readable.

That short answer covers most decisions. A photograph of a person has thousands of slightly different shades in the skin, the hair, and the background, and JPG is built to store that kind of smooth variation in a small file. A logo has a few flat colours and hard edges between them, and PNG is built to store that kind of image exactly, with no blur around the edges. A screenshot of a website has text on a flat background, and PNG keeps the letters sharp where JPG would smudge them. If you remember only one line, remember this: smooth photos go to JPG, sharp graphics and transparency go to PNG.

There is one more case that decides the format for you. If the image needs a transparent background, so that the page or the slide behind it shows through, the answer is PNG. JPG has no way to store transparency at all. A logo saved as a JPG will always sit on a solid rectangle, usually white, even if the original logo had no background. The same applies to icons, stickers, watermarks, and product cutouts. Transparency alone is enough reason to pick PNG, whatever the file size.

2. What JPG is: a lossy format built for photographs

JPG, also written JPEG, stands for Joint Photographic Experts Group, the committee that created the format. It was published in 1992, and it became the standard format for digital photographs because it solves the central problem of photography on computers: a photo contains a huge amount of data, and JPG shrinks it to a manageable size by throwing away detail the human eye is unlikely to notice. That process is called lossy compression, because some of the original image data is lost every time a JPG is saved.

The way JPG compression works is worth understanding, because it explains both its strength and its weakness. A JPG divides the image into small blocks, typically 8 pixels by 8 pixels, and looks at how the colour changes across each block. In a photograph, neighbouring pixels are usually very similar, so the format can describe a block approximately instead of storing every pixel exactly. It keeps the broad shapes and colours and discards fine detail, especially in areas of subtle colour change. The result is a file that is much smaller than the original, and at a sensible quality setting the missing detail is hard to spot.

JPG stores colour at 8 bits per channel, which means 256 levels each of red, green, and blue, or about 16.7 million possible colours in total. That is more than enough for a photograph, which is why JPG photos look natural. The format has a quality setting, typically on a scale from 0 to 100, and the converter on this site uses a quality of 90 for JPG output. A higher number keeps more detail and makes a larger file. A lower number throws away more detail and makes a smaller file, but the damage becomes visible as blocky patches, halos around edges, and smudged areas of flat colour. Those visible faults are called compression artifacts, and once they are in a JPG, saving the file again cannot remove them.

JPG has no support for transparency. Every JPG pixel has a colour, and there is no channel that can say “let the background show through here”. That is a deliberate trade, not an oversight. The format was designed for photographs, and photographs never need transparency. The format also has no support for animation. A JPG is always a single still image, and it always has a solid background, even if that background is plain white.

The strength of JPG is file size. A photograph that would be several megabytes as an exact, uncompressed image can be a few hundred kilobytes as a JPG, with no visible loss at normal viewing sizes. That is why cameras save photos as JPG by default, why phones save photos as JPG by default, why websites serve photos as JPG, and why email and social media accept JPG without complaint. For anything that started life as a photograph, JPG is the default answer, and you should need a specific reason to choose anything else.

3. What PNG is: a lossless format built for exactness and transparency

PNG stands for Portable Network Graphics. It was published in 1996 as a free replacement for the older GIF format, and it was designed for a different job from JPG. Where JPG trades exactness for small files, PNG keeps every pixel exactly as it was. That process is called lossless compression, because no image data is lost when a PNG is saved. A PNG opened and saved again, any number of times, comes out identical to the original, pixel for pixel.

PNG achieves its smaller file size without losing data by looking for patterns. A logo with a large area of one flat colour does not need every pixel stored separately, because the format can record that a whole run of pixels is the same colour. Text on a white background compresses well for the same reason. A photograph, by contrast, has almost no repeated patterns, because nearly every pixel differs slightly from its neighbours, so PNG has little to work with and the file stays large. That is the fundamental trade between the two formats. PNG is efficient on images with repetition, and inefficient on images with constant variation.

The feature that makes PNG irreplaceable is the alpha channel. A PNG pixel has red, green, and blue values, like a JPG pixel, and it also has a fourth value that records how opaque the pixel is. A pixel can be fully solid, fully transparent, or any level in between, which allows smooth, soft edges around a logo or a cutout, with no white fringe. That is why a PNG logo can sit on a coloured website header, a dark slide, or a photo, and look as if it belongs there. No other common format from the same era does this as well, and it is the single most common reason people choose PNG.

PNG also stores colour at 8 bits per channel, like JPG, so it can represent the same 16.7 million colours, and some PNG files store even more. It handles text, line art, diagrams, charts, icons, and screenshots with text far better than JPG, because lossless storage means the hard edge between black text and a white background stays hard. JPG blurs that edge slightly, and the blur is visible as a smudge around the letters, especially when the image is viewed at full size.

The weakness of PNG is file size on photographs. A photo saved as a PNG is typically 2 to 5 times the size of the same photo saved as a JPG at a sensible quality setting, and sometimes more. That is not a flaw in the format. It is the price of exactness. PNG refuses to throw data away, and a photograph has an enormous amount of data to keep. For a logo or a screenshot, that price is small, because the file was small to start with. For a photograph, the price is large, and it buys nothing the eye can see.

4. JPG vs PNG compared side by side

The table below puts the two formats side by side on the points that decide a real choice. Read it as a checklist rather than a scoreboard. Neither format wins overall. Each one wins the job it was designed for, and loses the other job.

Feature JPG PNG
Compression Lossy, throws away detail to shrink the file Lossless, keeps every pixel exactly
Image quality Very good for photos at quality 80 to 95, visible artifacts at low quality Perfect, identical to the original every time
Transparency None, every pixel has a solid colour Full alpha channel, including soft and partial transparency
File size for photos Small, the efficient choice Large, typically 2 to 5 times the JPG size
File size for logos and text Small but blurry edges and artifacts Small and sharp, the efficient choice
Colour depth 8 bits per channel, about 16.7 million colours 8 bits per channel, about 16.7 million colours, plus transparency
Re-saving Loses a little quality every time it is re-saved No loss at all, however often it is re-saved
Animation None None in standard PNG
Best for Photographs, realistic images, web photos, email attachments Logos, icons, diagrams, screenshots, text, transparency
Year published 1992 1996

Two rows of that table do most of the work. The compression row explains the quality difference, and the transparency row explains the logo difference. If you are choosing between the formats for a single image, ask two questions in order. First, does the image need transparency? If yes, use PNG, and the discussion is over. Second, is the image a photograph or a sharp graphic? A photograph goes to JPG, and a sharp graphic goes to PNG. Those two questions settle almost every case, and the rest of this guide covers the cases where they do not.

It is also worth knowing what the table does not say. Both formats are supported everywhere. Every browser, every phone, every email program, every social media platform, every printer, and every image editor opens JPG and PNG without extra software. You will never send someone a PNG they cannot open, and you will never upload a JPG a website rejects. The choice is about quality and size, never about compatibility, and that is one less thing to worry about.

5. Worked examples: what the file size difference looks like in real numbers

General statements about file size are easy to agree with and hard to act on, so here are three worked examples with real numbers: one typical photo example, and two taken from the converter pages on this site. The arithmetic is shown in full, so you can check it yourself.

Example 1: a typical photograph, JPG against PNG. Take a typical 12 megapixel phone photo, 4000 pixels wide by 3000 pixels tall, of a garden scene with trees, grass, and sky. Saved as a JPG at quality 90, a typical file size is about 2.0 MB. Saved as a PNG, the same photo is typically about 9.0 MB, because PNG keeps every pixel exactly and a photo has almost no repeated patterns to compress. Divide the PNG size by the JPG size: 9.0 divided by 2.0 is 4.5, so the PNG is about 4.5 times the size of the JPG. That ratio sits inside the typical range of 2 to 5 times given in section 3. Look at it the other way: the JPG is 9.0 minus 2.0, which is 7.0 MB smaller, and 7.0 divided by 9.0 is 0.778, so the JPG is about 78 percent smaller than the PNG. The two files show the same photo, and at normal viewing size the difference in quality is hard to spot. The PNG costs an extra 7 MB and buys almost nothing visible.

Example 2: a logo, JPG against PNG, from the JPG to PNG converter page. A small logo file, logo.jpg, is 180 KB as a JPG. Convert it to PNG and the result, logo.png, is about 640 KB. Divide 640 by 180: 640 divided by 180 is 3.56, so the PNG is about 3.6 times the size of the JPG. The increase is 640 minus 180, which is 460 KB, and 460 divided by 180 is 2.56, so the PNG is about 256 percent larger than the JPG. That sounds like a bad trade until you remember what the PNG buys. The JPG logo has a white background baked in and slightly blurry edges. The PNG logo has a transparent background and perfectly sharp edges, and it can be placed on any colour. For a logo, that is worth 460 KB. For a photograph, it would not be.

Example 3: a screenshot, PNG against JPG, from the PNG to JPG converter page. A screenshot of a dashboard, dashboard.png, is 4.2 MB as a PNG. Convert it to JPG at quality 90 and the result, dashboard.jpg, is 380 KB. First convert the units: 4.2 MB is 4,200 KB. Divide 4,200 by 380: 4,200 divided by 380 is 11.05, so the PNG is about 11 times the size of the JPG, or the JPG is about one eleventh of the PNG. The saving is 4,200 minus 380, which is 3,820 KB, and 3,820 divided by 4,200 is 0.9095, so the JPG is about 91 percent smaller than the PNG. Screenshots typically shrink by 80 to 90 percent when converted from PNG to JPG, and this example sits at the top of that range because the dashboard has large flat areas that JPG compresses well. The text in the screenshot stays readable at quality 90, but look closely and the edges of the letters are slightly softer than in the PNG. That is the trade: a file one eleventh the size, with a small loss of sharpness.

The pattern across all three examples is consistent. On photographs, PNG costs several times the file size for no visible gain. On logos, PNG costs a few hundred kilobytes and buys transparency and sharpness. On screenshots, JPG saves most of the file size at a small cost in sharpness. The right format is the one where the price buys something you actually need.

6. When to use JPG: photographs, uploads, email, and social media

Use JPG for any image that started as a photograph. That includes photos from a camera or a phone, portraits, landscapes, product photos, event photos, food photos, and real estate photos. It also includes any realistic image with smooth colour changes, such as a scanned painting, a rendered 3D scene, or a photo-like illustration. In all of these cases JPG gives you a small file and a good looking image, and PNG would give you a much larger file with no visible improvement.

Use JPG when file size matters, which is most of the time on the web. A web page with five photos saved as PNG can easily be 40 MB of images, and that page will load slowly, especially on a phone connection. The same five photos as JPG might be 8 MB in total, and the page will load several times faster. Search engines and visitors both reward fast pages, and the format choice is one of the simplest speed wins available. If you run a website, a blog, or an online shop, your product and article photos should be JPG unless there is a specific reason they should not be.

Use JPG for email attachments. Email systems often limit attachments to 20 or 25 MB in total, and a handful of PNG photos can hit that limit quickly. The same photos as JPG will usually fit comfortably. A JPG photo attached to an email also downloads faster for the person receiving it, and it displays correctly in every email program. If you are sending a set of holiday photos to family, JPG is the format that gets them there without bouncing.

Use JPG for social media uploads. Instagram, Facebook, X, and similar platforms recompress every image you upload, and they accept JPG as their standard input. Uploading a PNG photo does not protect it from that recompression. The platform will convert it and compress it anyway, so the large PNG file only slows down your own upload. Save the photo as a JPG at a sensible quality, usually 85 to 90, and upload that. The platform will do the rest.

Use JPG when you are storing a large number of photos. A photo library of 1,000 photos at 2 MB each as JPG takes about 2 GB of storage. The same library as PNG, at roughly 9 MB per photo, would take about 9 GB. That difference matters on a phone, a laptop, or a cloud storage plan with a limit. Keep the original camera files as your masters, but for everyday copies, sharing, and backups, JPG is the practical format.

7. When to use PNG: logos, transparency, screenshots, and text

Use PNG for any image that needs a transparent background. Logos are the most common case, followed by icons, stickers, product cutouts, watermarks, and overlays. A transparent PNG can sit on a coloured header, a dark background, a photo, or a patterned slide, and it will look correct in every case. A JPG of the same logo will always carry its white rectangle with it, and on any background other than white it will look wrong. If you are handing a logo to a designer, a printer, or a web developer, send the PNG with transparency.

Use PNG for images with text, sharp lines, or flat areas of colour. That includes screenshots of software, screenshots of websites, diagrams, charts, graphs, maps, comics, line art, and signatures. JPG blurs the boundary between text and background, and the blur shows as a grey smudge around the letters, especially on small text. PNG keeps the boundary exact, so the text stays readable even when the image is viewed at full size or zoomed in. If the image is meant to be read rather than admired, PNG is usually the right choice.

Use PNG when you need to edit and re-save an image many times. Every time a JPG is opened, edited, and saved again, it is compressed again, and a little more detail is lost. A PNG can be opened, edited, and saved as often as you like with no loss at all. That makes PNG the right working format for graphics you will keep changing, such as a logo that is still being designed, a diagram that gets updated, or a screenshot that gets annotated. Save the final version for the web as a JPG if it is a photograph, but do the editing in PNG, or in the editor’s own format, and export only at the end.

Use PNG for images where exact colour matters and the file is small anyway. A chart with three flat colours, an icon with two colours, or a simple diagram will often be smaller as a PNG than as a JPG, because PNG compresses flat colour areas so efficiently. In those cases PNG wins on both quality and size, and there is no trade to make. The file size problem with PNG only appears on photographs and other images with constant variation, so for simple graphics the lossless format is the obvious pick.

8. Converting JPG to PNG: what you gain and what you do not

Converting a JPG to a PNG is easy, and the JPG to PNG converter on this site does it in your browser, with JPG, PNG, and WebP input, files up to 25 MB, and no upload. But it is important to understand what the conversion does and does not do, because the most common misunderstanding about these formats lives here.

Converting a JPG to a PNG does not restore the quality that JPEG compression removed. The detail that was thrown away when the JPG was first saved is gone, and no converter can bring it back. The PNG is a perfect copy of the JPG as it is now, including its compression artifacts, its soft edges, and any blockiness. The conversion preserves the current quality exactly. It does not improve it, and it does not repair it. If the JPG looks blurry, the PNG will look exactly as blurry, only in a larger file.

What the conversion does give you is a lossless file and, if you need it, a starting point for transparency work. Once the image is a PNG, you can edit it and re-save it without further loss, and you can remove a background in an image editor and save the result with transparency. The PNG also stops the slow decline of repeated JPG saves. If you have a JPG that you plan to edit several times, converting it to PNG first, doing the edits, and then exporting a fresh JPG at the end is a sensible workflow.

What the conversion costs you is file size. As the worked example in section 5 showed, a logo of 180 KB as a JPG becomes about 640 KB as a PNG, which is about 3.6 times larger. For photographs the cost is larger still. PNG output from a JPG is typically 2 to 5 times the size of the JPG, and the extra bytes buy no improvement in how the image looks. So convert a JPG to a PNG when you need PNG features, such as transparency or lossless re-saving. Do not convert a JPG to a PNG in the hope of better quality, because that hope will be disappointed every time.

The conversion itself is simple. Open the converter, choose the JPG file, and download the PNG. The tool runs entirely in your browser using canvas, so the photo never leaves your device. There is no sign-up and no upload. If the file is a photograph and you only need a PNG for a system that demands that format, convert it and accept the larger file. If you need a PNG for transparency, convert it first, then remove the background in an editor, because a JPG has no transparency to preserve.

9. Converting PNG to JPG: transparency flattens, quality drops slightly, size collapses

Converting a PNG to a JPG is the opposite journey, and it is the one that saves the most file size. The PNG to JPG converter on this site uses the same in-browser converter hub, with a quality setting of 90, and it handles the same kinds of files, up to 25 MB, with no upload and no sign-up. The conversion is worth doing whenever a PNG photograph or screenshot is too large to send, upload, or store comfortably.

The first thing to know is what happens to transparency. JPG has no alpha channel, so a transparent area cannot survive the conversion. The converter flattens transparency onto a white background. A logo with a transparent background becomes a logo on a white rectangle. An icon with soft transparent edges becomes an icon with a white fringe where the soft edges were. If the image needs its transparency, do not convert it to JPG. The conversion is only safe for images where a white background is acceptable, such as a screenshot of a page that was already white, or a photograph that never had transparency in the first place.

The second thing to know is that the conversion loses a little quality. A JPG at quality 90 keeps most of the detail, and on a photograph the loss is hard to spot, but on text and sharp edges it is visible if you look closely. The dashboard screenshot in section 5 is a good example. At 4.2 MB as a PNG and 380 KB as a JPG, the text stays readable, but the edges of the letters are slightly softer. That is an acceptable trade for a file that is about one eleventh the size, and it is a bad trade if the screenshot is evidence, a design proof, or a document where every pixel matters. Keep the PNG as the master copy, and treat the JPG as the sharing copy.

The third thing to know is how large the saving is. Screenshots typically shrink by 80 to 90 percent when converted from PNG to JPG, and photographs shrink by a similar amount or more. A PNG that is too large to attach to an email becomes a JPG that fits easily. A folder of PNG screenshots that fills a cloud drive becomes a folder of JPGs that takes a tenth of the space. That is why the conversion is so common. It is the fastest way to make an image small enough to use.

Before you convert, check the image for transparency. Open it and look at the background. If the background is a checkerboard pattern in your editor, that pattern means transparency, and converting will replace it with white. If the image is a screenshot, check whether any part of it is meant to show through. If the answer is no, convert freely. If the answer is yes, keep the PNG, or flatten the transparency onto the colour you actually want before converting, rather than letting the converter choose white for you.

10. Quality settings and re-saving: how JPG degrades and PNG does not

The quality setting on a JPG is the single most important number in this whole topic, and it is also the most misunderstood. The scale typically runs from 0 to 100. A setting of 100 keeps almost everything and makes a large file. A setting of 90, which is what the converter on this site uses for JPG output, keeps nearly everything visible and makes a file much smaller than the original. A setting of 80 is still good for most web photos. A setting of 60 starts to show visible damage on close inspection. A setting below 50 is visibly damaged in most photographs, with blocky patches in skies and smudged detail in textures.

The right quality setting depends on the use. For a photo that will be printed, use 90 or above, because print shows detail that a screen hides. For a photo on a website, 80 to 90 is the usual range, and it is the range where the file size saving is large and the quality loss is small. For a quick preview, a thumbnail, or a draft, a lower setting is fine, because nobody will examine the image closely. There is no single correct number. There is a trade between size and quality, and the right point on that trade depends on who will look at the image and how closely.

Re-saving is where JPG and PNG differ most sharply in practice. Open a JPG, make a small change, and save it again, and the file is compressed a second time. The second compression starts from an image that already lost detail, and it throws away a little more. Do that ten times and the damage adds up. The image gets softer, the artifacts get stronger, and the colours drift slightly. The damage is slow, and a single re-save at quality 90 is barely noticeable, but repeated re-saving is the most common way a good photo quietly becomes a bad one.

PNG has no such problem. Open a PNG, edit it, save it, and repeat as often as you like. The file that comes out is identical to the file that went in, except for the edits you deliberately made. That is why PNG is the right working format for graphics, and why photographers keep their edited masters in a lossless format and export a JPG only at the very end. The rule is simple: edit in a lossless format, and export to JPG once, at the end, when the image is finished.

There is a practical habit that follows from this. Keep the original file. If your camera saved a JPG, keep that JPG untouched in a folder you do not edit, and make every resized, cropped, or compressed version from it. If you edited a photo in an editor, keep the editor’s own project file or a PNG export as the master, and export a fresh JPG whenever you need one. Never edit the only copy of a photo, and never re-save a JPG that has already been through several rounds of saving. The original is the only version that has all the detail, and once it is gone, it cannot be recovered.

11. JPG vs PNG for websites: speed, quality, and the right mix

For websites, the choice between JPG and PNG is also a choice about speed. A web page loads its images before the visitor can see it properly, and large images are the most common reason pages load slowly. A page with photographic PNGs can take several times longer to load than the same page with JPGs, and visitors on mobile connections notice the difference immediately. Search engines also use page speed as a ranking factor, so the format choice affects both the visitor and the search result.

The rule for websites is the same as the general rule, applied strictly. Photographs, hero images, product photos, article images, and any realistic image should be JPG. Logos, icons, diagrams, charts, and any image with transparency should be PNG. A typical article page might have five JPG photos and one PNG logo, and that mix is correct. A page where every image is a PNG is almost certainly wasting bandwidth, and a page where the logo is a JPG is almost certainly showing a white box.

There is a third format worth knowing about for websites, even though this guide is about JPG and PNG. WebP is a newer format that often gives smaller files than JPG at the same quality, and it supports transparency like PNG. It is supported by all modern browsers, and the converter on this site accepts WebP input and can produce it. If your website platform supports WebP, it is worth testing, because it can beat both JPG and PNG on file size. But JPG and PNG remain the safe defaults, because every system accepts them, and every editor can produce them. If you are unsure whether a platform accepts WebP, use JPG for photos and PNG for graphics, and you will never go wrong.

There is one more website detail that matters: dimensions. A photo displayed at 800 pixels wide does not need to be stored at 4000 pixels wide. Resizing the image to the size it will actually be shown at, and then saving it in the right format, is the biggest speed win of all. A 4000 pixel wide PNG photo is a double waste, because it is both the wrong format and far larger than it needs to be. Resize first, then choose the format, then set the quality. If the image is still too large after those steps, an image compressor can reduce the file size further without changing the dimensions.

If you are comparing formats more widely, the same reasoning applies to other pairs. Our guide on TIFF vs JPG covers the case where an uncompressed archival format meets JPG, and our guide on SVG vs PNG covers the case where a vector format meets PNG for logos and icons. The principle in all of them is the same: match the format to the kind of image, and let file size follow from that choice.

12. JPG vs PNG for printing and email

For printing, the priorities change, because file size matters less and quality matters more. A printer can reproduce fine detail that a screen hides, so compression artifacts that are invisible on a phone can show up on paper. For that reason, use PNG, or the original camera file, for anything that will be printed at a large size, especially text, diagrams, and logos. A logo printed from a JPG can show a faint smudge around its edges, and a chart printed from a JPG can show blurred numbers. A PNG prints exactly what you see on screen.

For photographs that will be printed, JPG at a high quality setting, 90 or above, is usually fine, because the photo was already a JPG when the camera saved it, and printing it at high quality preserves what is there. But do not re-save a print photo several times at lower quality settings, and do not use a JPG that was downloaded from a social media platform as a print source, because that file has already been compressed twice. For a print that matters, such as a framed photo or a marketing brochure, start from the highest quality original you have, and export a fresh copy at quality 90 or above.

For email, JPG is the practical choice for photographs, for the reasons in section 6. A set of holiday photos as JPG will fit inside the attachment limit and download quickly. A set of the same photos as PNG may bounce or take a long time to download. But there is an exception. If the attachment is a screenshot, a form, a document scan, or an image with text, send the PNG, because the recipient needs to read it, and the JPG blur around the text will make their job harder. A PNG screenshot of a few hundred kilobytes is a small price for a readable document, and most email systems will accept it without complaint.

For email signatures and logos, use PNG with transparency. A JPG logo in an email signature sits on a white rectangle, and on a dark email theme or a coloured background it looks like a mistake. A transparent PNG logo sits cleanly on any background, and it is the format every professional email signature uses. The file is small, because a logo is a small image, so there is no size penalty worth worrying about.

There is a final printing and email point that people miss: resolution. A photo that looks fine on screen at 72 dots per inch may look soft in print, because print needs roughly 300 dots per inch. That is a separate issue from the format, and changing from JPG to PNG will not fix a low resolution image. Check the pixel dimensions before you print. A photo that is 4000 pixels wide can print well at 13 inches wide, because 4000 divided by 300 is about 13.3. A photo that is 800 pixels wide can only print well at about 2.7 inches wide, because 800 divided by 300 is about 2.7. The format decides how the pixels are stored. The pixel count decides how large the print can be.

13. Common mistakes and how to avoid them

Saving a photograph as a PNG and wondering why it is huge. This is the most common mistake, and it usually happens when someone saves a photo from an editor and picks PNG because it sounds like the higher quality option. It is higher quality in a technical sense, because it is lossless, but the extra quality is invisible on a photograph, and the file is several times larger. The fix is simple: save photographs as JPG at quality 85 to 90. Keep the PNG for logos, screenshots, and graphics. If you already have a PNG photograph, convert it with the PNG to JPG converter and watch the file size collapse.

Saving a logo with transparency as a JPG and getting a white box. This is the second most common mistake, and it happens when someone exports a logo from a design tool and picks JPG because it is the default. The JPG cannot store transparency, so the transparent area becomes white, and the logo arrives with a white rectangle that looks wrong on any background that is not white. The fix is to export the logo as a PNG with transparency, and to check the result on a dark background before sending it. If you already have the JPG version, convert it to PNG, but remember that the conversion cannot restore the transparency. You will need to remove the white background in an editor and save the result as a PNG.

Re-saving a JPG many times and watching it degrade. This happens when someone opens the same JPG, makes a small edit, saves it, opens it again, makes another edit, and saves it again, several times over. Each save throws away a little more detail, and after a few rounds the photo looks soft and blocky. The fix is to keep the original file untouched, do all the edits on a copy, and export a fresh JPG only once at the end. If the image needs many rounds of editing, work in PNG and export the JPG last.

Converting a JPG to a PNG to improve quality. This mistake comes from a reasonable sounding idea: PNG is lossless, so converting to PNG should make the image better. It does not. The conversion copies the JPG exactly as it is, including its flaws, and makes a larger file. The fix is to go back to the original file, if you still have it, and export a fresh copy at a higher quality setting. If the original is gone, accept the JPG as it is, and do not waste storage on a PNG that adds nothing.

Using a PNG screenshot as a JPG and wondering why the text is blurry. This is the reverse of the first mistake. A screenshot converted to JPG at a low quality setting loses the sharpness of its text, and small text can become hard to read. The fix is either to keep the screenshot as a PNG, or to convert it at quality 90, which is what the converter on this site uses, and to check the result at full size before sending it. If the text is still hard to read, keep the PNG. A readable file is worth more than a small file.

Judging quality by file size alone. A larger file is not always a better file. A PNG photograph is larger than a JPG photograph, but it does not look better. A JPG saved at quality 100 is larger than the same JPG at quality 90, but the difference is invisible to most viewers. Judge quality by looking at the image at the size it will be viewed at, and judge file size by what the image needs to do. The right file is the smallest one that looks good at its intended size, in the format that matches the kind of image it is.

14. Frequently Asked Questions

Which is better, JPG or PNG?

Neither format is better overall, because they are built for different jobs. JPG is better for photographs, because it compresses them to a small file with no visible loss at a sensible quality setting. PNG is better for logos, icons, diagrams, screenshots, and any image with text or transparency, because it stores every pixel exactly and supports a transparent background. Choose by the kind of image: a photo goes to JPG, and a sharp graphic or a logo goes to PNG. If the image needs transparency, the answer is always PNG, because JPG cannot store transparency at all.

Is PNG higher quality than JPG?

PNG is lossless, so in a technical sense it keeps more of the original image than JPG, which throws away detail to shrink the file. On a logo, a diagram, or a screenshot, that difference is visible, because PNG keeps edges and text perfectly sharp where JPG blurs them slightly. On a photograph, the difference is usually invisible at a sensible JPG quality setting such as 90, because the detail JPG discards is detail the eye would not notice anyway. So PNG is higher quality on graphics and text, and effectively equal on photographs, while costing several times the file size on photographs. Higher quality on paper does not always mean visibly better in practice.

Can JPG have a transparent background?

No. JPG has no way to store transparency, so every pixel in a JPG has a solid colour. A logo saved as a JPG will always sit on a solid rectangle, usually white. If you need a transparent background, use PNG, which has an alpha channel that records how opaque each pixel is. Converting a JPG to a PNG does not create transparency either. It copies the JPG exactly, including its solid background. To get a transparent image from a JPG, open it in an image editor, remove the background, and save the result as a PNG.

Does converting JPG to PNG improve quality?

No. Converting a JPG to a PNG copies the JPG exactly as it is, including any compression artifacts, soft edges, and lost detail. The detail that JPEG compression removed when the JPG was first saved is gone, and no converter can bring it back. The PNG is a perfect copy of the current quality, not an improvement on it. The conversion is still useful when you need PNG features, such as lossless re-saving or a starting point for transparency work, but it will not make a blurry photo sharp. For better quality, go back to the original file and export a fresh copy at a higher quality setting.

Why is my PNG file so much bigger than my JPG?

Because PNG is lossless and JPG is lossy. JPG throws away detail the eye is unlikely to notice, and that lets it shrink a photograph to a small file. PNG keeps every pixel exactly, so it has to store all of that detail, and a photograph has an enormous amount of it. A photo saved as a PNG is typically 2 to 5 times the size of the same photo saved as a JPG. A logo of 180 KB as a JPG becomes about 640 KB as a PNG, which is about 3.6 times larger. That size difference is normal, and it is the price of exactness. If the image is a photograph, save it as a JPG instead, and the file size will fall sharply with no visible loss.

Should I use JPG or PNG for my website?

Use both, each for the job it does best. Use JPG for photographs, hero images, product photos, and article images, because the small files make the page load faster, and visitors and search engines both reward fast pages. Use PNG for your logo, icons, diagrams, charts, and any image with transparency, because those images need sharp edges and a transparent background. A typical page with five JPG photos and one PNG logo is the correct mix. If every image on a page is a PNG, the page is probably wasting bandwidth on photographs that should be JPG, and if the logo is a JPG, it is probably showing a white box.

Which format should I use for printing?

For printing, use PNG for logos, text, diagrams, and charts, because the printer will reproduce the exact edges and colours, and JPG artifacts that are invisible on screen can show up on paper. For photographs, use JPG at a high quality setting of 90 or above, or use the original camera file, because the photo was already a JPG when it was taken and printing it at high quality preserves what is there. Do not print from a JPG that has been re-saved many times or downloaded from social media, because that file has already lost detail. For a print that matters, start from the highest quality original you have, check the pixel dimensions, and export a fresh copy at quality 90 or above.

The rule that covers everything above is short enough to remember: photographs go to JPG, sharp graphics and transparency go to PNG, and the format follows the kind of image, not the other way round. Check for transparency first, then ask whether the image is a photo or a graphic, then save it once at the right quality and keep the original safe. Do that, and you will never again wonder why a photo is enormous or why a logo has a white box.