Compression artifacts are visible changes that can appear after an image goes through lossy compression. Look for square patches in shadows, pale halos around text, smeared texture, or abrupt bands in a smooth sky. To reduce them, go back to the cleanest source, export a fresh copy, and compare it at the size people will actually see. If you need a smaller download, try fewer pixels or a different accepted format before sacrificing more detail.
To investigate a noisy JPEG, try estimating its JPEG quality. Our beginner’s guide to compression explains what an encoder removes.
Identify the artifact before changing settings
Start by opening the original and the export side by side. Set both to the same zoom, and compare the same section of the image. If the issue only appears in the export, compression or resizing may explain it. If both copies show it, look earlier in the workflow, such as camera focus, sharpening, or a previous export.
| What you see | Where to look | First thing to try |
|---|---|---|
| Square patches | Dark walls, skies, and soft shadows | Export again from the original at a higher quality. |
| Bright or dark ripples | Text, branches, and high-contrast edges | Compare a less compressed export, or try PNG for graphics. |
| Smeared fine detail | Hair, grass, fabric, and distant signs | Check whether scaling or compression caused the loss. |
| Bands of similar colour | Skies, studio backgrounds, and gradients | Check the original first, then compare fresh exports. |
| Colour bleeding | Small coloured text and saturated red edges | Try PNG for artwork, or test an encoder that controls colour sampling. |
In practice, more than one artifact can appear in the same file. For example, a heavily compressed photo may show soft hair and square shadows. However, each area tells you something different about what the export changed.
What causes blocks, halos, and colour bleeding?
Blocks in shadows and skies
JPEG represents image detail in small blocks. When an encoder saves too little information, the borders between nearby blocks can stand out, especially in areas that should look smooth. For example, a grey wall may show a grid of slightly different patches after a strong JPEG export. To check, zoom in briefly and look for a repeating pattern. Then return to normal viewing size to decide whether it affects the final use.
Halos around lettering and hard edges
Lossy encoding can leave light or dark ripples near sharp transitions. For instance, a black label on a white package may pick up a faint outline that was absent from the source. However, sharpening can also create halos. Compare the same edge before and after exporting. If the original already contains a rim, adjusting JPEG quality alone will not remove it.
Colours that spread beyond their boundaries
Some lossy encoders store less detail in the colour information than in the brightness information. This method can work well for photography, but narrow coloured lines and small coloured text can reveal the trade-off. For example, red letters may look fuzzy even though black letters stay reasonably clear. If the image mostly contains text, charts, or interface graphics, compare a PNG version before lowering JPEG quality further. For format characteristics, see MDN’s image format guide.
Separate compression artifacts from other image problems
A blurry photo may have missed focus, moved during capture, or lost detail when someone reduced its dimensions. Similarly, jagged lines can result from a rough resize or enlargement. Colour bands can also come from earlier editing or the available range of tones. Look at the original first so you can fix the step that introduced the issue.
To isolate resizing, make two outputs from the cleanest source at the same target width and height. Then change only the format or quality setting. If one output looks sharper, that difference comes from how the two exports handle the image. Conversely, if both look soft in the same places, the source or the chosen pixel dimensions may set the limit.
A practical workflow to prevent visible damage
- Keep a clean source file. Work from the highest-quality copy you have. Repeatedly opening and exporting a JPEG can add damage, especially when an application uses aggressive settings.
- Frame the subject first. Use the Crop Image Online Free tool when unwanted margins or background take up space. Check the crop for important details near the edges.
- Choose the final dimensions. Use the Pic Resize Image resizer to resize image files for the intended placement. Keep the aspect ratio selected when you want to preserve the original proportions.
- Compare suitable formats. Next, try JPEG and WebP for photos if your destination accepts both. For clear interface text, export PNG as a comparison. Keep the crop and dimensions the same so that you can judge the format fairly.
- Review the published result. Finally, open the uploaded image on the destination site. A marketplace, messaging app, or content system may create another file after upload. If you spot an issue there, compare it with the file you originally uploaded.
When an upload cap forces a choice, try exporting slightly fewer pixels if the receiving platform allows it. That can preserve cleaner edges than using a very harsh quality setting at a much larger size. However, respect minimum dimensions and check the final image at the width where it will appear.
Two quick tests with real images
Test a product photo with dark fabric
Start with a photo of dark woven fabric next to a light backdrop. Export the photo at the target size twice with different quality settings. Then look at three areas: the soft shadow, the fabric texture, and the border against the backdrop. If the lower-quality version turns fine threads into broad patches, pick the clearer export or try another supported format. Because the brightest area may still look good, include dark and textured parts in the comparison.
Test a screenshot with small coloured labels
Take a screenshot of a screen with coloured labels or icons. Next, crop it to the area that explains the task and export at the width you intend to display. Compare a PNG with a JPEG at the same width. Read the smallest label at normal zoom before judging the file. If both remain readable, choose based on the destination’s requirements and the actual download sizes. If neither does, tighten the crop or show the interface in two screenshots.
Frequently asked questions
1. Can you remove artifacts from an existing JPEG?
You can sometimes soften the visible damage, but you cannot reliably recover detail that an earlier export discarded. If you have the original, create a fresh export from it.
2. Does converting a damaged JPEG to PNG fix it?
No. PNG preserves the pixels it receives, including the existing artifacts. However, using PNG for an original screenshot can avoid introducing lossy artifacts in the first place.
3. Why do artifacts appear after I upload a clean image?
The platform may resize or recompress the file as part of its upload process. Compare the downloaded original with the image served on the page, and check the platform’s recommended upload format and dimensions.
4. Is WebP free of compression artifacts?
Lossy WebP can show visible changes, especially at aggressive settings. Lossless WebP preserves the exported pixels, but it still cannot restore detail missing from the source or removed during resizing.
5. How much should I zoom in to check?
Start at the display size your reader will see, then zoom in to identify the cause if something looks off. Judge acceptance at the intended display size, because strong magnification can exaggerate seemingly minor differences.
6. How can text stay sharp in a small image?
Crop to the relevant text, keep enough pixels for each letter, and try PNG if the destination accepts it. If the screenshot includes too much information, split it into smaller views rather than shrinking all the labels together.
7. What if every smaller export looks bad?
Go back to the original and keep only the area people need. Then try a different supported format or reduce the dimensions within the destination’s rules. If the requirement allows, use a larger file where small text or fine detail matters.
Choose the clearest file that fits
Check the area that matters most to the reader, whether that’s a face, a product detail, or a short line of text. Then choose the smallest acceptable download that keeps that area clear. Finally, keep the source so you can make another export if the placement or upload limit changes.