Loona Automation - Loona Image Compressor logo

Free Image Compressor — Compress to an Exact Size

Loona Image Compressor — shrink JPG, PNG and WebP images to the exact size you need, convert formats and resize in batch. Everything happens privately in your browser: your images are never uploaded anywhere.

100% FreeNo UploadNo SignupNo WatermarkBatch + ZIP Download
🖼️
Drop your images here, or click to browse
JPG, JPEG, PNG and WebP — add one or many at once. You can also paste an image with Ctrl+V.
Higher = better looking, bigger file. Lower = smaller file.
If set, Loona auto-finds the quality/size that fits — the slider is ignored.
Converting PNG → JPG or WebP usually saves the most.
Leave empty to keep original dimensions. Aspect ratio is always kept.
JPG has no transparency — transparent areas are filled with this color.
0
Images
0 B
Original Size
0 B
Compressed Size
0%
Total Saved

🔒 100% private: compression happens inside your browser with JavaScript. Nothing you add is uploaded to any server — close the tab and everything is gone.

How to compress an image in 3 steps

  1. Add your images — drop them in the box above, browse, or paste. One image or a whole batch.
  2. Choose your settings — move the quality slider, or type an exact target size like 50 KB, pick an output format and optional resizing.
  3. Download — save images one by one, compare before/after with the compare view, or download everything together as a ZIP.

Why professionals use Loona Image Compressor

🎯

Exact target size

Forms and portals demand “photo under 50 KB” or “signature under 20 KB”. Type the number — Loona hits it automatically, no trial and error.

🗂️

True batch processing

Compress a whole folder of product photos, ID pictures or screenshots in one go and download them all as a single ZIP.

🔄

Format conversion

PNG to JPG, JPG to WebP, WebP to JPG — convert while you compress, with a background color of your choice for transparent images.

📐

Smart resizing

Cap width and height (for example 1920 px for web, 800 px for thumbnails) while the aspect ratio is preserved automatically.

🔒

Private by design

There is no server. Your CNIC scans, family photos and documents never leave your device — unlike upload-based compressors.

👀

Before / after compare

Slide between the original and the compressed image to check quality with your own eyes before you download.

Popular uses

Online application forms (jobs, admissions, visas) that reject photos above a fixed KB size; WhatsApp and social media sharing; e-commerce product images that must load fast; blog and website images for faster pages and better Google ranking; email attachments that are too large to send; and documents or ID scans that need to stay small and private.

Frequently Asked Questions

How do I compress an image to 50 KB?

Add your image, type 50 in the Target Size (KB) box — or tap the 50 KB chip — and Loona automatically finds the quality and dimensions that fit. The same works for 20 KB, 100 KB, 200 KB or any size you type.

Are my images uploaded to a server?

No. Loona Image Compressor runs 100% in your browser using JavaScript. Your images never leave your device, which makes it safe for personal photos, ID cards and documents.

Which formats are supported?

Add JPG, JPEG, PNG and WebP images, and export as JPG, PNG or WebP — including converting between formats, for example PNG to JPG or JPG to WebP.

Will compressing reduce image quality?

At sensible settings (quality 75–90%) the difference is almost invisible while the file often shrinks 60–90%. Use the compare view to check before downloading, and keep PNG format when you need pixel-perfect lossless output.

Is it really free? Any limits?

Yes — completely free, no signup, no watermark, no daily limit. The only limit is your own device's memory.

More free photo tools

Loona now includes a full set of free photo tools alongside the compressor — passport and visa photos, background changing, resizing, cropping, photo to PDF, color tools and more — 41 free tools in total. Like the compressor, every tool runs 100% in your browser: no signup, no watermark, and your photos are never uploaded.

🪪

Passport Size Photo Maker

Crop any photo to 35×45 mm or 2×2 inch at print-ready 300 DPI.

🇵🇰

NADRA / CNIC Photo Maker

Exact 350 × 467 px photo for Pak-ID online applications.

🛂

Visa Photo Maker

US, UK, Schengen and China visa photo sizes in one place.

🎨

Photo Background Changer

Turn a photo background white, blue or light gray.

✍️

Signature Background Remover

Remove the paper behind a signature or stamp — transparent PNG.

📝

Exam Photo with Name & Date

Add a name and date strip under your photo for board exams.

🖨️

Passport Photo Print Sheet

Put 4, 6 or 8 passport photos on one A4 sheet and print at home.

📐

Resize Image

Resize by pixels, cm or inches, with a print DPI setting.

✂️

Crop Image

Free crop plus ready ratios — 1:1, 4:3, passport and more.

📄

Photo to PDF

Turn one or more photos into a single PDF file.

🔄

Image Format Converter

Convert JPG, PNG and WebP both ways, with quality control.

✨

Photo Filters & Fix

Fix brightness, contrast and sharpness in seconds.

🪄

Image Enhancer

Auto enhance, sharpen and upscale photos up to 4x.

💧

Image Watermark

Add a text watermark — set size, color, opacity, position or tile it.

😂

Meme Generator

Classic top and bottom meme text on any photo, in seconds.

🔒

Face Blur

Blur or pixelate faces, plates and private details before sharing.

🎨

Color Picker

Pick any color and copy its HEX, RGB, HSL and HSV values.

🌈

Color Palette Generator

Harmonious palettes from any base color, in one click.

👁️

Contrast Checker

Check text colors against WCAG AA and AAA contrast rules.

🌅

CSS Gradient Generator

Build linear gradients and copy the CSS code instantly.

🔍

Image Metadata & EXIF Viewer

See the EXIF, GPS, camera and date data hidden inside any photo.

🧹

Remove Image Metadata

Strip EXIF, GPS and XMP from a photo — pixels untouched.

✏️

EXIF Editor

Edit a JPG's date taken, artist, copyright, make and model.

📍

Remove GPS from Photo

Delete only the location data and keep the rest of the EXIF.

🗂️

Bulk Metadata Remover

Strip metadata from many photos at once and download a ZIP.

Image format converters

One focused page for each conversion — the format pair is already chosen, so you just add your image and download. GIF and BMP files are welcome too, and SVG vectors render at any width you pick. Like every Loona tool, each converter runs 100% in your browser: nothing is uploaded.

🔁

PNG to JPG Converter

Turn PNG photos and screenshots into much smaller JPGs.

🔁

JPG to PNG Converter

Lossless PNG copies of your JPGs for editors and design tools.

🔁

JPG to WebP Converter

Shrink JPGs by 25–40% for faster websites.

🔁

WebP to JPG Converter

Make WebP images open everywhere as JPG.

🔁

HEIC to JPG Converter

Convert iPhone HEIC photos to JPG that opens everywhere.

🔁

PNG to WebP Converter

Smaller web graphics that keep transparency.

🔁

WebP to PNG Converter

Lossless PNG from WebP for editors and print.

🔁

GIF to PNG Converter

A clean lossless still image from any GIF.

🔁

GIF to JPG Converter

A small universal JPG still from a GIF.

🎞️

Video to GIF Converter

Turn an MP4 or WebM clip into an animated GIF, on your device.

🎞️

Loona GIF Maker

Create animated GIFs from your photos — free, in your browser.

🔁

BMP to JPG Converter

Shrink huge BMP files by 90% or more.

🔁

BMP to PNG Converter

Lossless PNG — the modern upgrade from BMP.

🔁

SVG to PNG Converter

Render vector logos as crisp PNGs at any size.

🔁

SVG to JPG Converter

Render SVG vectors as universal JPGs.

Compress image to an exact size

When a form states one exact limit, use the page for that limit: the tool searches automatically for the highest quality that fits — and tells you honestly if the dimensions had to be reduced to reach a very small target.

🎯

Compress Image to 10 KB

Hit the strictest signature and form limits automatically.

🎯

Compress Image to 20 KB

The classic 20 KB cap on job and exam forms.

🎯

Compress Image to 30 KB

Strict admission and exam photo limits, handled in one click.

🎯

Compress Image to 40 KB

Portal photo limits in the 40 KB range.

🎯

Compress Image to 150 KB

Application photos at full size, under 150 KB.

🎯

Compress Image to 300 KB

Listing and form photos with real detail, under 300 KB.

🎯

Compress Image to 500 KB

Email-friendly scans and images under half a megabyte.

🎯

Compress Image to 1 MB

Beat the classic “under 1 MB” upload rule.

🎯

Compress Image to 2 MB

High-quality images that fit a 2 MB limit.

Resize image to exact dimensions

When a platform states one exact pixel size, use the page for that size: crop to fill, fit inside with a background color, or stretch — the output is always exactly the dimensions you picked. Like every Loona tool, each resizer runs 100% in your browser: nothing is uploaded.

📏

Resize Image to 1920×1080

Full HD size for desktop wallpapers and YouTube end screens.

📏

Resize Image to 1280×720

HD size for YouTube thumbnails and HD video frames.

📏

Resize Image to 1080×1080

The Instagram square post size (1:1), exactly.

📏

Resize Image to 1080×1350

The Instagram portrait post size (4:5), exactly.

📏

Resize Image to 1200×628

The Facebook and LinkedIn link-share and ad size.

📏

Resize Image to 1500×500

The X (Twitter) header banner size, exactly.

📏

Resize Image to 800×800

Square product and marketplace listing photos.

📏

Resize Image to 512×512

App icon, avatar and favicon master size.

How it works

Your image never leaves your device. When you add a file, the browser decodes it locally — applying the orientation saved in the photo — and draws it onto a canvas at the size you allow: capped by the optional maximum width and height, with the aspect ratio always preserved. The canvas is then re-encoded in your chosen format. JPG and WebP use the quality slider (5–100%, set to 82% by default), while PNG is written losslessly, without a quality setting. If you set a target size instead, the tool first encodes at 92% quality and then runs a binary search between 5% and 92% to find the highest quality that still fits under your limit; if even the lowest quality is too large, it steps the dimensions down by 15% at a time until the file fits. For a PNG target, where there is no quality setting to adjust, it shrinks the dimensions in 20% steps instead. Because every output is a fresh re-encode, the original file’s metadata is not carried over. Finished images can be downloaded one by one or all together as a ZIP file.

Worked example

A job portal asks for a passport photo “no larger than 200 KB”, but the photo on your phone is a 3.9 MB JPG (4032 × 3024 pixels). Add the photo, tap the 200 KB chip — or type 200 in the Target Size box — and leave the output format on “Keep original format”. The compressor keeps the full 4032 × 3024 dimensions and automatically lowers the quality just enough: the downloaded photo comes out at or just under the 200 KB limit, ready to upload. The stats bar shows the original size, the new size and the percentage saved, and the compare view lets you inspect the result with the before/after slider before you download it.

Frequently asked questions

Can I compress a whole batch of images at once?

Yes. Add as many images as you like — by dropping them in, browsing, or pasting with Ctrl+V — then press Compress All. Every image is processed with the same settings, and the Download All (ZIP) button saves them together in one loona-compressed-images.zip file, each image renamed with a “-compressed” suffix.

What happens to transparent backgrounds?

PNG and WebP keep transparency. JPG cannot store transparency, so transparent areas are filled with the color you pick under “Background for JPG” — white by default. If a transparent logo or sticker must stay transparent, export it as PNG or WebP instead.

Does compressing remove the photo’s metadata (EXIF)?

Yes. The image is decoded and freshly re-encoded on a canvas, so EXIF data such as the camera model, GPS location and timestamps is not copied into the new file. The photo’s orientation is applied to the pixels themselves, so the compressed image still displays the right way up.

Why doesn’t the quality slider change my PNG’s size?

PNG compression is lossless, so browsers ignore the quality setting for PNG output — the slider only affects JPG and WebP. To make a PNG smaller, resize it with the Max width / Max height fields, convert it to JPG or WebP, or set a target size: the tool then reduces the PNG’s dimensions step by step until it fits.

Does “target size” mean the file will be exactly that size?

It means at or under. The tool searches for the highest quality whose result fits within your target, so the finished file is usually just a few KB below the number you typed — it is never padded up to it. If even the lowest quality at full size is still too big, the dimensions are reduced step by step until the file fits.

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.

Before / After

— move the slider to compare.

Original image
Compressed image
OriginalCompressed