compress image or reduce image size in kb

Upload an image and Compress it to kb in seconds.

Result Preview
Download

Example with Numbers

Let’s use the headshot image dimensions (1000x1500 pixels) and assume it’s a JPEG with an original file size of 500 KB.

First Call: resizePercentage=10

  • New Dimensions:
    • Width = 1000 * 0.1 = 100 pixels
    • Height = 1500 * 0.1 = 150 pixels
    • New dimensions = 100x150 pixels
  • Pixel Count:
    • Original: 1000x1500 = 1,500,000 pixels
    • New: 100x150 = 15,000 pixels
    • New pixel count is 1% of the original (15,000 / 1,500,000 = 0.01).
  • File Size:
    • Since the pixel count is reduced to 1%, the file size will drop significantly. For a JPEG, with image.Quality = 80, the file size might drop to ~5-10 KB (a 98-99% reduction from 500 KB), depending on the image content and compression settings.
  • Interpretation:
    • The dimensions are indeed 10% of the original (width and height are each 10%).
    • The pixel count (area) is 1% of the original.
    • The file size is likely much less than 10% of the original (e.g., 1-2% of the original 500 KB).

Misconception Clarified

It seems there might be a misunderstanding about what "10% of the original image" means in terms of resizing:

  • Dimensions: A resizePercentage=10 reduces each dimension (width and height) to 10% of its original value.
  • Pixel Count (Area): Because both dimensions are scaled by 0.1, the total pixel count is reduced to 0.1 * 0.1 = 0.01 (1%) of the original.
  • File Size: The file size reduction will typically be much greater than 10%, because file size is more closely tied to pixel count (which drops to 1%) and the compression settings.

If you wanted the pixel count to be 10% of the original (rather than 1%), you would need to scale the dimensions by the square root of 0.1 (approximately 0.316). For example:

  • To make the pixel count 10% of the original:
    • New area = 10% of original area = 0.1 * (width * height)
    • Scale factor for each dimension = sqrt(0.1) ≈ 0.316
    • New width = 1000 * 0.316 ≈ 316 pixels
    • New height = 1500 * 0.316 ≈ 474 pixels
    • New pixel count = 316 * 474 ≈ 149,784, which is ~10% of 1,500,000.

Rate this tool

Was this tool useful? Your feedback helps us improve it.

No ratings yet — be the first to rate this tool.
Your rating (required)
0 / 2000

Please do not include passwords, payment details or other sensitive information.

Your feedback is sent privately to the A2Z.Tools team and will not be posted publicly.

Quick answer

Upload an image, and the compressor reduces its file size while preserving visual quality, then gives you the smaller file to download.

Key facts

  • Only supports JPG, PNG, and GIF input formats
  • JPEG images are compressed using a fixed quality setting (quality 80)
  • PNG images are compressed via color quantization (reduced to 256 colors)
  • Image metadata (such as EXIF data) is stripped from the output as part of compression
  • Free to use, no signup required

What is this tool?

The image compressor shrinks JPG, PNG and WEBP files so they load faster on websites and fit within upload limits, applying optimised encoding that keeps the picture looking sharp.

How to use it

Upload a JPG, PNG, or GIF image; the server automatically applies the appropriate compression for that format and returns a smaller file for you to download.
  1. Upload a JPG, PNG, or GIF image.
  2. The server compresses it using format-appropriate settings.
  3. Review the compressed result.
  4. Download the smaller file.

Example

Example: uploading a 5MB JPEG photo typically returns a visually similar image at a meaningfully smaller file size, due to the applied JPEG quality setting.

How it works

Your uploaded image is sent to A2Z Tools' server, where the ImageMagick.NET library strips metadata and applies format-specific compression: JPEG images are re-encoded at quality level 80, while PNG images are quantized to a 256-color palette; GIF images are compressed using ImageMagick's standard handling. The result is streamed back to your browser.

Common use cases

  • Speeding up web pages by shrinking hero and gallery images
  • Fitting images under email or form upload limits
  • Saving storage space for photo archives

Benefits

Free, fast, and automatically applies sensible compression settings without manual configuration.

Limitations

Compression is lossy for photographic formats: extreme size reduction can introduce visible artefacts. Already-optimised images may shrink only slightly.

Privacy & your data

Your image is uploaded to our server for compression and returned to you. Avoid uploading images that contain sensitive personal information.

Frequently asked questions

What image formats does this tool accept?
Only JPG, PNG, and GIF images are supported -- other formats will be rejected.
Can I control the compression quality?
JPEG images are compressed at a fixed quality level (80) and PNG images are quantized to 256 colors; there is currently no adjustable quality slider.
Does compression remove my photo's metadata?
Yes. Metadata such as EXIF data (which can include camera information) is stripped from the image as part of the compression process.
Is this tool free to use?
Yes, it's free with no signup required.

Last reviewed: