ToolsXpo
ToolsXpo

Image Compressor

Shrink JPEG, PNG, WebP and AVIF images by quality or down to a target size — in batches, with a before/after preview, without uploading anything.

Output

How much smaller, and in what format.

75
SmallerSharper

Resize

Optional. Never enlarges; keeps the aspect ratio.

Processed on your device. Your images are never uploaded — this page works offline once loaded.

Drop images here, paste, or click to choose

JPEG, PNG, WebP, AVIF, GIF · HEIC in Safari · up to 50 at once

Add images to start. Every change to the settings re-runs instantly, so you can watch the size move.

Do this from code

The same compression over the API, up to 10 images per call, billed per megapixel.

# Upload a file, get the converted file back
curl -X POST "https://tools.toolsxpo.com/v1/image-compressor?output=binary" \
  -H "Authorization: Bearer $TOOLSXPO_API_KEY" \
  -F file=@photo.jpg \
  -F quality=75 \
  -o result.jpg

# Or by URL / base64, as JSON (up to 10 with "images": [...])
curl -X POST https://tools.toolsxpo.com/v1/image-compressor \
  -H "Authorization: Bearer $TOOLSXPO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"imageUrl":"https://example.com/photo.jpg","quality":75}'

Repeat -F file=@… for a batch of up to 10 (returned as a ZIP), or send imageUrl / base64 image as JSON. API reference · Get a key