What JPEG artifacts are
JPEG artifacts are the visible flaws that appear when a JPG is compressed too hard: blocky patterns in smooth areas, blurry "dirt" around sharp edges, and color fringes along contours. They aren't a defect in your photo — they're the price of JPG's lossy compression, which discards image information to save space. The stronger the compression, the more visible the damage.
Why they happen
JPG splits an image into small 8×8-pixel blocks and simplifies each one, dropping fine detail the eye supposedly won't miss. At high quality that's invisible. At low quality the simplification becomes obvious:
- Blocking: the 8×8 blocks become visible as a grid, especially in skies and gradients.
- Ringing: ghostly halos around hard edges — most visible on text and logos.
- Color bleeding: colors smear across edges because JPG stores color more coarsely than brightness (chroma subsampling).
The biggest cause: re-saving
The most common way artifacts pile up is re-saving. Because JPG is lossy, every save discards more information and adds new artifacts. Open a JPG, tweak it slightly, save again — and it's a little worse. Over many rounds a photo turns visibly mushy. The fix: start from the original, edit once, export as JPG once. Keep the untouched original (or a lossless copy) for further edits.
How to avoid artifacts
- Use enough quality. Quality ~80 is the sweet spot: nearly invisible loss, still small. Don't push far below 60 for important images.
- Right format for the content. Text, logos and screenshots belong in PNG, not JPG — JPG produces exactly the fringes those need to avoid.
- Edit once, from the original. Avoid the re-save cascade.
- Resize before compressing. Smaller dimensions need less aggressive compression to hit a target size.
Can you remove existing artifacts?
Honestly: not really. Once JPG has discarded information, it's gone — no filter brings it back. A light "de-artifact" filter can soften the blockiness, but at the cost of overall sharpness, and it never restores the lost detail. The only real fix is to re-export from a clean source. That's why avoiding artifacts at save time matters more than trying to repair them later.
The chroma-subsampling special case
If red text or a colored logo looks smeared even at high JPG quality, the culprit is chroma subsampling — JPG storing color at lower resolution than brightness. The answer isn't more quality but the right format: save such graphics as PNG, where every pixel keeps its full color. For photos with soft gradients, subsampling is invisible and saves space; it only bites on hard color edges.
💡 Tip: Compress JPG browser-locally with a quality slider and live preview — you see exactly where artifacts start, and the file isn't uploaded.
In short
JPEG artifacts come from over-compression and pile up with re-saving. Keep quality around 80, use PNG for text and graphics, edit once from the original — and don't count on repairing artifacts after the fact.