Finally a truly free unlimited converter! Convert unlimited images online – 100% free, no sign-up required

How JPG Compression Works: What Gets Smaller, What Gets Lost, and How to Choose Better Settings

Date published: April 8, 2026
Last update: April 8, 2026
Author: Marek Hovorka

Category: Image Optimization
Tags: file size reduction, Image optimization, jpeg quality, jpg compression, photo formats

Learn how JPG compression actually reduces file size, why artifacts appear, what quality settings really mean, and how to make smarter export choices for web, email, and everyday sharing.

JPG is everywhere because it solves a simple problem well: photos can be made much smaller without looking obviously worse at normal viewing size. But that convenience also causes confusion. People see a quality slider, save at 60, 80, or 95, and hope for the best. Then they notice blur, blockiness, halos around edges, or text that suddenly looks rough.

If you have ever wondered what JPG compression is really doing, this guide explains it in practical terms. You will learn why JPG files shrink so effectively, what visual information gets discarded, when quality loss becomes noticeable, and how to pick settings that fit the image and the use case.

This matters whether you are preparing photos for a website, uploading product shots to a marketplace, sending images by email, or converting between formats for editing and sharing. Used well, JPG compression gives you fast-loading, widely compatible images. Used poorly, it permanently damages detail.

Need to optimize or convert an image right now?

Use PixConverter for fast browser-based image tools. Popular options include PNG to JPG, JPG to PNG, PNG to WebP, WebP to PNG, and HEIC to JPG.

What JPG compression actually means

JPG, or JPEG, is a lossy image format designed mainly for photographs and continuous-tone images. “Lossy” means some visual information is removed during compression so the file can be stored in far less space than the original image data would require.

That is the key idea: JPG does not simply pack the same image more efficiently like a ZIP file. It throws away image information that the compression system predicts you may not easily notice. The lower the quality setting, the more aggressive that removal becomes.

This is why JPG is great for photos but less ideal for graphics with hard edges, screenshots, UI elements, logos, and text-heavy images. Those images often reveal compression damage quickly.

Why JPG files get so much smaller

A digital photo contains huge amounts of information. Every pixel stores color values, and a large image may contain millions of pixels. JPG reduces that information in several stages, with the biggest savings coming from simplifying color and detail.

1. It separates brightness from color

Human vision notices changes in brightness more strongly than subtle changes in color. JPG uses that fact. It treats luminance and chrominance differently, keeping more precision where your eyes are most sensitive and less where they are not.

In plain English, it protects major light-and-dark structure better than fine color transitions.

2. It often reduces color detail

Many JPGs use chroma subsampling. That means color information is stored at a lower resolution than brightness information. For photographic images, this usually looks acceptable. For text, icons, and sharp graphics, it can create color bleed and messy edges.

3. It simplifies fine visual detail

JPG compression breaks image data into small blocks and transforms them into frequency information. Fine textures, micro-contrast, and tiny variations are the first to be reduced. This is one reason skin may look smoother, foliage may look mushy, and fabric texture may disappear at lower settings.

4. It encodes the simplified data more efficiently

Once detail has been reduced, the remaining information compresses very well. That is why a large camera image can shrink dramatically when saved as JPG, especially at medium quality levels.

What gets lost during JPG compression

JPG compression does not affect every image in the same way. It tends to remove or damage certain kinds of visual information first.

  • Fine texture: hair, grass, fabric weave, skin pores, distant leaves
  • Sharp micro-contrast: subtle crispness that makes photos feel detailed
  • Clean edges: especially around text, icons, and graphic shapes
  • Smooth color transitions: especially in skies and gradients at lower settings
  • Repeated resave integrity: every re-export can add more damage

Some loss is hard to notice at normal size. Some becomes obvious immediately. The viewing size matters a lot. A photo may look fine on a phone but rough on a desktop monitor at 100% zoom.

Common JPG compression artifacts and what they look like

When people say a JPG looks “bad,” they are usually noticing compression artifacts. These are the visible side effects of aggressive or repeated lossy compression.

Blockiness

Because JPG works with small blocks of image data, those blocks can become visible at low quality settings. This shows up as square patterns in shadows, flat backgrounds, or detailed areas.

Blur and smearing

Fine detail gets averaged away. Hair may lose separation, leaves may merge into blobs, and textured surfaces may look waxy.

Halos around edges

High-contrast edges can develop light or dark outlines, especially after compression combined with sharpening. This often appears around buildings, product edges, and text on colored backgrounds.

Ringing

This is a shimmering or echo-like distortion near edges and contrast transitions. It can make crisp boundaries look unnatural.

Banding

Smooth gradients, such as skies or studio backdrops, may break into visible tonal steps instead of transitioning smoothly.

Color bleed

Due to reduced color precision and chroma subsampling, colored edges can leak into nearby areas. This is especially noticeable on screenshots and small typography.

Why JPG quality settings can be confusing

Many tools offer a quality scale from 1 to 100, but those numbers are not universal. A quality value of 80 in one program may not match 80 in another. Different encoders use different compression tables and defaults.

That means you should treat quality numbers as relative, not absolute. The real test is visual inspection at the intended display size and file-size target.

Still, general patterns are useful:

Quality Range Typical Result Best For Main Risk
90-100 Large files, minimal visible loss on many photos High-quality delivery, portfolios, client review copies Files may stay heavier than needed
75-89 Good balance of size and appearance Web photos, blog images, ecommerce galleries Some fine detail loss on close inspection
60-74 Smaller files, visible quality tradeoffs in some images General sharing, moderate compression targets Artifacts in texture, edges, and gradients
40-59 Aggressive compression Thumbnails, previews, low-bandwidth use Clear blockiness, blur, and banding
Below 40 Very small files, often poor quality Only when file size matters more than appearance Obvious visual damage

For many real-world website photos, the best quality setting is often lower than people expect. A carefully resized image saved at a sensible medium-high quality can look excellent while being dramatically smaller than the original.

JPG compression is more than the quality slider

People often try to shrink image size only by lowering quality. That works, but it is not always the smartest first move.

Image dimensions matter even more

If you upload a 4000-pixel-wide photo for a layout that displays it at 1200 pixels, you are carrying unnecessary data. Resizing before export can reduce file size more efficiently than aggressive compression alone.

Subject matter matters

A portrait with soft background blur usually compresses better than a busy forest scene. Product photos on simple backdrops compress better than cityscapes full of tiny detail.

Preprocessing matters

Over-sharpened images can produce ugly artifacts when compressed. Noise-heavy photos also compress poorly because random grain is expensive to encode.

Sometimes the best way to improve a JPG is to reduce noise slightly, resize appropriately, and then export at a moderate quality instead of pushing a noisy full-resolution image through harsh compression.

When JPG is the right choice

JPG is still one of the most practical image formats in everyday workflows.

  • Photographs for websites and blogs
  • Product photos without transparency needs
  • Email attachments and shared documents
  • Marketplace uploads and CMS image libraries
  • Social images that prioritize compatibility

It is especially useful when universal support matters. Nearly every browser, phone, app, and operating system handles JPG well.

When JPG is the wrong choice

JPG is not a universal answer. In several common situations, another format is better.

Image Type Better Format Why
Logos with sharp edges PNG or SVG Cleaner lines and no lossy artifacts
Screenshots and UI captures PNG Preserves text and flat-color areas cleanly
Images needing transparency PNG or WebP JPG does not support transparency
Modern web photos where supported WebP or AVIF Often smaller at similar visible quality
Edit-heavy master files PNG, TIFF, PSD, or RAW workflow Avoid repeated lossy saves

If you need to move between formats, PixConverter can help with common paths like PNG to JPG when transparency is no longer needed, or JPG to PNG when you need broader editing compatibility. Just remember: converting a JPG to PNG does not restore detail already lost to compression.

The biggest mistake: resaving JPGs over and over

One JPG export causes one generation of loss. Reopen that JPG, edit it, save it again as JPG, and you introduce another generation. Repeat the cycle enough times and visible damage accumulates.

This is why professionals avoid using JPG as a working master file. A better workflow is:

  1. Edit from the original RAW, TIFF, PNG, or other high-quality source.
  2. Keep that master version untouched.
  3. Export JPG only for delivery or publishing.

If you only have a JPG, try to perform all your edits in one session and export once at the end rather than repeatedly saving intermediate versions.

How to choose better JPG settings in real situations

For website photos

Resize to the actual display need first. Then test a medium-high quality export. Compare file size against visible detail. In many cases, a width reduction plus moderate compression beats keeping oversized dimensions at high quality.

For ecommerce product images

Protect edge clarity and color accuracy. White or plain backgrounds compress efficiently, so you may not need to lower quality much. Watch for halos around product edges.

For email and messaging

Smaller dimensions often matter more than ultra-high quality. Aim for a file that opens quickly and still looks clean on phones.

For scanned documents with photos

JPG can work, but text-heavy pages may suffer. If text crispness is important, PNG or PDF workflows may be better depending on the use case.

For social media uploads

Platforms often recompress images anyway. Start with a reasonably optimized file rather than an enormous original. This can reduce the chance of an even rougher automatic conversion.

Quick tool tip: If your source image is a PNG screenshot or graphic and you want a smaller, more shareable file, try converting PNG to JPG. If the image needs transparency or cleaner edge editing, use JPG to PNG instead.

JPG vs newer formats

JPG remains popular because it is simple and universally supported, but newer formats can outperform it in the right context.

JPG vs WebP

WebP often produces smaller files than JPG at similar visible quality and can also support transparency. It is a strong choice for websites. If you need to switch workflows, see PNG to WebP for web optimization or WebP to PNG when editing or compatibility becomes more important.

JPG vs HEIC

HEIC is efficient and common on modern phones, especially iPhones, but compatibility can still be inconsistent in some apps and websites. If you need an easier upload or share format, HEIC to JPG is a practical fix.

JPG vs PNG

PNG is lossless and better for graphics, screenshots, text, and transparency. JPG is usually better for photographs where file size matters.

A simple rule of thumb for everyday use

If the image is mostly a photo, JPG is usually a good candidate.

If the image has transparency, text, logos, screenshots, or hard-edged design elements, consider PNG or WebP first.

If you are optimizing for the web, combine three decisions instead of relying on one:

  1. Pick the right format.
  2. Resize to sensible dimensions.
  3. Apply moderate compression, then check the result visually.

FAQ about JPG compression

Does JPG compression always reduce quality?

Yes. JPG is a lossy format, so some image information is removed. At high quality settings, the loss may be hard to notice, but it still exists.

Why does my JPG look worse after editing and saving?

Because each JPG save can introduce a new generation of lossy compression. Repeated saves often create cumulative artifacts.

Can converting JPG to PNG improve quality?

No. PNG can preserve the current state without adding new JPG-style loss, but it cannot recover detail already discarded by JPG compression.

Why do screenshots look bad as JPG?

Screenshots often contain text, icons, and flat-color areas with sharp edges. JPG compression tends to damage those features quickly, causing blur and color bleed. PNG is usually better.

What JPG quality should I use for web images?

There is no perfect universal number, but medium-high settings often work well when the image is resized appropriately first. Always judge the result by appearance and file size, not by the number alone.

Is a higher-quality JPG always worth it?

No. Sometimes a file gets much larger with only tiny visible improvement. The best setting is often the lowest one that still looks clean in the final context.

Does JPG support transparency?

No. If you need transparent backgrounds, use PNG or WebP.

Why do phone photos sometimes upload as HEIC instead of JPG?

Many phones use newer formats to save storage. If a site or app does not accept HEIC cleanly, convert it to JPG for easier compatibility.

Final takeaway

JPG compression works by discarding image information in ways that are often acceptable for photographs but risky for graphics, screenshots, and edit-heavy workflows. The format stays popular because it offers a strong tradeoff between size, quality, and compatibility. But good results come from more than dragging a quality slider.

Choose the right format first. Resize intelligently. Compress moderately. Avoid repeated resaves. And always inspect the exported image where it will actually be used.

Ready to convert or optimize your images?

PixConverter makes it easy to switch formats for better sharing, editing, and web use.

Use the right format for the job, and you will get better quality, smaller files, and fewer image headaches.