TanodTools
EN

Compress image

Compress photos locally by quality or a target size, such as 20 to 50 KB for a form. Target size uses JPEG by default; nothing is uploaded.

Your files never leave your device

Drop images here

PNG, JPEG, WebP, GIF, BMP or AVIF. Or drag them anywhere on this page.

Opened on this device. Nothing is uploaded.

Up to 50 images per batch, 50 MB each, about 100 megapixels each. PNG, JPEG, WebP, GIF, BMP and AVIF (where your browser can open them).

How to compress an image

  1. Choose your images, or drag them onto the page.
  2. Choose Quality or Target size. For a form limit, set the maximum and optional minimum in KB; allow smaller dimensions only if the form permits them.
  3. Press Compress, check the sizes, then download the files or a .zip.

How image compression works here

Most of an image file's size is pixel data. JPEG and WebP shrink it by discarding detail the eye is least likely to miss; the quality setting decides how much is discarded. PNG is lossless, so its size depends on how predictable the pixels are. Reducing a PNG to a palette of at most 256 colours makes the data far simpler to compress, at the cost of exact colour.

Your browser decodes each image, draws it to a canvas and re-encodes it. Palette PNGs use UPNG.js. Quality mode keeps the original if it is smaller; Target size always exports the chosen JPEG or WebP and checks the requested range.

Tips

  • Large photos shrink most when you also reduce their dimensions: try Resize image first, then compress.
  • Need a different format? Convert image handles PNG, JPEG and WebP.
  • To strip location and camera details without recompressing, use Remove EXIF.

For batches and automation: POST https://tanod.dev/v1/image/compress (max_bytes), USD 0.003/call.

Questions

Can I compress a photo to 20 to 50 KB?

Choose Target size, set a maximum of 50 and a minimum of 20. The result shows exact bytes, quality and pixels, and says if it misses the range. Check your form’s pixel and format rules too. A file below the minimum is never padded; Target size may produce a file larger than the original.

Which quality should I pick?

For photos, 70 to 85 usually gives a clearly smaller file that looks the same at normal viewing size. Lower values save more space but show blockiness around edges and in smooth skies. For a single image the page shows the centre of the original and the result side by side at 100%, so you can judge it.

What does "Reduce colours" do?

It rewrites a PNG with a palette of 256, 128, 64 or 32 colours instead of millions. Logos, screenshots and flat illustrations often shrink a lot with no visible change. Photos and smooth gradients can show banding, so check the preview. It is lossy and applies only when the output is PNG.

Why did a file say "already optimised"?

In Quality mode: If the re-saved version would not be smaller than your original, the tool keeps your original file untouched instead of giving you something bigger.