Hafiz Khalid · hmsk.life

Image Compressor

Compress and resize images without uploading them

For anyone who emails photos, sells on Kleinanzeigen, eBay or Vinted, or posts on social media. Drop photos in, make them smaller in pixels and KB, and remove the exact place they were taken, which phone photos carry. Everything happens in your browser.

Runs
In your browser
Signup
Not needed
Licence
MIT, open source
Topic
Files and documents
  1. 1.

    Use it free

    Open it in your browser. The first result needs no signup.

  2. 2.

    Run it yourself

    Open source under MIT. Take the code to your own server.

  3. 3.

    Stay in touch

    One email when it gets a new feature. Nothing else.

Screenshot of Image Compressor in the browser, with example data: Compress and resize images in your browser, and see and strip GPS, camera and date from photos. Nothing is uploaded. (open the full-size image)
Fig. 1: Image Compressor with example data.

What it does

  1. Shows what each photo gives away before you clean it: GPS position (with altitude and direction), phone or camera model, lens, serial number, owner name, date and time, editing software, embedded preview image, XMP and IPTC blocks.
  2. Removes all of it: every photo is redrawn from its pixels, so the new file has no EXIF, no GPS, no XMP or IPTC and no comments. Each result is read back and marked "checked: no EXIF, no GPS" before you download it.
  3. Keeps photos the right way up: the camera's rotation is applied to the pixels, so nothing ends up sideways once the orientation tag is gone.
  4. Resize presets for Kleinanzeigen, eBay, Vinted, Instagram and email, or your own longest side. Small photos are never enlarged.
  5. Quality slider with before and after size per photo and in total; convert between JPEG, WebP and PNG.
  6. Many photos at once, download one by one or all as a ZIP. Works offline once loaded; the page is not allowed to send anything over the network.

Why I built it

Every photo a phone takes at home carries the GPS position of that home. Most people who sell on Kleinanzeigen or Vinted do not know that, and most online compressors want you to upload the photo to their server first, which is the opposite of private. So I built one that shows you what is inside, removes it on your own device, and makes the files small enough for the listing in the same step.

Hafiz

Limits. HEIC photos from iPhones open in Safari. Chrome, Firefox and Edge cannot decode HEIC without a large add-on, which this tool does not load; the metadata is still shown, and setting the iPhone camera to "Most Compatible" saves JPEG instead. Colours are converted to sRGB. The filename itself is not changed beyond "-clean", so rename files that contain personal details.

Run it on your own server

Static files, no build step and no dependencies. Any web server works; tests run with Node.js 20+ (npm test).

Stack
HTML, JavaScript
Licence
MIT
git clone https://github.com/Shazi1212/hmsk-image-compressor.git

Also for your files

Guides on this topic

Newsletter

Hear when Image Compressor gets better.

One email when Image Compressor or another tool gets a real update. A few times a year, no tracking.