Compress an image without uploading it
Most image compressors ask you to upload a file and wait. This one runs on your device. Choose a photo, enter the limit from the form, and pick JPG or WebP. The tool encodes the image, measures the result, and adjusts quality until the file fits.
If quality alone cannot reach the target, it reduces the dimensions and tries again. That is the same strategy a desktop compressor uses, but the image never leaves your browser. The result downloads with a clear before-and-after size comparison.
Compress vs. resize: which do you need?
Resizing changes the pixel dimensions. Compressing changes how many bytes are used to store those pixels. A 3000 × 2000 photo can be resized to 1500 × 1000, compressed at the same dimensions, or both.
If a form gives you a width and height, use the photo resizer. If it gives you a KB or MB limit, stay on this page or use the dedicated image resizer in KB. The compressor keeps dimensions as large as it can and only shrinks them when the byte target requires it.
Pick the right file-size limit
Start with the number on the form, not with a guess. Common targets are 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, and 2 MB.
Leave a little headroom under a hard cap: 48 KB for a 50 KB limit, 96 KB for 100 KB. A file that is slightly under the limit is safer than one that lands exactly on it and gets rejected by a system that rounds differently.
Format matters
JPG is the safest choice for photographs and strict upload forms. WebP often produces a smaller file at the same quality, but some older apps reject it. PNG is lossless and keeps transparency; it is a poor fit for a strict KB limit on a photograph, but the right choice for a logo or screenshot.
If you need to change format as well as size, the HEIC to JPG, WebP to JPG, PNG to JPG, and JPG to WebP converters handle that step. For JPG-specific byte limits, see 20 KB or 50 KB.
Keep the result readable
Start from the original file, crop out what does not matter, and choose the largest limit the destination accepts. A 20 KB photo of a busy scene will look rough; a 20 KB headshot against a plain background can look fine. Compression cannot recover detail that was never in the source.
Check the result at 100 percent zoom before submitting it. If it looks too soft, move up one target size or crop tighter; do not keep recompressing the downloaded file.