UltKit

JPG vs JPEG vs PNG: Differences and Which Format to Use

JPG and JPEG are one format with two file extensions, a leftover from the three-letter limit of MS-DOS file names. The real choice is between JPEG and PNG: JPEG makes photos small by discarding detail you rarely notice, while PNG keeps every pixel exactly and supports transparency, at the cost of much larger photo files.

Elena VásquezElena VásquezImage formats editor
Updated 12 min read
A loose pile of old printed photographs, postcards and snapshots spread across a table

Why one format has two names: JPG and JPEG

JPEG is the name of a committee, not a file. The Joint Photographic Experts Group, working under ISO and the ITU, published its compression standard in 1992 as ISO/IEC 10918-1, also known as ITU-T T.81. The standard describes how to squeeze a photograph into fewer bytes; it never said what the file should be called. The obvious extension was .jpeg, and that is what Unix systems and early Macs used. The group still runs jpeg.org and now maintains newer formats such as JPEG 2000 and JPEG XL alongside the original.

Windows went another way because of MS-DOS. DOS file names followed the 8.3 rule: up to eight characters, a dot, and at most three characters of extension. A four-letter .jpeg simply could not exist on a FAT disk of that era, so Windows programs saved .jpg instead. Windows 95 lifted the limit with long file names, but by then .jpg was the habit of camera makers, scanner drivers and websites. The camera file system rule that digital cameras follow still writes names like DSC_0001.JPG, so most photos in the world carry the three-letter version.

Inside the file nothing differs. A .jpg and a .jpeg open in the same programs, use the same registered media type, image/jpeg, and contain identical bytes if you rename one into the other. The rarer .jpe and .jfif endings are the same format again. The spelling only matters when software checks the extension text instead of the contents, such as an upload form whose allow-list says jpg, png and nothing else. In that case rename the file or run it through JPEG to JPG, which re-saves it at quality 95 with the extension the form expects.

  1. 1992

    JPEG standard

    ISO/IEC 10918-1 defines lossy compression for continuous-tone photographs.

  2. 1995

    Long file names

    Windows 95 allows extensions longer than three letters, after .jpg had already stuck.

  3. 1996

    PNG 1.0

    The W3C publishes PNG as a patent-free, lossless replacement for GIF.

  4. 2004

    PNG at ISO

    The same specification becomes the international standard ISO/IEC 15948.

  5. 2025

    PNG third edition

    The W3C revision makes animated PNG official and adds HDR color support.

How JPEG and PNG store a picture

JPEG is lossy by design. The encoder converts the image from RGB into one brightness channel and two color channels, and usually stores the color channels at half resolution, because the eye is far less sensitive to color detail than to brightness. It then cuts the picture into 8 × 8 pixel blocks, describes each block as a sum of smooth wave patterns, and rounds away the fine patterns that matter least. The quality number in an export dialog controls how hard that rounding is. At 85 a photo looks unchanged on a screen; at 50 the savings continue, but the rounding starts to show.

PNG is lossless. It stores every pixel exactly and compresses with DEFLATE, the same algorithm used inside ZIP files, after a filter step that predicts each pixel from its neighbors. Compression works by finding repetition. A screenshot with a flat white background, a chart with five colors or a logo with crisp edges is full of repetition and packs into a small file. A photograph is not: sensor noise, grain and soft gradients mean almost no two neighboring pixels match, so a PNG of a photo stays several times larger than a JPEG of the same picture. The specification is published by the W3C.

This difference explains the artifacts you have seen. JPEG damage appears as blocky squares in smooth skies, color smearing along saturated red edges, and faint ripples, called ringing, around sharp text and lines. Saving a JPEG again after editing repeats the rounding and adds a little more damage each time, which is known as generation loss. PNG never adds artifacts of its own, but it cannot remove ones that are already there: a JPEG converted to PNG keeps every block and ripple, just stored perfectly. The JPG to PNG converter is for freezing a picture before editing, not for repairing it.

Transparency: the feature JPG does not have

PNG can carry an alpha channel, a fourth value for every pixel that says how opaque it is, from 0 (invisible) to 255 (solid). That makes soft shadows, anti-aliased curves and cut-out product photos look right on any background, which is why logos, icons, stickers, overlays and interface graphics are usually PNG. PNG can also store a palette of up to 256 colors with transparency, often called PNG-8, which keeps simple icons especially small. JPEG has no alpha channel at all: every pixel in a JPEG is fully solid, and the format has no way to mark any area as see-through.

So when a PNG with transparency becomes a JPG, something has to fill the empty areas. Many programs pick white, some pick black, and a careless converter can leave odd dark fringes where semi-transparent edges were. If you need a JPG, choose the fill on purpose: convert PNG to JPG with Transparent areas set to white, black or a Custom colour that matches the page or slide where the image will appear. The reverse never works by conversion alone. A white background in a JPG stays white in the PNG; removing it is an editing job, done by selecting the background and deleting it.

TipKeep the original PNG of any logo or cut-out, even after you export a JPG for a form. The transparency cannot be recovered from the JPG later.

Several printed instant photos scattered on a white table in front of an open photo album with a patterned orange page
Photo: Unsplash

What the same image weighs as JPG and as PNG

File size is where the two formats separate most clearly, and the direction depends on the content. For photographs, JPEG at quality 80 to 90 is typically five to ten times smaller than PNG at the same pixel dimensions, with no difference you can see on a phone or laptop screen. For flat graphics the order can flip: a logo, chart or text screenshot often makes a smaller PNG than JPG, and the PNG stays perfectly sharp while the JPG grows ringing around every letter. The figures below are typical ranges, not measurements of one file; noise, detail and color count move them up or down.

Size matters more than it seems. Gmail caps attachments at 25 MB per message and Outlook.com at 20 MB, so five PNG photos from a phone can fail where five JPGs pass easily. Many government and exam portals limit uploads to a few hundred kilobytes or less. Web pages load every byte over mobile data, and oversized PNG photos are a common reason a page feels slow. When a JPG is still too big for a portal, lowering quality step by step usually gets there with less visible change than shrinking the dimensions; the guide to reducing image size in KB walks through both approaches.

Typical sizes for the same image saved both ways (JPG at quality 85, PNG at 24-bit color)
ImageDimensionsJPGPNGSmaller result
Phone photo4032 × 3024 px3–5 MB15–25 MBJPG
Photo resized for the web1920 × 1080 px400–700 KB3–5 MBJPG
Screenshot of a document1920 × 1080 px250–450 KB150–400 KBPNG, and sharper
Flat logo, four colors1000 × 1000 px60–120 KB15–40 KBPNG
Scanned page, grayscale2480 × 3508 px0.5–1.5 MB1.5–5 MBJPG

Choosing between JPG and PNG by what is in the picture

Decide by content, not by habit. If the image is a photograph or looks like one, with continuous tones and soft gradients, JPG wins on size with no visible cost. If it contains sharp text, flat color, thin lines or areas that must be transparent, PNG keeps it clean, and often smaller too. Mixed images, such as a photo with a caption printed across it, lean toward JPG at a higher quality of 90 or above, unless the text is small enough that ringing would hurt readability. A screenshot of a photo is still a photo for this purpose.

Also think about what happens to the file next. An image you will edit several more times is safer as PNG, because each JPG save adds loss. An image going to a form, a marketplace listing or a print lab is usually best as a high-quality JPG. For your own website, both are now often beaten by newer formats: WebP and AVIF give photos smaller files than JPG and still support transparency, and every current browser displays them. The comparison of AVIF, HEIC and WebP covers when those are worth adopting and when compatibility still favors JPG.

Lossy

JPG / JPEG

Small files for photos; detail the eye ignores is discarded.

  • Quality 80–90 looks unchanged on screens
  • No transparency, solid pixels only
  • Each re-save adds a little loss
  • Accepted by almost every form and print lab
Best for: Photos, uploads with a KB limit, email and printing.
Lossless

PNG

Every pixel stored exactly, with optional transparency.

  • Sharp text, lines and flat colors
  • Full alpha channel for cut-outs
  • Photos come out several times larger
  • Safe to edit and save repeatedly
Best for: Screenshots, logos, icons, diagrams and editing masters.

What forms, portals and printers accept

JPG is the format almost every upload form accepts. Passport and visa systems, exam and job portals, insurance claims, school applications and marketplace listings usually list JPG or JPEG first, often with a kilobyte cap and fixed pixel dimensions. The U.S. Department of State's online passport renewal, for example, asks for the photo as a JPEG file. PNG support on such forms is common but far from universal, and WebP, HEIC and AVIF are often refused outright. If a form lists only JPG, a PNG photo or screenshot has to be converted, not renamed, because many portals check the actual file contents.

Some places want PNG instead. App Store Connect expects a 1024 × 1024 px PNG app icon, Google Play asks for a 512 × 512 px PNG icon, and print-on-demand shops that put designs on shirts and mugs typically want PNG with a transparent background so the fabric color shows through. Favicon generators, sticker apps and presentation templates often prefer PNG for the same reason. In these cases a JPG is either rejected or looks wrong, with a white box drawn around the design where the background should have disappeared.

Printers sit in the middle. Consumer photo labs and drugstore kiosks accept JPG everywhere and PNG at many but not all counters, and a JPG saved at quality 90 or higher prints identically to a PNG at normal sizes. What matters more for print is resolution, around 300 pixels per inch at the final size, and color. Commercial printers work in CMYK, which JPEG can store and PNG cannot, so offset print shops usually ask for PDF, TIFF or high-quality JPG rather than PNG. When in doubt, send the printer a JPG at quality 95.

Renaming is not converting

Changing photo.png to photo.jpg only changes the label. The file is still a PNG inside, and portals that read the file header reject it or show an error after upload. The one safe rename is .jpeg to .jpg, because those are already the same format.

Converting between JPG and PNG without extra loss

Converting is a one-way trade, so do it in the right direction and keep the original. PNG to JPG is the common move for forms and email: transparency is filled with a solid color, file size usually drops sharply for photos, and fine edges soften a little. JPG to PNG is the move before editing or when a rule demands PNG: nothing improves and the file gets bigger, but no further loss is added. JPEG to JPG changes nothing about the image at all; it fixes the extension for software that is picky about spelling.

All three run in a browser. On UltKit you drop up to 20 files, each up to 95 MB, pick the target format and press Convert to JPG or Convert to PNG; nothing is installed, no account is needed, and files are deleted 30 minutes after processing. On your own computer, Paint on Windows and Preview on a Mac can save one image at a time as JPEG or PNG, though neither gives much control over the background color that replaces transparency. Phones generally need an app or a website for either direction.

A few settings decide the result. For photos going to JPG, a Quality between 80 and 90 balances size and look; use 95 for prints or images with text. Tick Strip metadata only when privacy or size matters, since the date taken and camera model can be useful later. If the output still exceeds a portal limit, compress after converting rather than guessing a low quality during it, so you can see the file size you actually reach. A size-focused tool such as compress image lowers quality until the file fits.

  • Photo, scan or anything with soft gradients: save as JPG at quality 80–90.
  • Screenshot, chart, logo or text graphic: keep it as PNG.
  • Needs a transparent background: PNG, or WebP for your own website.
  • Form says JPG only: convert rather than rename, then check the KB limit.
  • Will be edited again: keep a PNG master and export a JPG at the end.
  • File ends in .jpeg and a form wants .jpg: rename or re-save; the format is identical.

Key takeaways

  • JPG and JPEG are the same format; the three-letter spelling comes from the 8.3 file names of MS-DOS.
  • JPEG is lossy and small for photos; PNG is lossless, larger for photos and often smaller for flat graphics.
  • Only PNG keeps transparency; converting to JPG fills it with a solid color you should choose yourself.
  • JPG is the safest format for forms, email and photo printing; PNG is expected for app icons and print-on-demand designs.
  • Converting JPG to PNG prevents further loss but never removes artifacts that are already there.

Frequently asked questions

Is PNG higher quality than JPG?

PNG is lossless, so it never adds compression damage, but a well-made JPG at quality 85 to 90 looks the same as a PNG for photos at normal viewing sizes. The difference shows with text, sharp edges and repeated re-saving, where PNG stays clean and JPG picks up artifacts.

Does a JPG lose quality every time I open it?

No. Opening, viewing, copying or uploading a JPG changes nothing. Loss happens only when an editor saves the image again as a JPG, because the compression runs again on the edited pixels.

Which format is better for a website?

For photos, WebP or AVIF usually give the smallest files and every current browser supports them, with JPG as the universal fallback. For logos and icons, SVG is best when you have a vector source; otherwise PNG or lossless WebP keeps edges sharp.

What is the difference between PNG-8 and PNG-24?

PNG-8 stores up to 256 colors from a palette and suits simple icons and flat graphics, often at a fraction of the size. PNG-24 stores full 8-bit red, green and blue channels, and PNG-32 adds an 8-bit alpha channel for smooth transparency.

Why don't my iPhone photos save as JPG?

Since iOS 11, iPhones save new photos as HEIC by default, which is smaller than JPG at similar quality. You can switch to JPG under Settings, Camera, Formats, Most Compatible, or convert HEIC files to JPG when a form or older program refuses them.

Is a progressive JPEG different from a normal JPG?

It is the same format with the image data stored in several passes, so a browser can show a blurry full picture first and sharpen it as more data arrives. File size is similar, and any program that opens JPG opens progressive JPEGs too.

Keep reading