How to Compress a JPEG to a Specific File Size Online
Compress a JPEG to a target size such as 50 KB, 100 KB, 200 KB or 1 MB online: set quality, resize pixel dimensions and check the result before you upload it.
Upload forms, job portals and application systems often cap image size at a fixed value: 20 KB for a signature, 50 KB or 100 KB for a passport-style photo, 200 KB to 500 KB for a profile picture, or 1 MB to 3 MB for a document scan. This guide explains how to bring a JPEG under a specific limit with an online compressor, and what to change when the quality setting alone is not enough.
Before you start
Read the upload requirements in full before compressing anything. Besides the maximum file size, many forms also specify required pixel dimensions, an aspect ratio, a minimum file size or an accepted file format. Meeting the size limit with the wrong dimensions will still get the image rejected.
Leave a small margin below the limit. Some systems count a kilobyte as 1,000 bytes and others as 1,024 bytes, and compressors may round the displayed size. A file that a tool shows as exactly 100 KB can therefore be refused by a form that allows up to 100 KB.
Find out where the processing happens. Some online compressors work entirely inside your browser, while others upload the image to a server. You cannot tell which from the page design alone, so check the tool's privacy statement and any information about how long uploaded files are kept. For sensitive images such as ID photos, signatures or scanned documents, prefer a tool that states it processes files locally, or use an image editor installed on your own device.
Keep the original file. JPEG compression is lossy: detail removed when saving cannot be recovered. Always compress from the original rather than from an already compressed copy, so each new attempt starts from full quality.
- The original image file, kept unchanged
- The exact size limit and any required pixel dimensions or aspect ratio
- The accepted file format for the upload form
- A compressor whose file handling you have checked
Step-by-step instructions
- Open the compressor and load a copy of the original image.
- If the tool offers a target size option, enter a value slightly below your limit and let it choose the quality automatically. Not every compressor has this option.
- If there is no target size option, lower the quality setting in small steps and watch the reported output size after each change.
- If the image only reaches the limit with obvious blocks or smearing, return to a higher quality and reduce the pixel dimensions instead. Keep the aspect ratio locked so the picture is not stretched.
- If the tool lets you remove metadata, turn that on. Camera information, location data and embedded thumbnails add bytes without adding visible quality.
- Download the result under a new file name so the original is not overwritten.
File size depends mostly on the number of pixels and the amount of fine detail in the picture. Generous targets such as 1 MB, 3 MB or 10 MB can usually be met from a typical camera photo by lowering quality alone. Mid-range targets such as 200 KB, 250 KB or 300 KB often need a moderate resize as well. Small targets such as 50 KB, 30 KB, 20 KB or 15 KB generally require noticeably smaller pixel dimensions, and very small targets such as 10 KB or 4 KB are realistic only for small images like thumbnails or signatures.
Settings worth knowing
- Quality: the main compression control. Lower values give smaller files and more visible artifacts. Scales differ between tools, so the same number does not produce the same result everywhere.
- Target size: the tool searches for a quality value that lands under the size you enter. It cannot preserve detail that the target does not leave room for.
- Resize: reducing width and height cuts the pixel count and is usually the cleanest way to reach a small target.
- Chroma subsampling: stores colour at a lower resolution than brightness. It saves space but can blur fine coloured edges and small coloured text.
- Progressive encoding: changes how the image appears while loading and may change the file size slightly in either direction.
- Metadata removal: strips camera details and location data. Removing an embedded colour profile can shift colours slightly on some screens.
If your source is a PNG or another file format, note that JPEG does not support transparency. Transparent areas are filled with a solid colour, often white or black depending on the tool, so check the background after conversion. Screenshots with sharp text and flat colours also tend to show artifacts sooner as JPEG than photographs do.
Check the output
- Open the downloaded file's properties on your computer or phone and read the size in bytes, not only the rounded figure shown by the compressor.
- Confirm the pixel dimensions and aspect ratio match what the upload form requires.
- View the image at 100 percent zoom and look closely at faces, text, edges and smooth areas such as sky or plain walls.
- Check that the file extension is .jpg or .jpeg and that the tool has not saved it in a different format.
- If possible, try the actual upload before relying on the file.
Typical JPEG compression artifacts are visible square blocks, banding in smooth gradients and halos or ringing around high-contrast edges and text. They cannot be repaired afterwards. If they are unacceptable, go back to the original and try a smaller pixel size with a higher quality setting, or crop the image.
Common problems and next steps
The file is still over the limit
Reduce the pixel dimensions further, crop away areas you do not need and remove metadata. Busy backgrounds and image noise from low-light photos take many bytes to store, so a tighter crop or a plainer background can help considerably. For a black-and-white document or signature, saving in grayscale may also reduce the size, if the form accepts it.
The image looks blocky or blurry at 50 KB or less
Below roughly 100 KB, shrinking the image usually looks better than pushing quality very low at full size. Try a smaller width and height with a higher quality value, and compare both versions at the size the image will actually be displayed.
The website rejects a file that seems small enough
Check the other requirements: pixel dimensions, aspect ratio, minimum file size, accepted extension and sometimes the file name. If the file sits right at the limit, compress it a little further to cover the kilobyte difference described earlier.
The compressed file is larger than the original
This can happen when the original was already heavily compressed and the tool re-saves it at a higher quality. If the original already meets the limit, use it as it is. Otherwise, lower the quality or reduce the dimensions until the new file is actually smaller.
Compressing several photos to the same size
Some compressors process several files at once. Because each picture contains a different amount of detail, the same quality setting produces different file sizes, so check every output file against the limit rather than assuming the whole batch passed.