JPEG compression artifacts are visible distortions that appear when an image is compressed too aggressively. The main search phrase jpeg compression artifacts covers several distinct problems: a jpeg blocky image where 8x8 pixel blocks become visible, mosquito noise jpg around sharp edges, and color banding jpeg in smooth gradients. Learn what each artifact looks like, why it happens, and which setting to change to avoid it.
Blocking the 8x8 Grid Effect
JPEG encodes images in 8x8 pixel blocks. At low settings, the boundaries between these blocks become visible as a checkerboard or grid pattern. This is the most common artifact and the first sign that compression was too aggressive.
Why Blocking Appears
Each 8x8 block is compressed independently. When the setting is low, the quantization step discards too much detail, making the edges between blocks stand out. The result is a jpeg blocky image where smooth areas look like they are made of small squares.
Preventing Blocking
- Increase the setting when saving the JPEG. A higher value eliminates visible blocking.
- If you are compressing a screenshot or image with text, use PNG or save with 4:4:4 chroma subsampling instead of the default 4:2:0.
- Always start from the original file. Re-saving a JPEG repeatedly adds new artifacts each time (generation loss).
Ringing and Mosquito Noise
Ringing, also called mosquito noise jpg, appears as speckles or halos around sharp edges and text. It looks like small dots or ripples near high-contrast boundaries.
This artifact happens because JPEG compression cannot perfectly represent sharp transitions. The algorithm tries to approximate the edge, but at low settings the approximation produces scattered pixels around it. The effect is most noticeable on text, logos, and fine lines.
To reduce ringing, use a higher setting. If the image contains text or logos, save as PNG or use 4:4:4 subsampling to preserve sharp edges. Artifacts cannot be fully removed afterwards; re-compress from the original file instead.
Color Banding in Gradients
Color banding jpeg appears as visible steps or stripes in smooth gradients such as skies, sunsets, or soft shadows. Instead of a smooth transition, the image shows distinct bands of color.
This happens because JPEG compression reduces the number of colors in an area. When the setting is low, the quantization step discards subtle color differences, leaving only a few distinct shades. The banding is more visible in large areas of similar color.
Preventing Color Banding
- Increase the setting to preserve more color information.
- If the image has large gradients, save as PNG, which uses lossless compression.
- Avoid repeated re-saving of JPEGs, as each save adds new artifacts.
Chroma Subsampling and Color Bleeding
Chroma subsampling stores color information at a lower resolution than brightness. The most common scheme, 4:2:0, reduces color resolution by half horizontally and vertically. This causes color bleeding on sharp colored edges, where colors appear to smear beyond their boundaries.
This artifact is often mistaken for ringing, but it affects color rather than brightness. It is most visible on text with colored backgrounds or on logos with fine colored details.
To prevent color bleeding, save images with 4:4:4 subsampling (no subsampling) when the image contains sharp colored edges. Text, logos, and screenshots avoid these artifacts when saved as PNG or with 4:4:4 subsampling.
Generation Loss from Repeated Saving
Every time you open and re-save a JPEG, the compression algorithm is applied again. This process adds new artifacts on top of the existing ones, a phenomenon called generation loss. The image degrades with each save, even if you use the same setting.
Preventing Generation Loss
- Always keep an original uncompressed or lossless copy of your image.
- Edit and re-compress only from the original file, never from an already compressed JPEG.
- If you need to make multiple adjustments, do them all in one session and save the final result once.
Practical Settings to Avoid Artifacts
When you save a JPEG, the main control is the setting. Higher values preserve more detail and produce fewer artifacts. Lower values show blocking, ringing, and banding.
For images with text, logos, or screenshots, choose PNG or JPEG with 4:4:4 chroma subsampling. For photographs, a higher value avoids visible artifacts while keeping file size reasonable.
If you need to shrink a JPEG, PNG, or WebP image online, use a tool like compressjpeg.onl to re-compress from the original file and adjust settings before saving.