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

JPG Compression Explained: How It Shrinks Images, What Quality You Lose, and When to Use It

Date published: May 26, 2026
Last update: May 26, 2026
Author: Marek Hovorka

Category: Image Optimization
Tags: Image optimization, jpeg quality, jpg compression, photo formats, Reduce image size

Learn how JPG compression works in plain English, why file sizes drop so much, what artifacts actually mean, and how to choose better settings for web, email, uploads, and everyday photo use.

JPG compression is one of the main reasons photos are easy to upload, email, store, and share. A camera image that would otherwise be very large can become much smaller as a JPG, often with a visual difference that looks minor at normal viewing size. That is why JPG remains one of the most common image formats on the web and across phones, apps, and everyday workflows.

But there is a tradeoff. JPG compression reduces file size by throwing away some image information. Sometimes that loss is barely noticeable. Sometimes it creates blur, halos, blockiness, smeared detail, or ugly text edges. If you have ever exported the same image twice and watched it get worse, you have already seen JPG compression in action.

This guide explains how JPG compression works, why it is so effective, what kind of quality loss it creates, and how to decide when JPG is the right choice. If your goal is smaller images without avoidable quality damage, understanding JPG at a practical level will help you get better results every time.

Need a quick format change?

If you want to make a heavy PNG easier to share, try PNG to JPG. If you need to recover transparency-friendly editing from a JPG-based workflow, use JPG to PNG. PixConverter also supports PNG to WebP, WebP to PNG, and HEIC to JPG.

What JPG compression actually does

JPG, also written as JPEG, is a lossy image format designed mainly for photographs and continuous-tone images. Lossy means it reduces file size by discarding some visual information that the compression process assumes most viewers will not strongly notice.

That makes JPG very different from formats like PNG, which preserve image data exactly. A PNG can stay perfectly faithful to the source, but that usually means larger files for photos. JPG takes a different approach: preserve the overall appearance well enough while shrinking the file much more aggressively.

In plain terms, JPG compression tries to keep the big visual story of an image while simplifying small details, subtle transitions, and very fine information that costs a lot of storage space.

Why JPG files can be so much smaller

Photos contain a huge amount of color and brightness variation. A lossless format stores that information much more literally. JPG looks for ways to represent that image more efficiently by reducing precision where the eye is often less sensitive.

That is why a photo saved as JPG can be many times smaller than the same image saved as PNG. The size savings can be dramatic, especially for camera images, travel photos, portraits, and other natural scenes.

How JPG compression works in simple terms

You do not need the full mathematics to use JPG well, but it helps to know the main steps.

1. The image is separated into color and brightness information

Human vision notices brightness detail more strongly than tiny color detail. JPG takes advantage of that by handling luminance and chrominance differently. In many cases, it stores color information with lower precision than brightness information.

This is one reason photos can compress well while still looking reasonably natural at moderate quality settings.

2. The image is divided into small blocks

JPG processes the image in small square sections, commonly 8 by 8 pixels. This block-based structure is efficient, but it also explains one of JPG’s most recognizable flaws: visible square artifacts at stronger compression levels.

When compression is too aggressive, those blocks can begin to show up in skies, shadows, skin tones, or flat backgrounds.

3. Fine detail gets simplified

Within each block, the compression process represents detail in a more compact way. High-frequency detail such as tiny texture, sharp edge transitions, and subtle noise often gets reduced first because it consumes lots of data.

This is where you can start to lose crispness. Hair, foliage, fabric texture, and small text can all suffer when the quality setting is pushed too low.

4. Less important data is discarded

The most important step is quantization, which is where some image detail is intentionally dropped. This is the core reason JPG is lossy. Once that information is removed, it cannot be perfectly restored later.

That means converting a low-quality JPG into PNG will not bring back lost detail. It may make the file editable in more tools or preserve the current state without further JPG loss, but it cannot reverse previous compression damage.

5. The remaining data is efficiently encoded

After simplification, JPG stores the remaining information in a compact form. This is the part that gives you the final smaller file.

What the quality setting really means

When you export a JPG, you often see a quality slider or number. Higher quality usually means less aggressive compression, better visual fidelity, and a larger file. Lower quality means stronger compression, smaller files, and more visible artifacts.

Important detail: quality numbers are not standardized across all apps. A setting of 80 in one tool may not behave exactly like 80 in another. That is why visual checking matters more than relying on the number alone.

JPG quality range Typical result Best use cases
90-100 Large file, minimal visible loss High-quality photo delivery, portfolio previews, final exports where size is less critical
75-89 Good balance of size and quality Web photos, blog images, product photos, email attachments
60-74 Smaller files, visible softness may begin General web use where speed matters more than pixel-perfect detail
40-59 Artifacts become easy to notice Only when aggressive size reduction is required
Below 40 Strong compression damage likely Rarely ideal except for tiny previews or highly constrained uploads

For many real-world images, the best practical range is often somewhere around the middle-high range, where file size drops a lot but the image still looks clean at intended display size.

Common JPG compression artifacts and why they happen

Compression artifacts are the visible side effects of data being removed. Some are subtle. Others are obvious even to non-designers.

Blockiness

Because JPG works in small blocks, strong compression can make those boundaries visible. This often appears in flat backgrounds, skies, shadows, and smooth gradients.

Blur and softness

Fine detail is often the first thing to go. Hair, grass, brick, eyelashes, leaves, and texture can look softer or smeared.

Ringing and halos

Around sharp edges, especially high-contrast edges, you may see glow-like artifacts or edge halos. These become more likely when heavy compression hits logos, text, interface elements, or hard lines.

Color smearing

Subtle color transitions can break down, especially in skin, gradients, and saturated areas. This can create unnatural patches or muddy color.

Generation loss

Every time you re-save a JPG with lossy compression, the image can degrade further. This is called generation loss. It matters a lot in workflows where the same file gets edited and exported repeatedly.

If you plan to keep editing an image, it is smarter to work from the original file or a lossless master and export to JPG only at the end.

Why JPG works well for photos but poorly for some graphics

JPG was built for photographs, not every kind of image. It performs best when the image contains natural variation, soft tonal transitions, and complex real-world detail.

Good JPG candidates

  • Camera photos
  • Portraits
  • Travel and landscape images
  • Product photos with real photographic detail
  • Social media photo uploads

Poor JPG candidates

  • Logos
  • Icons
  • Screenshots
  • Images with text overlays
  • UI graphics
  • Flat illustrations with hard edges
  • Transparent graphics

These image types often look better in PNG or, for web delivery, sometimes WebP. If you have a transparent or design-heavy asset, using PNG to WebP may be a better optimization path than forcing it into JPG.

JPG compression vs lossless compression

One of the biggest misunderstandings is that all compression works the same way. It does not.

Compression type What it does Can original data be perfectly restored? Common formats
Lossy Removes some image information to shrink file size more aggressively No JPG, some WebP, some AVIF
Lossless Reduces file size without throwing away image data Yes PNG, lossless WebP

If your image absolutely must remain pixel-perfect, JPG is the wrong format. If your top priority is a smaller photo file that still looks good to the eye, JPG is often a strong choice.

How resizing affects JPG results

Compression is only one part of file size. Image dimensions matter just as much, and often more.

A huge 6000-pixel-wide image saved at moderate JPG quality can still be much larger than a 1600-pixel-wide image saved at slightly higher quality. In many cases, the smartest optimization is to resize first, then apply sensible JPG compression.

For example:

  • A full-resolution phone photo may be far larger than needed for a blog post.
  • A product image displayed at 1200 pixels wide does not usually need to be stored at 4000 pixels wide.
  • An email attachment often benefits more from downscaling than from crushing JPG quality.

If you are trying to reduce file size, always ask two questions: is the image larger than it needs to be, and is the compression stronger than necessary?

Practical tips for better JPG compression

Start with the right source

Begin from the original image whenever possible. If you repeatedly save from a previously compressed JPG, artifacts stack up.

Resize before export

Match image dimensions to actual use. This often gives a bigger file-size win than dropping quality too far.

Use moderate quality first

Do not assume you need an extremely low setting. Many images stay visually strong at moderate compression and look much better than heavily crushed exports.

Zoom in on important areas

Check faces, text, edges, shadows, and detailed textures. These are the places where damage shows up first.

Avoid JPG for text-heavy graphics

Screenshots, infographics, app mockups, and banners with crisp typography often degrade badly in JPG. PNG is usually safer for these.

Export once when possible

Do your editing in a master file, then export the final JPG only when you are done.

When converting to JPG makes sense

JPG is often the right destination when you need broad compatibility and significantly smaller files for photo content.

  • You want to upload a photo to a website that rejects larger formats.
  • You need to email images without huge attachments.
  • You are converting a photo-heavy PNG into a more efficient sharing format.
  • You need a widely supported format for apps, websites, and older software.

If you currently have a large PNG photo, try converting PNG to JPG to reduce size for sharing and uploads. If you have iPhone photos in HEIC and need compatibility, HEIC to JPG is another common step.

When JPG is the wrong choice

There are clear cases where JPG creates more problems than it solves.

  • You need transparency.
  • You are preserving a logo or icon with crisp edges.
  • You are storing source files for future editing.
  • You are working with screenshots, diagrams, or text-heavy graphics.
  • You need exact pixel reproduction.

In those cases, use PNG or another more suitable format. If you already have a JPG but need a workflow that avoids further lossy re-saves, JPG to PNG can help preserve the current version during future edits.

JPG vs newer formats

JPG is old, but it is still everywhere because support is nearly universal. Newer formats like WebP and AVIF can often deliver smaller files at similar visual quality, but JPG remains easier to use across older systems and simpler workflows.

That makes JPG a practical default for compatibility, especially when the image is a straightforward photo and the user environment is mixed.

If your workflow is web-focused and modern browser support matters more than legacy compatibility, a format like WebP may be worth comparing. But for universal acceptance, JPG still wins in many everyday scenarios.

Quick workflow idea:

Use JPG for shareable photo exports, PNG for editable graphics and screenshots, and WebP where web performance is the priority. PixConverter makes it easy to switch formats depending on the job.

FAQ about JPG compression

Does JPG compression always reduce quality?

Yes. JPG is a lossy format, so some image information is removed. The question is whether the loss is visible enough to matter for your use case.

Can you reverse JPG compression?

No. Once detail has been discarded, it cannot be perfectly restored. You can improve editing workflow by converting to another format, but you cannot recover the original lost data.

Why does my JPG look worse after editing and saving again?

That is usually generation loss. Each lossy re-save can add more artifacts. Edit from the original file or a lossless working copy whenever possible.

Is higher JPG quality always better?

Visually, usually yes. But the file may become much larger for only a small visible improvement. The best setting is the lowest one that still looks clean at actual viewing size.

Why do screenshots look bad as JPG?

Screenshots often contain sharp text, straight edges, and flat color areas. JPG handles those poorly compared with PNG, which preserves them cleanly.

Does converting JPG to PNG improve quality?

No. It does not restore lost detail. It only changes the container format. That can still be useful if you want to avoid further JPG compression during later edits.

What is the best JPG quality for websites?

There is no universal number, but moderate-to-high settings usually offer the best balance. Resize the image appropriately first, then test the lowest quality that still looks good on the page.

Final takeaway

JPG compression works by removing image information in a way that often keeps photographs looking acceptable while shrinking file size a lot. That is why it is still one of the most practical formats for uploads, email, and web photos.

Its strength is efficient photo compression. Its weakness is visible quality loss, especially on text, sharp graphics, repeated exports, and overly aggressive settings.

If you understand those limits, JPG becomes much easier to use well. Resize before export. Avoid unnecessary re-saves. Use moderate quality settings. And choose a different format when the image type calls for it.

Try the right converter for your next image

Ready to optimize or convert your images?

Use PixConverter for fast, simple image conversion based on what your file actually needs.

Choose the format that fits the image, not just the one you already have.