JPEG artifacts are the faults heavy compression leaves in a photo: a grid of small squares in smooth areas, a fuzzy halo around sharp edges, and steps in what should be a smooth gradient of sky. JPEG artifact removal means smoothing those out while keeping the real edges. This page explains where they come from and how to clear them in your browser.
Where JPEG artifacts come from
JPEG keeps a file small by throwing detail away. It cuts the picture into blocks of 8 × 8 pixels and stores each block in a simplified form, keeping less of the fine detail the more the file is compressed. Colour is usually stored at lower resolution than brightness. The JPEG article on Wikipedia describes the method in detail.
That method explains each fault you see:
- Blocks. Each 8 × 8 block is simplified on its own, so at strong compression the edges between blocks show as a grid. It is most visible in sky, skin and walls.
- Halos and "mosquito noise". The fine detail around a hard edge is the first thing dropped, so a shimmer of specks appears beside lettering, branches and outlines.
- Banding. A smooth gradient breaks into flat steps.
- Colour smears. Because colour is kept at lower resolution, a strong colour can bleed past the edge of the object it belongs to.
Knowing which of these you see helps you choose how strong the JPEG artifact removal should be.
Why it gets worse with every save
Opening a JPEG and saving it again as a JPEG compresses it again, and loses a little more each time. A photo that has been sent through several messaging apps, posted, downloaded and reposted has usually been compressed several times over. That is why a photo forwarded around a family chat ends up blocky when the first copy was fine.
Two habits slow it down:
- Keep the first copy you have, and work from that rather than from a later download.
- Once a photo is cleaned up, save it as a PNG. PNG is lossless, so saving it again does not add new artifacts.
JPEG artifact removal in your browser
OpenPixels, a free photo enhancer, has a Noise and grain setting that also clears up the blocky edges left by heavy compression. It runs in your browser tab. The photo is not uploaded.
- Open openpixels.app and press Choose a photo. Use the earliest copy of the photo you have.
- Under Size, choose Same size, just cleaner to keep the size. If the photo is also small, choose 2× instead: enlarging and cleaning happen in the same run.
- Under Noise and grain, start with Reduce, the default.
- Press Enhance, then drag the slider across the picture to compare Original with Result. Look at the sky and around edges.
- If blocks are still visible, change Noise and grain to Remove and press Apply changes.
- Press Save the photo. You get a PNG, and your original file is left as it was. The first save asks you to sign in to a free account.
Reduce or Remove: how strong the JPEG artifact removal is
| Setting | Use it for |
|---|---|
| Leave it | A photo that is already clean, when you only want it larger. |
| Reduce | Most compressed photos. It is the setting the app starts on. |
| Remove | Heavy blocking, such as a photo that has been forwarded many times. It is the strongest setting, and can also smooth away fine texture such as skin or fabric, so compare before you save. |
The image denoiser page describes the same three settings for grain from low light.
What JPEG artifact removal cannot bring back
- Detail that was thrown away. Compression discards fine detail for good. Removal makes the photo look clean, but small features that are gone are gone.
- Text and numbers. Do not use it to recover lettering in a compressed screenshot or a scanned document. The model can change the shapes of letters and digits it cannot read, so an e can come back as an o, or a 9 as a 0. Retype the text from the clearest copy instead.
- Colour that has bled. Smears are softened, but a colour that has spread well past an edge may not return to its place.
JPEG artifact removal for many photos at once
For a folder of compressed photos, open Several at once, choose the photos and the settings once, and press Start. Every photo gets the same settings, one after another. Download all as a ZIP gives you the results in one file (it asks you to sign in to a free account), and Download the measurements a CSV with the numbers for each photo.
FAQ
What are JPEG artifacts?
The visible faults of heavy JPEG compression: blocks of 8 × 8 pixels, halos around edges, banding in gradients and colour smears.
Does JPEG artifact removal work on any photo?
It works best on photos, where blocks and halos sit over skin, sky and texture. It is not meant for text or numbers, which the model can change.
Can JPEG artifacts be removed?
They can be smoothed out so the photo looks clean, keeping the real edges. Detail the compression threw away cannot be recovered exactly.
Is JPEG artifact removal free here?
Yes. OpenPixels is free, with no watermark and no limit on how many photos you clean.
Is my photo uploaded?
No. It is processed inside your browser tab and saved back to your device. You can confirm it in the Network tab of your browser's developer tools.
What format should I save in after JPEG artifact removal?
PNG, which is what OpenPixels saves. It is lossless, so saving it again later adds no new artifacts.
Open OpenPixels and drop in a photo. More posts are on the blog.