Skip to main content

Lossless Image Compressor

Remove metadata blocks from a JPG, PNG or WebP file without re-encoding it, so every pixel stays exactly as it was. Savings depend on how much metadata the file carries.

Upload an image to compress

Drag and drop files here, or click to browse

Your images are processed in your browser and are not uploaded to Image York.
You retain full ownership of your images. Image York does not store or claim rights. View License

What "lossless" means on this page

Most compressors, including the Image Compressor on this site, decode your image and encode it again. Even at high quality that changes pixels. This tool does something narrower. It reads the file structure, copies the compressed image data exactly as it is, and leaves out the blocks that only hold information about the image:

  • JPG: EXIF (camera, settings, date, GPS), XMP, IPTC and Photoshop blocks, comments and other application segments.
  • PNG: text chunks (tEXt, zTXt, iTXt), EXIF (eXIf) and the modification time (tIME).
  • WebP: EXIF and XMP chunks, with the header flags updated so the file stays valid.

Because the image data is not decoded, the output decodes to exactly the same pixels as the input.

What is deliberately kept

  • Colour profiles (ICC in JPG, iCCP in PNG), because removing them can change how colours are displayed.
  • The JFIF header and Adobe colour-transform marker in JPG, which some decoders need to read colours correctly.
  • Orientation. Phones often store photos sideways with an EXIF tag saying how to rotate them. Removing that tag would make the photo display sideways, so when the original orientation is anything other than normal, the tool writes back a minimal EXIF block that holds only the orientation value. No camera, date or location data is included.
  • PNG resolution (pHYs), gamma and chromaticity chunks, which affect printing size and colour.

How much smaller will the file be?

Exactly as much as the metadata weighed, and no more. A photo straight from a camera can carry an embedded preview thumbnail inside its EXIF block, plus maker notes, and those can add up to a noticeable share of a small file. A PNG exported from a design app may carry long XMP or text chunks. A file that has already been through a web optimizer may have nothing to remove, in which case the tool says so and the output is identical to the input.

The result panel lists which kinds of blocks were removed, and the size comparison shows the reduction worked out as (original size minus new size) divided by original size.

If you need a much bigger reduction, lossless is the wrong tool. Lowering quality or dimensions with the Image Compressor or Image Resizer is what saves large amounts.

Lossless metadata removal versus the Remove Metadata tool

The Remove Image Metadata tool also strips EXIF, but it does so by redrawing the image on a canvas and saving it again, which re-encodes JPG and WebP at quality 0.92 and drops colour profiles. It accepts several files at once. This page handles one file, keeps the colour profile and never re-encodes. Use this one when pixel-exact output matters.

Limitations

  • Only JPG, PNG and WebP are supported. Other formats show an error.
  • Damaged files whose internal lengths do not add up are rejected rather than guessed at.
  • Some metadata lives inside the image data itself (for example, a watermark), and that is not touched.

Where the processing happens

The file is read and rewritten byte by byte in your browser. It is not uploaded anywhere. You can check the result in the Image Metadata Viewer, which also runs locally.

Questions about this tool

Will the image look any different?

No. The compressed image data is copied unchanged and the colour profile and orientation are kept, so it displays the same.

Why did my file not get smaller?

It had no removable metadata. Files saved by many web tools and social networks have already been stripped.

I want a smaller file but no loss in quality at all. Can this do that?

It makes the file smaller only by removing hidden information such as camera details and GPS location. The picture itself is not changed. How much you save depends on how much hidden information the file had.

Does this remove the GPS location from my photo?

Yes. EXIF data, including location, camera and date, is removed. You can check the result in the Image Metadata Viewer.

Will my phone photo turn sideways after removing the data?

No. If the photo relies on a rotation tag to show upright, the tool writes back a tiny block that holds only that rotation, with no camera, date or location data.

I need a much smaller file. Should I use this?

No. Removing hidden data usually saves only a little. For big savings, lower the quality with the Image Compressor or reduce the dimensions with the Image Resizer.