Prepare an image for an upload limit
Enter the maximum file size. Then check format, dimensions and the actually achieved result.
- Runs in your browser
- No upload
- Check before download
1. Choose an image
JPG, PNG or WebP
File limits and details
One still image, up to 25 MiB and 64 MP. Animated images and other formats are not accepted.
Or drop images here. You can also focus this area and paste an image.
2. Set the requirements
1 KB = 1,000 bytes; 1 MB = 1,000,000 bytes.
Exact target: 500,000 bytes
Further requirements
Not specified: JPEG stays JPEG, WebP stays WebP, PNG becomes WebP. The planned output is shown here before you start.
Leave blank whatever your destination does not require. Contradictory dimensions block the start.
Under the limit does not automatically mean accepted by the portal. If your file already fits, you do not need to compress it again. Check text and small image details especially carefully.
A real JPEG under 200 KB
Try the same sample with JPG and a 200,000-byte maximum, or Etsy’s optional 1 MB troubleshooting settings. The sample is an original synthetic image made for Refentra with AI, not a customer photo.
In the recorded Chromium run, the 2,257,414-byte PNG became a 194,991-byte JPEG. Both are 1536 × 1024 px. The 1 MB example produced an 833,215-byte JPEG at the same dimensions. Different browser encoders can produce different byte counts; check your own result.
Original PNG · Actual JPEG under 200 KB · Actual JPEG under 1 MB
Technical details
The output format is fixed first; then at most 12 encodes are tried. JPEG and WebP try quality 35–100; PNG stays lossless and may reduce dimensions. Only the actual file size counts: 200,001 bytes miss a 200 KB limit, 200,000 bytes meet it.
Processing re-encodes the image once, upright in sRGB; EXIF, IPTC, XMP, ICC and orientation data are stripped by that re-encoding. When the original already meets every requirement, it is offered byte-identical with its embedded data unchanged.
Without a format requirement, JPEG stays JPEG, WebP stays WebP and PNG becomes WebP. A JPG requirement forces image/jpeg; transparent areas then need a confirmed background color. Explicit PNG output preserves alpha and may reduce dimensions; it cannot guarantee the byte ceiling.
Still seeing an upload rejection?
File size may be only one of the destination's rules. Use the image upload troubleshooting guide to check pixel dimensions and accepted formats before compressing the image again.
How to compress an image to a target size
- Choose your image
Pick a JPEG, PNG, or WebP file from your device.
- Set the target size
Enter a target size in KB or MB, select the output format, and optionally enable resize with your required dimensions.
- Compress and save
Start the compression and download the result once the target size is reached.
Frequently asked questions
What do 200 KB and an unmet target mean?
Here 200 KB means 200,000 bytes, not 200 KiB. For PNG input you can select PNG output: transparency remains and lossless re-encoding may reduce bytes. If that is too large, pixel dimensions are reduced and detail is lost. The byte limit is not guaranteed; an above-limit PNG cannot be downloaded.
Will the pixel dimensions change?
Not by default for JPEG and WebP. Explicit PNG output may reduce pixel dimensions to seek the byte limit; exact and minimum dimensions remain binding.
Which formats can I compress?
JPEG, PNG, and WebP inputs are supported. PNG input can explicitly request PNG output; JPEG and WebP are also available.
Is this the same as resizing?
The tool preserves dimensions by default. You can optionally combine resizing and target-size compression in one local job.
Tips & guides
Image upload size limits by platform
Step-by-step help for the task behind this tool, with sources and limits.
Read the guide