File Format Guide

What is a JPG file?

JPG — also written JPEG — is the most widely used photographic image format in the world. Here is how its compression actually works, the one mistake that quietly ruins photos, and when a modern format will serve you better.

JPG at a glance
What is a JPG/JPEG file?
A widely used raster image format that uses lossy compression. It significantly reduces file size by discarding some image data, which is usually imperceptible to the human eye. JPG and JPEG are exactly the same format; the three-letter extension was just a requirement of older Windows systems.
How to open a JPG file?
Universally supported. It can be opened by any web browser, operating system default viewer (Apple Preview, Windows Photos), and all image editing software.
Typical use of a JPG file:
Digital photography, web images, and sharing photos online where small file sizes are prioritized over perfect pixel accuracy.
Origin of the JPG file:
Created by the Joint Photographic Experts Group in 1992.
Modern alternatives for JPG:
WebP, AVIF, and JXL (JPEG XL) offer better compression and quality at smaller file sizes.
JPG specifications
Full name Joint Photographic Experts Group
File extensions .jpg, .jpeg, .jpe, .jfif
MIME type image/jpeg
Compression Lossy (DCT-based); a rarely used lossless mode exists
Transparency Not supported
Animation Not supported
Colour depth 8 bits per channel (16.7 million colours)
Maximum size 65,535 × 65,535 pixels
Introduced 1992
Browser support Universal
Advertisement

How JPEG compression works

JPEG is lossy, which means it permanently discards image data to make the file smaller. The encoder converts the picture from RGB into a brightness-and-colour space (YCbCr), then usually throws away half or three-quarters of the colour information outright — your eye is far more sensitive to changes in brightness than to changes in hue, so the loss is hard to see. It then splits the image into 8×8 pixel blocks and runs a discrete cosine transform over each one, which separates broad tonal shifts from fine detail. The fine detail is what gets rounded off.

The "quality" slider you see in any converter is really controlling how aggressively that rounding happens. At quality 85 a photograph is usually indistinguishable from the original at a third of the size. At quality 40 you start to see the 8×8 blocks themselves, along with a halo of noise around hard edges that engineers call mosquito noise.

Generation loss: the JPEG trap worth knowing

Every time you open a JPEG, change something, and save it again, the whole lossy pipeline runs a second time — on an image that has already been damaged once. The errors compound. A photo that has been re-saved a dozen times develops visible blocking and colour banding, and none of it can be undone.

The fix is simple: keep a lossless master. Edit from the original RAW, PNG, or TIFF, and export a JPEG only as the final step. If you need to redo the edit, go back to the master rather than to the exported JPEG. (Rotating a JPEG is a special case — some tools can rotate losslessly when the dimensions are multiples of 8 — but any tool that re-encodes will cost you quality.)

When JPG is the right choice — and when it is not

Use JPG for photographs, and especially for anything that has to work everywhere. Universal support is JPEG's real advantage: there is no device, browser, printer, or piece of software that cannot open one. If you are emailing a photo, submitting it to a form, or handing it to software of unknown vintage, JPEG is the safe answer.

Avoid JPG for images with hard edges and flat colour — screenshots, logos, diagrams, text, line art, pixel art. The block-based transform smears across sharp transitions, so a screenshot saved as JPEG looks smudged and is often larger than the same screenshot as PNG. Avoid it too whenever you need transparency: JPEG has no alpha channel at all, so a transparent PNG saved as JPEG comes back with a solid background filled in.

Converting JPG files

Converting a JPG to PNG will not restore detail that compression already discarded — it simply stops any further loss, at the cost of a much larger file. It is worth doing when you are about to start editing, and rarely worth doing otherwise.

Converting to WebP or AVIF is a different proposition: both reach the same perceived quality as JPEG at roughly 25–50% smaller file size, which is why they have taken over web delivery. The trade-off is compatibility with older software, so keep the JPEG if the file has to travel widely.

Convert JPG files in your browser

Zolvo's image converter runs entirely on your own machine — your files are never uploaded to a server. Drop a JPG file in and pick an output format, or jump straight to a common one:

JPG — frequently asked questions

Is there any difference between .jpg and .jpeg?

No — they are the same format. The three-letter .jpg extension was a limitation of MS-DOS and early Windows, which only allowed three characters. Renaming a file from one to the other changes nothing about its contents, and any program that opens one opens the other.

Does converting a JPG to PNG improve the quality?

No. Detail discarded by JPEG compression is gone permanently, and no conversion can recover it. Converting to PNG freezes the image at its current quality so that further saves do not degrade it, but the result will look the same and the file will usually be several times larger.

Can a JPG have a transparent background?

No. JPEG has no alpha channel. When an image with transparency is saved as JPEG, the transparent areas are filled with a solid colour — often black or white. If you need transparency, use PNG, WebP, or AVIF.

Why is my JPG bigger than the PNG version?

That usually means the image is not a photograph. JPEG is tuned for smooth tonal gradients; PNG's compression is tuned for large runs of identical pixels. For a screenshot, logo, or diagram, PNG frequently wins on both size and sharpness.

Related formats