All Tools View Categories Blog About Contact Privacy
✦ CompressPrivate
Compress Anything.
Images · PDF · Video · Audio · Docs
🔒 100% Private ⚡ Free Forever ☁️ No Uploads
Compress Free →

Compress JPG Online

Shrink JPEG photos up to 80% — lossless EXIF strip, lossy quality control, batch resize, convert to WebP — 100% private, zero upload, instant download.

100% private — images processed locally in your browser, never uploaded. Loading…
Drop images here
JPEG · JPG — drop unlimited photos
No images yet
Drop files above to get started
Global Settings
Balanced
Low (high quality)High (small file)
Good balance — recommended for photos
Max Width (px)
Max Height (px)
Aspect ratio always preserved. 0 = keep original dimension.
Complete JPEG Format Guide

Everything You Need to Know About JPEG Files

JPEG is the format that made digital photography practical. It throws away the detail your eye cannot see and keeps the rest, turning a 9 MB raw image into a 900 KB file nobody can tell apart. Here is how it works, what the quality slider really controls, and how to compress without visible damage.

1992
Standard published
8×8
DCT block size
~80%
Typical size cut
16.7M
Colors supported

The JPEG Format Explained

JPEG (Joint Photographic Experts Group) is a lossy compression method designed specifically for continuous-tone images — photographs. Instead of storing pixels, it stores frequency coefficients, then discards the high-frequency ones human vision is least sensitive to.

🎨

Built for Photographs

JPEG assumes smooth gradients and gradual color change. On photos it is superb; on flat-color logos and screenshots it produces visible fringing around sharp edges. Use PNG or WebP for those.

🎭

Chroma Subsampling

The eye resolves brightness far better than color, so JPEG stores color at half resolution (4:2:0). That alone removes 50% of the color data before any other compression happens — and you almost never see it.

⚠️

Lossy and Cumulative

Every re-save re-quantizes the image. Editing and re-exporting a JPEG ten times visibly degrades it — generation loss. Always compress from the original, never from an already-compressed copy.

🔒

No Transparency

JPEG has no alpha channel. Transparent areas are flattened onto a solid background (usually white or black). If your image needs transparency, output PNG or WebP instead.

🔄

Baseline vs Progressive

Baseline JPEG loads top to bottom. Progressive JPEG loads a blurry full image first, then sharpens — it feels faster on slow connections and is usually 2–10% smaller for larger photos.

🌐

Universal Support

Every browser, camera, phone, printer, and editor made in the last thirty years reads JPEG. It is the safest possible format when you do not control the recipient's software.

JPG or JPEG — is there a difference? None whatsoever. Early Windows filesystems limited extensions to three characters, so .jpeg was truncated to .jpg. The file contents are byte-for-byte identical and both extensions are still accepted everywhere.

Inside the JPEG Compression Pipeline

JPEG runs every image through the same five stages. Understanding them explains exactly what the quality setting does and why artifacts look the way they do.

Step 1
RGB
Color Space Conversion
RGB to YCbCr (luma + chroma)
Step 2
4:2:0
Chroma Subsampling
Color at half resolution
Step 3
8×8
Discrete Cosine Transform
Pixels to 64 frequency coefficients
Step 4
Q
Quantization
The lossy step — quality lives here
Step 5
…
Huffman Entropy Coding
Lossless final packing
🧮

The 8×8 Block

The image is cut into 8×8 pixel tiles. Each tile is transformed independently, which is why heavily compressed JPEGs show a visible grid — you are seeing block boundaries that no longer match their neighbours.

📉

Quantization Tables

Each of the 64 coefficients is divided by a value from a quantization table, then rounded. Higher compress levels use larger divisors, so more coefficients round to zero and vanish. This is the only lossy stage.

〇

Zeros Are Free

After quantization, most high-frequency coefficients are zero. Run-length plus Huffman coding stores long zero runs in a couple of bits — which is where the actual file-size reduction comes from.

💧

Ringing Artifacts

A hard black-on-white edge needs many high frequencies. Discard them and you get faint ripples beside the edge — Gibbs ringing. That is why text screenshots look dirty as JPEG but clean as PNG.

Why re-compressing hurts: Decoding a JPEG does not return the original pixels — it returns the reconstruction. Re-encoding that reconstruction quantizes an already-quantized signal, and the 8×8 grid rarely lines up the same way. Two or three round trips are usually invisible; ten are not.

What Each Compress Level Actually Does

The compress level on this tool maps inversely to JPEG encoder quality: a low compress level keeps more detail and produces a larger file. These are the ranges worth knowing, measured on typical 12-megapixel photographs.

Compress levelEncoder qualitySize vs originalVisible resultUse for
1–10~90–9960–85%IndistinguishableArchival, print masters
11–25~75–8925–50%Visually losslessPortfolio, client delivery
26–45~55–7412–25%Slight softeningWeb pages, blog images
46–65~35–547–14%Blocking on flat areasThumbnails, previews
66–85~15–344–8%Obvious artifactsPlaceholders only
86–100~1–142–5%Heavy degradationRarely useful

The sweet spot is level 20–30. Past roughly level 30 the file stops shrinking much while artifacts start growing quickly — the curve flattens. Use the before/after split preview at 100% zoom on a detailed area (hair, foliage, skin) rather than judging the whole image scaled down.

↑

Different images need different levels. Noisy or highly detailed photos (forests, crowds, textured fabric) need a lower compress level to look clean. Smooth studio shots and blue skies survive far higher levels because there is little high-frequency content to lose.

→

Judge at final display size. An artifact you can only find at 400% zoom does not exist for your visitors. Compare at the width the image will actually be shown.

EXIF, GPS and the Data Hiding in Your Photos

Every JPEG from a phone or camera carries an EXIF block: shooting settings, device identity, timestamps, and often the exact coordinates where the shot was taken. It costs kilobytes and leaks more than most people intend.

0xFFD8
2B
SOI — Start of Image
Every JPEG begins here
0xFFE1
var
APP1 — EXIF / GPS block
Stripped by this tool
0xFFE2
var
APP2 — ICC color profile
Often 3–500 KB
0xFFDB
65B+
DQT — Quantization tables
The quality fingerprint
0xFFDA
…
SOS — Compressed scan data
The actual image
📍

GPS Coordinates

Phones embed latitude, longitude and often altitude. Post that photo publicly and you have published your home, your office, or your child's school to anyone who opens the file properties.

📱

Device Fingerprint

Make, model, lens, serial number and firmware version are all recorded. Several photos from the same camera can be linked together even across anonymous accounts.

🕑

Timestamps

Original capture time is stored separately from file modification time, and survives copying, emailing, and most edits. It is frequently more accurate than people expect.

🎨

ICC Profiles

Wide-gamut profiles from cameras can be hundreds of kilobytes — sometimes larger than a compressed thumbnail. Web browsers assume sRGB, so stripping them is usually safe and shrinks the file.

This tool strips metadata by default. Because compression happens on a canvas in your browser, the output is re-encoded from raw pixels — EXIF, GPS and ICC data are simply not carried across. Nothing is uploaded, so the original never leaves your device either. If you need to keep EXIF, work from a copy and archive the original separately.

JPEG Compression Strategies That Actually Work

Six habits that separate a well-optimised photo library from one that is either bloated or visibly damaged.

1

Resize before you compress. Pixel count drives file size harder than quality does. A 4000×3000 photo at compress level 20 is still bigger than the same photo at 1600×1200 and level 40 — and the resized version looks better. Set a max width matching your actual layout.

2

Always compress from the original. Each JPEG generation loses data permanently. Keep the camera original, export derivatives from it, and never re-run a compressed file through the tool a second time.

3

Try WebP output for anything web-facing. WebP is typically 25–34% smaller than JPEG at matching perceptual quality, and every current browser supports it. Switch the output format tab and compare the two results side by side.

4

Strip metadata before publishing. It saves 10–40 KB per image and removes GPS and device data you probably did not mean to share. On a 200-image gallery that is several megabytes of pure overhead.

5

Do not use JPEG for text, UI or line art. Sharp high-contrast edges are exactly what DCT handles worst. A screenshot as JPEG will show colored fringing around every letter; as PNG or WebP it stays crisp and is often smaller too.

6

Batch with one global setting, then fix outliers. Drop the whole folder, apply a level around 25, then check the noisiest few images and re-run just those at a lower level. Far faster than tuning every file individually.

A realistic target: a 12 MP phone photo is roughly 4–6 MB out of the camera. Resized to 1920px wide and compressed at level 25, it lands around 250–400 KB as JPEG or 180–280 KB as WebP — a 90%+ reduction with no visible difference at normal viewing size.

About Compress JPG Online

Compress JPEG photos in your browser — no upload, no server, complete privacy. Compress JPG Online reduces JPEG file size using the browser's native Canvas API, giving you precise control over output quality, resize dimensions, EXIF stripping, and format conversion to WebP — all without your photos ever leaving your device.

JPEG compression works by reducing the precision of color data in image blocks. The compress level slider controls this trade-off: low compress (level 1–20) gives near-original quality with moderate savings; medium compress (level 25–50) is ideal for web sharing; high compress (level 60–80) gives maximum savings at the cost of visible artifacts in smooth areas. The before/after split viewer shows exactly what the output looks like at your chosen level.

Convert JPEGs to WebP for 30–40% better compression at the same visual quality. Use the resize fields to cap output dimensions — halving width and height reduces file size by ~75% before any quality reduction. Strip EXIF metadata to remove GPS, camera model, and lens data that inflates file size and exposes privacy information. Batch process any number of JPEGs with a single click.

Features

  • Quality-controlled compression — 1–100 compress level slider, Canvas toBlob API, precise JPEG quality vs size trade-off
  • Convert JPG to WebP — 30–40% better compression than JPEG at same visual quality, supported in all modern browsers
  • EXIF metadata stripping — remove GPS location, camera model, lens data, thumbnail previews for size and privacy
  • 100% browser-local — Canvas API compression, no upload, works offline, photos never leave your device
  • Unlimited batch processing — compress entire photo libraries at once with real-time per-file progress
  • Smart resize — Max Width/Height with aspect-ratio lock; pairs with compression for maximum savings
  • Progressive JPEG — blurry-to-sharp loading for faster perceived load times on slow connections
  • Before/After split viewer — drag to compare original vs compressed quality side by side
  • Batch ZIP download — download all compressed photos in one archive

How to Use

  1. Drop JPEG files. Drag JPG or JPEG photos onto the drop zone or click Browse. Any number accepted.
  2. Choose output format. JPEG (default) for maximum compatibility. WebP for 30–40% better compression.
  3. Set compress level. Level 15–25 is recommended for photos — near-lossless quality. Level 40–60 for aggressive web optimization.
  4. Optional: strip metadata. Strip Metadata is on by default — removes EXIF, GPS, and camera data.
  5. Optional: resize. Set Max Width or Max Height to cap output dimensions. Aspect ratio is always preserved.
  6. Compress All. All files are processed with your settings. Real-time progress bar shows status.
  7. Download. Individual file downloads or ZIP archive for the full batch.

Examples

Example 1 — Web gallery optimization: 80 vacation photos (avg 5 MB each from smartphone camera) → JPEG output, compress level 22, max width 2000 → avg 400 KB each → 92% savings → download ZIP → upload to website.

Example 2 — Email attachments: 10 high-res photos to share via email → WebP output, compress level 35 → avg 150 KB each (from 5 MB originals) → 97% savings → attach to email.

Example 3 — Privacy-safe sharing: Photos with GPS location embedded → JPEG output, level 18, Strip Metadata ON → GPS and camera info removed → safe to share on social media without location data.

Benefits

  • No quality compromise — the compress level slider gives precise control; level 15–25 is visually lossless for most photos, unlike services that apply a fixed aggressive setting.
  • WebP conversion — converting to WebP gives an additional 30–40% savings over JPEG compression alone — the most effective single optimization for modern web images.
  • Complete privacy — JPEG photos often contain GPS coordinates, camera serial numbers, and date/time data. Browser-local processing means none of this information is sent to a server.

Frequently Asked Questions

How much can I compress a JPEG photo?
Typical JPEG photos can be compressed 50–80% with no visible quality loss. A 4 MB photo often becomes 800 KB–1.2 MB at compress level 18–25, which is visually indistinguishable from the original. At level 40–60, savings of 75–85% are common with minor artifacting on fine details. Converting to WebP at the same visual quality gives an additional 20–40% savings over JPEG.
Will compressing a JPEG reduce visible quality?
At compress level 1–20, quality loss is minimal and typically invisible at normal viewing distances. Level 20–45 produces slight softening of fine textures. Above level 60, JPEG block artifacts become visible in solid-color areas. Use the before/after split viewer to compare output at your chosen level before downloading. For most web use, level 15–25 is the sweet spot.
What is the difference between JPEG and WebP compression?
WebP uses a more modern compression algorithm (based on VP8 video codec) that achieves 25–40% better compression than JPEG at equivalent visual quality. A JPEG compressed to 200 KB can often become 120–140 KB as WebP with the same apparent quality. WebP is supported in all modern browsers (Chrome, Firefox, Edge, Safari 14+). The trade-off: WebP is less universal for email and older software.
Does stripping EXIF metadata reduce file size?
Yes — EXIF metadata can add 20–100+ KB to a JPEG depending on the camera. GPS coordinates, camera model, lens data, thumbnail previews, and color profiles are all embedded. Enabling Strip Metadata removes this data, which is particularly valuable for privacy (removing GPS location) and for web images where metadata serves no purpose. The image itself is not affected.
Can I convert JPEG to WebP for better web performance?
Yes — select WebP as the output format. WebP output is typically 30–40% smaller than the equivalent JPEG at the same visual quality. All modern browsers support WebP. The compress level slider controls WebP quality the same way it does for JPEG. For maximum savings, use WebP at compress level 35–50. Use the before/after viewer to confirm quality before downloading.
What is Progressive JPEG and when should I use it?
Progressive JPEG loads in multiple passes — first a blurry low-resolution preview, then progressively sharper detail. This makes the image appear to load faster on slow connections because users see something immediately rather than a blank space. Enable it for images above the fold on web pages. For thumbnails and small images, the effect is negligible. Note: Progressive JPEG is slightly larger than baseline JPEG for very small files.
Can I resize JPEG images while compressing?
Yes — use the Max Width and Max Height fields. Enter a pixel limit (e.g. Max Width: 1920) and the image is scaled down proportionally if it exceeds that dimension. Aspect ratio is always preserved. Combining resize with compression is the most effective way to reduce file size — halving the dimensions reduces file size by approximately 75% before any quality compression is applied.
Is my data private when using this tool?
Completely private. All JPEG compression happens in your browser using the native Canvas API. No image data is sent to any server. The tool works offline after the initial page load (except for downloading JSZip for ZIP archives). Your photos never leave your device. This is unlike many online compression tools that upload your files to a server.

More Image tools

View All