JPEG is a compressed image format that makes photos smaller without losing much visible quality
JPEG stands for Joint Photographic Experts Group, the committee that created the format in 1992. A JPEG file is a photograph or image that has been compressed — squeezed down in file size — using a specific method. When you take a photo on your phone or camera and it saves as a .jpg or .jpeg file, that's a JPEG. The format works by throwing away some of the image data your eye probably won't notice, which is why a JPEG photo of a landscape can be 500 kilobytes instead of 5 megabytes.
JPEG compression is lossy, meaning information is permanently removed when the file is saved. This is different from formats like PNG or TIFF, which keep all the original data. For photographs and realistic images, this trade-off usually works well — the file gets much smaller while the image still looks good on a screen or in print. For images with sharp text, solid colors, or fine details, JPEG is often the wrong choice.
Key Takeaways
- JPEG files are compressed photographs that take up less storage space than uncompressed formats, making them ideal for sharing photos online and via email.
- The compression removes some image data permanently, so saving over a JPEG multiple times degrades quality each time — always keep an original uncompressed version if you plan to edit.
- JPEG works well for photographs and realistic images but produces blurry results for text, logos, or images with solid color blocks.
- You can control how much a JPEG is compressed when you save it, trading file size against visible quality depending on where the image will be used.
How JPEG compression actually works
JPEG compression uses a mathematical process that identifies which parts of an image your eye is less sensitive to. Human vision is better at detecting brightness changes than color changes, so JPEG reduces color information more aggressively than brightness. It also removes fine details that would be hard to see at normal viewing sizes.
When you save a file as JPEG in Photoshop, Lightroom, or even your phone's photo app, you usually get a quality slider — often labeled 1 to 100, or Low to High. A quality setting of 90 removes less data and produces a larger file that looks nearly identical to the original. A quality setting of 60 removes more data, creates a smaller file, but may show visible artifacts — blocky areas or color banding — especially in smooth gradients or skies. There is no universal "best" setting; it depends on how the image will be used.
When JPEG is the right choice
Use JPEG for photographs, artwork with many colors and gradients, and any realistic image you plan to share online or email. A JPEG photo loads faster on a website than a PNG of the same image, which matters for page speed. JPEG is also the standard format for digital cameras and smartphones, so you are already working with it if you take pictures on those devices.
JPEG is also practical for archiving. If you have thousands of family photos, storing them as JPEG instead of uncompressed TIFF saves significant disk space while keeping the images visually identical for screen viewing and standard printing. Many cloud storage services and photo backup tools default to JPEG for this reason.
When JPEG is the wrong choice
Do not use JPEG for images with text, logos, or solid color areas. JPEG compression creates visible blurriness and color shifts around sharp edges, making text hard to read and logos look unprofessional. If you have a graphic with a white background and black text, PNG will preserve the crisp edges while JPEG will soften them.
Avoid JPEG if you plan to edit the image multiple times. Every time you open a JPEG, make changes, and save it again, the compression process runs again and removes more data. After five or ten rounds of editing, the image quality degrades noticeably. Instead, edit in an uncompressed format like PSD (Photoshop's native format) or TIFF, then export to JPEG only when you are finished and ready to share.
JPEG quality settings and file size
The relationship between quality and file size is not linear. Saving a photo at quality 95 might produce a 2 MB file, while quality 85 might be 800 KB — a much bigger drop than the 10-point difference suggests. Quality 75 to 80 is often a practical middle ground for web use: the file is small enough to load quickly, but the image still looks good on a screen.
For printing, higher quality matters more. A photo printed at 4x6 inches can look acceptable at quality 75, but an 8x10 print will show compression artifacts at that setting. If you are printing larger than 5x7, aim for quality 85 or higher. For web-only images, quality 70 to 75 is usually sufficient.
JPEG versus other common formats
| Format | Best For | File Size | Quality Loss |
|---|---|---|---|
| JPEG | Photographs, realistic images | Small | Lossy (permanent) |
| PNG | Graphics, text, images with transparency | Medium to large | Lossless (none) |
| TIFF | Professional printing, archival storage | Very large | Lossless (none) |
| WebP | Web images (newer browsers) | Small | Lossy or lossless |
| GIF | Animated images, simple graphics | Small | Limited colors |
How to save a file as JPEG
In Photoshop, go to File > Export As, choose JPEG from the format dropdown, and click Export. A dialog box appears with a quality slider — usually set to 8 or 9 out of 12 by default, which is roughly 65 to 75 on a 0-100 scale. Adjust the slider to your needs, then click Export again.
In Lightroom, select the photo, go to File > Export, choose JPEG from the Image Format dropdown, and set the Quality slider. Lightroom's scale goes from 0 to 100 directly. Most online photo editors (Canva, Pixlr, Photopea) have an Export or Download button that lets you choose JPEG and adjust quality before saving.
On a Mac, you can also right-click a photo in Finder, choose Quick Actions > Convert Image, and select JPEG as the format. On Windows, right-click and choose Open With > Photos, then use the Edit menu to export as JPEG. These built-in tools are simpler but offer less control over quality settings.
Frequently Asked Questions
Can I convert a JPEG back to its original uncompressed form?
No. Once a JPEG is saved, the removed data is gone permanently. You cannot recover it by opening the file in an editor or converting it to another format. If you need to edit a photo and keep high quality, always save the original uncompressed version (PSD, TIFF, or RAW) before exporting to JPEG.
Why does my JPEG look blurry or blocky?
You saved it at too low a quality setting, or you edited and re-saved it multiple times. Try re-exporting at quality 85 or higher. If the image was already compressed before you received it, increasing the quality setting will not recover the lost detail — it will only make the file larger without improving how it looks.
Is JPEG safe to use for important documents or photos I want to keep forever?
For long-term storage of photos you care about, use TIFF or PNG instead. JPEG is fine for everyday sharing and viewing, but if you are archiving family photos or important images, the lossless formats preserve every detail without any quality loss, even if you open and close the file thousands of times.
What is the difference between .jpg and .jpeg?
There is no difference. Both extensions refer to the same JPEG format. The .jpg extension became standard because older Windows systems limited file extensions to three characters. Modern systems accept both, and most software treats them identically.
Should I use JPEG for images I upload to social media?
Yes. Facebook, Instagram, and Twitter all compress images anyway, so starting with a JPEG at quality 75 to 80 is practical. The platform will re-compress it, so using a higher quality JPEG does not improve the final result — it just makes the upload slower. For maximum control, check each platform's recommended image dimensions and format before uploading.