XTools Logo
XTools
Blog
/
Image CompressionImage Format ConversionBackground RemovalImage MosaicImage ResizerCrop ImageRotate & Flip ImageBlack & White ImageAdd Text & WatermarkAdd Border to ImageShape CropCollage & Image StitcherBlur BackgroundChart MakerBlur Part of ImageGIF MakerAdjust Image ColorsMeme GeneratorTrim Transparent EdgesStraighten PhotoSplit Image into TilesSquare ImageRemove Photo MetadataPlaceholder ImageDevice Mockup & Screenshot BeautifierSocial Share Image (OG)Code ScreenshotSignature Maker

© 2026 XTools. All rights reserved.

Privacy PolicyContact Us

    Image Compression

    Compress image file size
    • Files never leave your device
    • Runs in your browser
    • Free, no sign-up, no watermark

    Drop images here, or click to choose

    Accepts JPG, PNG, WebP, AVIF, JXL, QOI, HEIC, GIF, BMP, TIFF · You can also paste with Ctrl+V / ⌘V

    Related tools

    • Image Format Conversion
    • Background Removal
    • Image Mosaic
    • Image Resizer
    • Crop Image
    • Rotate & Flip Image
    • Black & White Image
    • Add Text & Watermark
    • Add Border to Image
    • Shape Crop
    • Collage & Image Stitcher
    • Blur Background
    • Chart Maker
    • Blur Part of Image
    • GIF Maker
    • Adjust Image Colors
    • Meme Generator
    • Trim Transparent Edges
    • Straighten Photo
    • Split Image into Tiles
    • Square Image
    • Remove Photo Metadata
    • Placeholder Image
    • Device Mockup & Screenshot Beautifier
    • Social Share Image (OG)
    • Code Screenshot
    • Signature Maker

    How to use Image Compression

    Make JPG, PNG, WebP, AVIF and other images smaller in your browser, one file or a whole batch. Set a quality level, or enter a maximum file size and let the tool find the highest quality that fits. A before/after slider shows the difference before you download.

    1. 1

      Drop your images on the page or click to choose them. JPG, PNG, WebP, AVIF, JXL, QOI, HEIC, GIF, BMP and TIFF are accepted.

    2. 2

      Under Output format, keep Same or pick JPG, WebP, AVIF, JXL, PNG or QOI.

    3. 3

      Under Compression, choose Quality and set the slider, or choose Target size and pick a Maximum file size such as 200 KB, or enter your own with Custom.

    4. 4

      Optional: turn on Limit dimensions to set a Max width and Max height, and click an image in the list to compare it with the original.

    5. 5

      Images are recompressed as soon as you change a setting. Click Download, or Download all (ZIP) when there are several.

    Frequently asked questions

    Are my images uploaded to a server?

    No. The encoders (MozJPEG, OxiPNG, WebP, AVIF, JPEG XL) run in your browser as WebAssembly, so your images never leave your device.

    How do I get a photo under 100 KB or 1 MB for an upload form?

    Choose Target size, then pick a preset from 20 KB to 2 MB or enter a Custom size in KB or MB. The tool searches for the highest quality that fits and counts 1 KB as 1,000 bytes. With Shrink dimensions if needed on, it also scales the image down when lower quality alone isn't enough.

    Which output format gives the smallest files?

    Usually AVIF, but it encodes slowly. WebP is typically 25–35% smaller than JPG at the same quality and opens almost everywhere. JPEG XL looks excellent, but few browsers can display it yet.

    Why did my PNG barely get smaller?

    PNG output is lossless: OxiPNG repacks the data without changing any pixels, so there is no quality setting. For a big reduction, switch Output format to WebP or JPG, or turn on Limit dimensions.

    Are EXIF data and GPS location removed?

    Yes. By default camera details, the capture date and GPS location are stripped. Turn on Keep EXIF data to keep them; this works for JPG, WebP and PNG output.

    What happens to HEIC, GIF and animated images?

    With Same selected, HEIC, GIF, BMP and TIFF are saved as JPG, or as PNG if the image has transparency. Animated GIFs keep only their first frame, so this tool is not meant for shrinking animations.