27tools logo
PNG, JPG, WEBP, AVIF, GIF Target KB or MB Pixel resize

Image size tool

Compress and resize images

Drop in images, set exact pixel dimensions or keep the original size, choose a target in KB or MB, and export smaller files locally in your browser.

Current result

Waiting for images Add one or more supported image files to start compressing.
No file

Queue

Images ready to optimise

Local browser processing
No images queued Add images to resize and compress them.

Results

Compressed downloads

No compressed files yet Your downloads will appear here after compression.
Add PNG, JPG, WEBP, AVIF, or GIF files to get started.

How to compress an image to a target file size

Need a smaller image for a website, email attachment or upload form? Set a target in KB or MB and use the image compressor to balance file size, pixel dimensions and output format. Check the finished image before using it, especially when small text or fine detail matters.

  1. Add the images you want to compress.
  2. Enter your target file size and choose KB or MB. The target applies to each image separately.
  3. Enter a width or height if you want to resize the image, keeping the aspect ratio locked to avoid stretching it.
  4. Choose WEBP, JPG or PNG, then select Compress images.
  5. Review the final file size and pixel dimensions, then download the results.

Compression and resizing: what changes?

Compression changes how image data is stored. Resizing changes the number of pixels in the image. Both can reduce file size, but smaller pixel dimensions also mean less detail is available when the image is enlarged.

To work towards your target, this tool may reduce pixel dimensions further than your starting settings. Always check the dimensions shown in the result if an upload form requires a specific width and height.

Example: preparing an image for a 200 KB limit

Add your image and choose a target slightly below 200 KB, such as 190 KB. Select a format the destination accepts, then compress and check the download. Leaving a little headroom helps when another website measures or rounds file sizes differently. If it also specifies pixel dimensions, check both requirements before submitting.

Image compression questions

Can I compress an image to exactly 100 KB or 200 KB?

The target is a size limit to work towards, rather than an exact output size. The result can be smaller, or remain above the target if the available adjustments cannot reach it. Review any above-target warning before downloading.

Which output format should I choose?

JPG is a practical choice for photographs when transparency is unnecessary. WEBP is useful for web images when the destination accepts it. PNG is useful for transparent artwork and crisp graphics, although it can produce larger files. Start with the formats your website or upload form supports.

Will reducing file size affect image quality?

It can. Stronger lossy compression can soften detail or introduce artefacts, while reducing dimensions removes pixels. Compare the output at its intended display size. If the result looks too soft, try a larger target size.

Why is my compressed image still above the target?

Detailed images, large dimensions and the chosen format can make a very small target difficult to reach. Try another accepted format, smaller starting dimensions or a higher limit if the destination allows it. PNG output does not respond to a lossy quality setting in the same way as JPG or WEBP.

Are my images uploaded to 27tools?

No. The compressor processes the selected images in your browser. Your image files do not need to be sent to 27tools for compression.

If one of these tools helped you, feel free to support 27tools ☕

Buy me a coffee

More Tools