How to Reduce Image File Size: JPG and PNG Without Visible Loss
To reduce an image's file size, do three things in order of impact: make the dimensions smaller if they are bigger than you need, compress it at a slightly lower quality, and choose the right format (JPG for photos, PNG for graphics). The free Compress JPG and Compress PNG tools do the compression in your browser, so nothing is uploaded.
A phone photo of 4000 × 3000 pixels is far larger than any screen needs. Cutting it to 1920 pixels wide and saving at around 75 percent quality usually shrinks the file a great deal with no difference you can see on a screen. The exact saving depends on the picture, so test with your own file.
Why Image Files Are Big
File size comes from two things: the number of pixels and how well they are stored. A JPG is stored lossy, with a quality setting; a PNG is stored without losing any detail, which is ideal for screenshots and logos but large for photos. So reducing size means fewer pixels, a lower quality setting, or fewer colors in a PNG.
How to Compress a JPEG Online
- Open Compress JPG and add your photos. It accepts JPG, PNG, WebP, HEIC, AVIF, BMP and TIFF, and the output is a JPG.
- Choose Compress by:
- - Quality: a slider from 10 to 95 percent. The tool's default of 75 percent is a strong choice for web and email; below 50 percent, blockiness can show in smooth areas like sky.
- - Target size: enter the maximum size in KB (presets for 50 KB, 100 KB, 200 KB, 500 KB, 1 MB and 2 MB). The tool searches for the highest quality that fits.
- For a target size that is very small, tick Shrink dimensions if needed, which scales the image down when even low quality is too big.
- Optionally set a Max width or height (from 800 to 4096 px). The tool notes that smaller dimensions are the biggest saving of all, and 1920 px is plenty for screens and email.
- Download the compressed copies. Your original file is not changed.
If the input is already JPG, its dimensions are unchanged, and the new encoding would be as large or larger, the tool returns the original bytes instead. That size safeguard does not apply when converting from another format or changing dimensions. An unchanged original can still contain metadata; compression is not a privacy scrub.
When a Target KB Size Cannot Be Reached
Target size is a search, not an unconditional guarantee. The tool tries JPEG quality settings and, when allowed, smaller dimensions. If shrinking is disabled and even the lowest tested quality is too large, it returns the smallest attempted result with a warning. Read that warning and check the downloaded size before uploading to a strict form.
For example, an application might require both a readable 1000-pixel-wide scan and a maximum of 100 KB. Lowering quality enough to meet the byte limit could make small letters unreadable. Start from the original, crop unnecessary margins if permitted, and test a moderate size reduction. If the requirements remain incompatible, ask the recipient for an alternative rather than submitting an illegible file.
The tool interprets each KB as 1024 bytes. Some uploaders use decimal kilobytes, where 100 KB means 100,000 bytes instead of 102,400. Set a slightly lower target if a file just below the displayed limit is rejected. A rejection may also concern the format, dimensions or filename, so read the full error message instead of repeatedly recompressing the same copy.
How to Compress a PNG
- Open Compress PNG and add the files. It accepts PNG, WebP, GIF, BMP, TIFF, SVG and AVIF.
- Choose Colours:
- - Lossless re-compresses without changing a pixel. The tool estimates 0 to 15 percent savings, more for PNGs from screenshot tools.
- - 256, 128, 64 or 32 colours reduces the image to a palette. The tool estimates 50 to 80 percent savings, keeps transparency, and warns that smooth gradients can show banding at 64 colours or fewer.
- Optionally set a max width or height, then download.
Palette reduction is ideal for logos, icons, diagrams and screenshots. For photographs saved as PNG, the bigger win is usually converting to JPG. Use Compress JPG, which accepts PNG and outputs JPG, but remember JPG does not support transparency.
Resize First for the Biggest Saving
If your image is much bigger than where it will be shown, resize before compressing. Resize Image can set an exact width, and how to resize an image shows the options. As a rough guide, a width of 1920 px is plenty for full-screen viewing and 1200 px for most web pages, but check the requirements of the site or form you are uploading to.
Reduce Image Size on Each Device
iPhone
- In Mail, attaching a photo lets you send it at Small, Medium, Large or Actual Size.
- In Files, press and hold a photo, then choose Quick Actions > Convert Image and pick a size.
- For a specific KB target, open Compress JPG in Safari and choose the photo from your library. If the photo is HEIC, the tool converts it to JPG.
Android
Open Compress JPG in Chrome, choose the photo, set a quality or a target KB, and download. Messaging apps often compress photos automatically, but the result is not predictable.
Windows
Paint can resize (Resize and skew, Ctrl + W) and Save as JPEG, which reduces the size, but it has no quality setting or KB target.
Mac
In Preview, open File > Export, choose JPEG, and drag the Quality slider. The estimated file size shows beneath it. Tools > Adjust Size shrinks the dimensions.
How Low Can You Go?
| Goal | What to try |
|---|---|
| Email attachment | Max side 1920 px, quality 75 percent |
| Web page image | Max side 1200 to 1600 px, quality 70 to 80 percent |
| Form upload with a KB limit | Target size mode (for example 100 KB or 200 KB) |
| Logo or screenshot (PNG) | Colours 128 or 256, then check for banding |
| Photo saved as PNG | Convert to JPG with Compress JPG |
A Practical Workflow
- Decide where the image will be used. A web page, an email and a form upload each have different needs, and the form usually states a maximum size in KB or MB.
- If the photo is straight from a phone or camera, choose a max width or height based on its destination. High-density displays, zooming and print can need more than 1920 pixels; do not discard those pixels from your master copy.
- Compress with quality 75 percent, or use target size if there is a hard limit.
- Compare the result with the original at 100 percent zoom. Look at skies, skin and text, where compression shows first. If it looks blocky, raise the quality a little.
- Keep the original. Compression is lossy, so you cannot get the lost detail back from the compressed copy.
For a batch, add all the files at once. Each file is compressed with the same settings and downloaded as its own copy, so spot-check one or two before you send them.
JPG, PNG or WebP?
- JPG is the best choice for photographs. It is small and universally supported, but has no transparency.
- PNG keeps every pixel and supports transparency, so it suits logos, screenshots and diagrams. Photos saved as PNG are often several times larger than the same photo as JPG.
- WebP is usually smaller than either at similar quality and is supported by current browsers, but some older apps and upload forms still reject it. When a form asks for JPG, give it JPG.
Things to Watch For
- Repeated compression. Each JPG save loses a little. Always compress from the original.
- Metadata. Photos can carry location and camera data. To remove it, use Remove EXIF Data, or read how to remove metadata from photos.
- Print needs. Low-resolution images can look bad printed. Keep the original for print.
- PDFs too. If the large file is a PDF, see how to reduce PDF file size.
Frequently Asked Questions
How do I reduce an image size in KB?
Use Compress JPG in target size mode, enter the maximum KB, and it finds the highest quality that fits. If that is still too big, allow it to shrink the dimensions.
How do I compress a JPEG without losing quality?
JPEG compression is lossy, so some data is always lost, but at around 75 to 92 percent quality the loss is hard to see. Reducing the dimensions is the lowest-risk way to make the file much smaller.
Is it better to resize or compress?
Resize first if the image is larger than you need, since fewer pixels means a much smaller file. Then compress for the last bit of saving.
Why is my PNG so large?
PNG stores every pixel without loss, which suits graphics but not photos. Reduce the number of colours in Compress PNG, or convert photos to JPG.
Are my images uploaded when I compress them?
No. The tools run in your browser, so the files stay on your device.
Free tools
Related Posts
How to Convert PNG to JPG (and JPG to PNG) on Any Device
How to convert PNG to JPG and change JPG to PNG on Windows, Mac and iPhone, what happens to transparency and quality, and how to convert a whole batch at once.
TutorialHow to Convert WebP to JPG (and Open WebP Files)
How to convert WebP to JPG on Windows and Mac, how to open WebP files, why browsers keep saving images as WebP, and how to convert a batch without uploading.
TutorialHow to Compress a Video Without Losing Quality (Free)
How to compress a video for email, Discord or WhatsApp: shrink an MP4 to a target size in your browser, or use QuickTime, Clipchamp, HandBrake or ffmpeg.
Ready to organize your files?
Try AI renaming right away. No sign-up needed until you download.
Try It Free