Skip to main content

Free Online Image Compressor

Make JPG, PNG and WebP files smaller while keeping the quality. Every result is measured against your original, and the dimensions never change.

Upload an image to compress

JPG, PNG, WebP, AVIF, BMP or HEIC
Choose file

or paste an image (Ctrl+V)

Processed in your browser, never uploaded. You keep full ownership of your images. View license

Last updated

How to compress an image online

You can compress an image in five steps. Most images take a few seconds; very large photos can take a minute or more:

  1. Add your image. Drag a JPG, PNG, WebP, AVIF or BMP file onto the upload area, click to browse your device, or paste an image from your clipboard with Ctrl+V (Cmd+V on a Mac). It opens in a full-screen studio and is compressed straight away.
  2. Choose how much quality to keep. Auto mode has three levels: Maximum, High (the default) and Smaller file. For your picture it finds the smallest file that stays at that level. Manual mode gives you a slider from 10 to 100, and Lossless keeps every pixel.
  3. Pick an output format. Leave the format on Auto for the smallest file that keeps the quality. Choose JPG if the site or form you are uploading to only accepts JPG, WebP for websites, or PNG for logos, screenshots and other graphics with sharp edges.
  4. Compare before and after. Drag the slider across the image, zoom in on faces, text and sharp edges, or hold the button to see the original. The Check panel shows how close the result is, measured against the original.
  5. Download. Save the compressed file. It keeps your original file name with “-processed-in-imageyork” and the new extension added, or you can type a different name first.

Need to compress more than one image? The Bulk Image Compressor applies one setting to a whole set and downloads them as a ZIP. If a form demands a strict limit, reduce the image to a target size in KB instead of guessing a quality.

What this image compressor does

An image compressor makes an image file smaller by storing its data more efficiently or by removing detail that viewers are unlikely to notice. This one re-encodes your image in the background, opens the result again and compares it with the original. It handles one image at a time so you can judge each result before saving.

How Auto mode keeps the quality

The same quality number suits one picture and ruins another. A soft portrait can look perfect at 70, while a screenshot with coloured text falls apart at 95. So Auto mode does not use a fixed number:

  1. It tries several encoder settings on the most demanding parts of your picture to find the lowest one that still looks like the original.
  2. It compresses the whole image at that setting, opens the result and compares it with the original over the whole picture.
  3. If the result falls short, it raises the quality and checks again.

The comparison covers fine structure, the worst-affected areas, banding in smooth areas and colour. Images with transparency are compared on white and on black. The result is a score out of 100: Maximum requires 96, High 93 and Smaller file 89.

Three things the tool does not do

  • It does not resize. The compressed image has exactly the same width and height.
  • Auto format does not make JPG, PNG or WebP files bigger. If nothing smaller keeps the quality, you get your original image data back without its metadata. A format you choose yourself can be larger, and the tool says so.
  • It does not re-encode for nothing. If a lossless version is about as small, it is used instead, so no quality is lost.

Supported image formats

The compressor accepts JPG, PNG, WebP, AVIF and BMP, and can save to WebP, JPG or PNG. Choosing a different output format is often the biggest saving you can make, so it is worth understanding how each one behaves.

Compress JPG and JPEG images

JPEG is a lossy format designed for photographs. It stores the image in small blocks and discards fine detail the eye is least likely to notice; the quality setting controls how much is discarded. JPEG has no transparency.

For photos that will go on a website, choose WebP or leave the format on Auto. Keep JPG when the destination requires it, such as many job portals, government forms and email attachments. JPG stores colour at half detail, so coloured text and sharp coloured edges need a much higher setting; Auto mode notices this.

Compress PNG images

PNG is a lossless format with full transparency. That makes it ideal for logos, screenshots and graphics with text, but very inefficient for photos: a photo saved as PNG is commonly several times larger than the same photo as JPG.

If your PNG is a photo, convert it to WebP or JPG here. If it is a graphic with a transparent background, choose WebP (which keeps transparency) or keep PNG. Converting a transparent PNG to JPG fills the transparent areas with white.

When you choose PNG in Auto mode, the tool first tries a palette of up to 256 colours, which suits logos and screenshots and often halves the file. The palette is used only if the result passes the quality check. Photos usually do not pass, so they are saved with every pixel kept.

Compress WebP images

WebP supports lossy and lossless compression, plus transparency and animation, in one format. For the same visual quality it usually produces smaller files than JPEG or PNG, and current versions of all major browsers display it.

You can compress an existing WebP again, but each lossy pass removes a little more detail. If you still have the original JPG or PNG, compress that instead.

Compress AVIF and BMP images

AVIF and BMP files can be opened here and saved as WebP, JPG or PNG. BMP files are usually uncompressed, so they shrink a great deal. AVIF files are already very small, so a converted copy is often larger. To save to AVIF, use the Bulk Image Compressor in a browser with an AVIF encoder.

What about GIF and HEIC images?

GIF files are not supported by this compressor, and animated WebP or PNG files are not opened because only one frame would survive. GIF is limited to 256 colours, which makes photos look grainy and files large. For a still GIF, convert it to JPG first and then compress it here. Converting keeps only a single frame, so animation is lost.

iPhone HEIC photos can be opened only in browsers that can display HEIC, which normally means Safari. Elsewhere, convert them to JPG first.

Format quick reference

FeatureJPG / JPEGPNGWebPAVIFGIF
CompressionLossyLosslessLossy or losslessLossy or losslessLossless, 256 colours max
TransparencyNoYesYesYesOn/off only
AnimationNoAPNG variant onlyYesYesYes
Best forPhotos for any destinationLogos, screenshots, line artPhotos and graphics on websitesLarge photos on modern websitesSimple short animations
In this compressorInput and outputInput and outputInput and outputInput onlyNot supported

How do you reduce image size without losing quality?

You reduce size with little or no visible loss by choosing the right format, avoiding oversized dimensions and using the highest quality setting that still meets your size goal. Whether any loss happens at all depends on the type of compression.

Lossy vs lossless compression

  • Lossy compression permanently removes image data the eye is unlikely to notice, such as subtle colour variation and fine texture. It gives the largest savings. JPG output and most WebP output are lossy.
  • Lossless compression stores the same pixels more efficiently, so the decoded image is identical to the original. Savings are smaller.

Auto mode may change some data, but it keeps the change below the level you chose and shows you the measurement. If you need the pixels left exactly as they are, choose Lossless mode. It keeps the original format, removes hidden metadata and repacks JPG and PNG data more efficiently, so savings are usually modest. The Lossless Image Compressor tries harder and handles several files at once.

Key terms in plain language

  • Image quality: how closely the compressed image matches the original to a viewer. In Manual mode the slider controls the encoder, not the final file size directly.
  • Compression ratio: original size divided by compressed size. A 2 MB photo saved at 250 KB has a ratio of about 8:1.
  • Pixel dimensions (resolution): the width and height in pixels, such as 1920 × 1080. Compression does not change them; resizing does.
  • File size: how much storage the file takes, in KB or MB.

Choosing a quality level

High suits almost everything. Use another level when you have a reason to:

Image typeSuggested levelSuggested formatWhat to check in the preview
Website photos, blog imagesHighAuto or WebPSmooth skies and gradients for banding
Product photos, portraits, printsMaximumAuto, or JPG for print shopsSkin tones, fabric texture, edges
Photo for a form or emailHighJPGThat the file fits the stated limit
Screenshot or logoHighAuto or PNGBlurring or halos around letters
Background behind text, thumbnailsSmaller fileAuto or WebPVisible blocks in flat areas

The score is a measurement, not a person. Look at the result at 100% zoom (the 1:1 button) before you delete an original.

Why some images compress better than others

Flat areas, soft focus and limited colour compress very efficiently. Grain, foliage, water and noisy low-light photos contain more unpredictable detail, so they stay larger at the same setting.

An image that has already been saved at low quality has little left to remove. Compressing it again saves little space and adds artefacts, so the tool keeps the original data when the saving is only a few percent. Always compress from your original, not from a previously compressed copy.

Colour profiles and metadata

Camera details, dates and GPS location are removed, which is usually what you want before sharing a photo publicly. Photos stay upright. Re-encoded files get only a short note naming the software that processed the file. When an image is re-encoded, its colours are converted to sRGB, the standard for screens, so wide-gamut photos from some recent phones and cameras may look slightly less saturated. Lossless mode keeps the colour profile.

Benefits of compressing images online

  • Smaller files to upload and send. Fit photos under email attachment and form limits, and upload faster on slow connections.
  • Faster image delivery on websites. Fewer bytes mean images arrive sooner, especially on mobile data.
  • Less storage used. Compressed copies take less space on your phone, in cloud storage and on your web host.
  • Location data removed on the way. GPS and camera data are left out of the compressed file.
  • Nothing to install. It runs in any modern browser on Windows, macOS, Android or iPhone, and your file stays on your device.

Why image compression matters for website performance

Images are often the heaviest files on a page, and the main image is frequently what Google measures for loading speed. Compression helps, but it works best alongside correct dimensions, modern formats and good HTML.

Largest Contentful Paint (LCP)

LCP measures when the largest image or text block in the viewport finishes rendering. Google rates an LCP of 2.5 seconds or less as good, measured at the 75th percentile of page loads. On most landing pages and blog posts the LCP element is a hero image, so its file size directly affects the score.

Layout stability (CLS)

Add width and height attributes to every <img> so the browser reserves space before the image arrives. This prevents content from jumping as the page loads. A Cumulative Layout Shift of 0.1 or less is considered good.

Responsive images and modern formats

Use srcset and sizes so phones download a smaller version than large desktop screens, and the <picture> element to offer AVIF or WebP with a JPG fallback. Always keep a standard <img> with a src, because some browsers and crawlers ignore the newer attributes.

<picture>
  <source type="image/webp" srcset="team-800.webp 800w, team-1600.webp 1600w" sizes="(max-width: 900px) 100vw, 900px">
  <img src="team-1600.jpg" width="1600" height="900" alt="Support team reviewing customer tickets at a shared desk">
</picture>

Choose dimensions before you compress

A 4,000-pixel-wide photo displayed in an 800-pixel column still downloads all 4,000 pixels. Resizing it to the display size, or twice that for high-density screens, removes most of the data before compression even starts. Use the Image Resizer first, then compress.

Faster pages give visitors a better experience, and Core Web Vitals are one of the page experience signals Google’s ranking systems use. Good scores do not guarantee higher rankings, though; relevant, helpful content still matters most.

Image compression vs resizing vs format conversion

These three changes are often confused, but each one changes something different about the file.

CompressionResizingFormat conversion
What changesHow efficiently pixels are storedWidth and height in pixelsThe file type (for example, PNG to WebP)
Pixel dimensionsUnchangedReduced or enlargedUnchanged
Effect on file sizeModerate to large reductionLarge reduction when downsizingDepends on formats; PNG photo to WebP is often large
Visual qualityLossy: some loss; lossless: noneLess detail when downsizingLossy target: some loss
Use whenThe image is the right size but the file is too heavyThe image is larger than it will ever be displayedThe destination needs a specific format, or another format is more efficient
Image York toolThis compressor, Bulk, LosslessImage ResizerJPG to WebP, PNG to JPG and other converters

For the best result, work in this order: crop, resize, then compress. This compressor also converts format in the same step, so you rarely need a separate converter for JPG, PNG or WebP.

Online image compressor vs desktop software

Both approaches work well. The right one depends on how many images you handle and what else you need to do with them.

Image York (browser)Desktop software
InstallationNone; open the pageDownload and install; some apps are paid
Processing locationOn your device, inside the browserOn your device
PrivacyImage not uploaded; the page still loads analytics and advertising scripts (see the Privacy Policy)Fully offline once installed
Batch processingYes, with the Bulk Image CompressorUsually yes, often with saved presets and folder automation
Format rangeJPG, PNG, WebP; AVIF in BulkVaries; may include RAW, TIFF and more
Advanced editingSeparate tools for resize, crop and editsLayers, masks, colour management and precise export controls
Best forQuick jobs, any device, shared or locked-down computersLarge recurring workflows and professional photo editing

If you compress images occasionally, or on a phone or a work computer where you cannot install software, a browser tool is simpler. If you process thousands of images a week or need colour-managed output for print, dedicated desktop software is the better fit.

Troubleshooting

  • The compressed file is larger than the original: the original was already efficiently compressed, or the format you chose does not suit the picture, such as PNG for a photo. Set the format to Auto.
  • The file is the same size as before: nothing smaller kept the quality level you chose. Try the Smaller file level, or make the image smaller in pixels with the Image Resizer.
  • “JPG cannot keep this image at the chosen level”: coloured text or sharp coloured edges need more colour detail than JPG stores. Choose Auto, WebP or PNG.
  • “This browser cannot save WebP files”: some browsers, including Safari, may not be able to encode WebP. Auto then uses JPG or PNG.
  • “This image could not be opened”: the browser could not decode the file. An iPhone HEIC photo outside Safari is the usual cause; export it from your phone as JPG first.
  • “This device can handle up to …”: the limit depends on the memory your browser reports: 64 megapixels below 4 GB, 120 from 4 GB (or when it is not reported) and 210 from 8 GB. Make the image smaller with the Image Resizer first.

Is it safe? Where your image is processed

Decoding, encoding and the preview all run inside your browser tab, in a background Web Worker where supported. The image is not sent to Image York or anyone else, and nothing is stored after you close or reload the page. The site itself still loads scripts such as analytics and ads, which are described in the Privacy Policy. There is no sign-up and no watermark.

Image compressor FAQ

What is an image compressor?

An image compressor is a tool that makes an image file smaller by storing its data more efficiently or by removing detail that viewers are unlikely to notice. Image York’s compressor does this in your browser for JPG, PNG and WebP images, measures how close the result is to the original and shows a before-and-after preview.

How do I compress an image online?

Open the Image York Image Compressor, add a JPG, PNG or WebP file and choose how much quality to keep. Check the before-and-after preview, then download. Most images take a few seconds, and everything happens on your device.

Is this image compressor free?

Yes. It is free to use with no sign-up, no watermark and no limit on how many images you compress one after another.

Can I compress images without losing quality?

Yes. Choose Lossless mode to keep every pixel; savings are modest. For much smaller files, Auto mode at Maximum or High changes the data so little that the result looks the same, and it checks this against the original. The Lossless Image Compressor does the pixel-perfect job for several files.

What quality setting should I use?

Leave it on Auto and High, which finds the right encoder setting for each picture. Use Maximum for prints, portraits and product photos, and Smaller file for thumbnails and backgrounds. In Manual mode, start at 80 and lower it until the Check panel or your eyes notice a difference.

Does image compression affect resolution?

No. Compression changes how the pixels are stored, not how many there are, so a 1920 × 1080 image stays 1920 × 1080. This compressor never changes the dimensions.

Which image formats can be compressed?

The Image York Image Compressor accepts JPG, JPEG, PNG, WebP, AVIF and BMP and saves to WebP, JPG or PNG. HEIC works in browsers that can open it, such as Safari. The Bulk Image Compressor can also save to AVIF where your browser supports it. GIF files need converting to JPG first.

Is an online image compressor safe?

It depends on where the processing happens. Image York compresses images inside your browser, so the image itself is not uploaded to a server and nothing is kept after you close or reload the page. With other online tools, check whether files are uploaded and how long they are stored.

Can I compress multiple images at once?

Yes, with the Image York Bulk Image Compressor. It applies one quality and format setting to every image and lets you download the results individually or as a single ZIP file. The standard compressor handles one image at a time so you can fine-tune each result.

How do I compress an image to a specific size, like 100 KB?

Use Reduce Image Size, where you type the limit and the tool finds a setting that fits, instead of trying qualities by hand. There are also ready-made pages for common limits such as 100 KB.

Does compressing images improve website speed?

Yes. Smaller images download faster, which can improve load times and Largest Contentful Paint when an image is the largest element on screen. For the biggest gain, also resize images to their display size, serve WebP or AVIF, and set width and height attributes.

What is the difference between JPG and PNG compression?

JPG uses lossy compression suited to photographs and has no transparency. PNG uses lossless compression that keeps every pixel and supports transparency, making it better for logos, text and screenshots but much larger for photos.

Is WebP better for image compression?

For most website images, yes. WebP usually produces smaller files than JPG or PNG at similar visual quality, supports transparency and works in all current major browsers. JPG remains safer for email attachments, older software and upload forms that only accept JPG.

Why is my compressed file larger than the original?

It happens when you choose a format that does not suit the picture, such as PNG for a photo, or a high Manual setting for an image that was already compressed. Set the mode and format to Auto: for a JPG, PNG or WebP original it keeps your image data when nothing smaller is good enough.

How large can the image be?

Up to 210 megapixels on a device with 8 GB of memory or more, 120 on most others and 64 on devices with little memory, as reported by your browser. Very large photos are compared in strips to save memory and take longer, about a minute for 66 megapixels on a desktop computer.

Does compressing remove the GPS location from my photo?

Yes. EXIF data, including GPS coordinates, is not kept in the compressed file. You can confirm with the Image Metadata Viewer.

My compressed photo looks blocky. What should I do?

Choose the Maximum level, or raise the Manual slider until the blocks disappear in the preview. Look at smooth areas such as skin and sky, where they show first. If you need a small file and a clean look, make the photo smaller in pixels with the Image Resizer instead.