JPG is a way to shrink photo files so they take up less space on your device
JPG (also written as JPEG) is a file format — a standard way of storing picture data that cameras, phones, and computers all understand. When you take a photo on your phone or camera, the device converts what the lens sees into a JPG file. The main reason JPG exists is to make photo files small enough to store thousands of them without filling up your device's memory.
JPG does this by removing some of the picture information your eye probably won't notice. It keeps the colors and shapes you care about and discards tiny details in the background or in areas where the light doesn't change much. This trade-off — smaller file size in exchange for slightly less detail — is why JPG became the standard format for photos everywhere.
You can recognize a JPG file by its name ending: .jpg or .jpeg. Both mean the same thing. When you email a photo, post it online, or see a picture on a website, it is almost always a JPG.
Key Takeaways
- JPG is a compressed format that makes photo files smaller by removing details your eye usually cannot see.
- Every time you save a JPG file, you lose a small amount of picture information permanently — this is called lossy compression.
- JPG works well for photographs and images with many colors, but not for text, drawings, or images that need to stay perfectly sharp.
- Other formats like PNG keep all the original information but create much larger files, while formats like GIF work better for simple graphics.
How JPG shrinks your photos without making them look broken
JPG uses a method called lossy compression. Think of it like this: if you have a wall painted in slightly different shades of blue, JPG will look at the whole wall and decide to call it all one shade of blue. Your eye sees the wall as blue either way, but the file that describes it is now much smaller.
The JPG format divides your photo into tiny squares and analyzes the color and brightness in each square. It then stores information about the overall color and brightness, but throws away the fine details within that square. When your device opens the JPG file, it reconstructs the image from this simplified information, and the result looks nearly identical to the original — especially on a phone or computer screen.
The trade-off matters most when you zoom in very close or when you print the photo large. A photo that looks fine on your phone screen might show blurry edges or color banding if you print it at poster size. This is why professional photographers often shoot in formats like RAW or TIFF, which keep all the original information, even though those files are ten to twenty times larger.
When JPG is the right choice and when it is not
JPG works best for photographs — images with many colors and gradual changes in light and shadow. A landscape photo, a portrait, or a sunset all compress beautifully as JPG files. You can shrink them to a fraction of their original size and they still look great on screens.
JPG is a poor choice for images with sharp edges, text, or areas of solid color. A screenshot of a document, a logo, or a simple graphic will look blurry or have visible color shifts when saved as JPG. For those, PNG format is better — it keeps all the original information and handles text and sharp lines cleanly. PNG files are larger, but for screenshots and graphics that is usually not a problem.
GIF format is designed for simple animations and graphics with very few colors. If you need to store a moving image or a cartoon-style picture, GIF might be more efficient than JPG. For everyday photos on your phone or camera, though, JPG is almost always what you are already using.
Why you can save a JPG file over and over and lose quality
Every time you open a JPG file, edit it, and save it again as JPG, you lose a little more information. This is because JPG compression happens each time you save. The second save is compressing an already-compressed version of your photo, which means the second round of compression removes details from what was already a simplified image.
If you edit a photo ten times and save it as JPG each time, the final version will look noticeably worse than the original. The edges will be softer, colors may look slightly off, and you might see small blocks or artifacts where the compression removed information.
To avoid this, professional editors save their working copy in a lossless format like TIFF or PNG, and only convert to JPG when they are finished and ready to share. If you are just taking photos with your phone or camera, this is not something you need to worry about — the device handles the compression once, when it creates the file.
How to control the quality when you save a JPG
Most photo software and phones let you choose a quality setting when you save a JPG. The setting is usually a number from 1 to 100, or a choice like "low," "medium," or "high." A quality setting of 90 or higher keeps almost all the detail and creates a file that looks nearly identical to the original — but the file is still much smaller than the uncompressed version. A setting of 60 or lower removes more information and creates a smaller file, but the photo starts to look noticeably softer or blotchy.
On your phone, you usually do not see this setting — the camera app chooses a quality level automatically, typically around 85 to 95. When you email a photo or upload it to social media, the app may compress it further to save bandwidth. This is why a photo that looks sharp on your phone screen might look slightly softer when you download it from an email or social network.
The difference between JPG and other common picture formats
PNG is a lossless format, meaning it keeps all the original information. PNG files are larger than JPG, sometimes two to three times larger, but they never lose detail no matter how many times you open and save them. PNG is the right choice for screenshots, graphics, and any image where sharp edges or text matter.
GIF is an older format designed for simple graphics and animations. It can only store 256 colors, so it is not suitable for photographs. GIF files are small and work well for animated images, but for a regular photo, JPG or PNG is always better.
TIFF is a professional format that keeps all the original information and is used by photographers and designers during editing. TIFF files are very large — often larger than the original uncompressed image — so they are not practical for everyday use or sharing online. You convert to JPG or PNG only when you are ready to share or print.
WebP is a newer format developed by Google that compresses photos more efficiently than JPG while keeping better quality. Some websites and newer phones support WebP, but JPG is still more widely compatible across all devices and platforms.
How to change a photo from JPG to another format
On Windows, right-click the JPG file and choose "Open with" and then "Paint." Once the image opens, click "File," then "Save as," and choose a different format from the dropdown menu. You can save as PNG, BMP, GIF, or TIFF. Click "Save" and the file will be converted.
On Mac, open the image in Preview (the default photo viewer). Click "File," then "Export," and choose the format you want from the "Format" dropdown. Enter a new filename if you want to keep the original, then click "Save."
On your phone, most photo apps do not let you change the format directly. Instead, take a screenshot of the image (which saves as PNG on most phones) or use a free online converter. Search "convert JPG to PNG" and upload your file to one of the many free conversion websites. Download the converted file to your phone.
Keep in mind that converting from JPG to PNG will not restore the detail that was lost during the original JPG compression. The new PNG file will be larger, but it will not look sharper than the original JPG. Converting is useful when you need a different format for a specific purpose, not for improving picture quality.
Frequently Asked Questions
Why does my camera save photos as JPG instead of PNG?
Cameras use JPG because it creates much smaller files. A single photo might be 3 to 5 megabytes as JPG but 15 to 20 megabytes as PNG. Since cameras have limited storage, JPG lets you fit thousands of photos instead of hundreds. The quality loss is invisible on a phone or computer screen, so the trade-off is worth it for most people.
Can I make a blurry JPG sharp again by converting it to PNG?
No. Converting formats does not restore lost information. If a JPG looks blurry because of compression, saving it as PNG will not make it sharper. The detail was removed when the JPG was created and cannot be recovered. You would need the original uncompressed file or to retake the photo.
What does the number in the filename mean, like "photo_2024.jpg"?
That is just the filename your camera or phone assigned to the file. The number usually represents the date or a sequence number. The ".jpg" at the end is what matters — that tells your device what format the file is in. You can rename the file to anything you want without changing the format.
Is JPG safe to use for important documents I want to keep?
JPG is not ideal for documents because text and sharp lines look blurry when compressed. For important documents, scan them as PDF or PNG instead. If you have already saved documents as JPG, they are still readable, but the text may be slightly softer than the original. For future documents, choose a format that does not compress.
Why do websites ask me to upload JPG instead of PNG?
Websites ask for JPG because the smaller file size means faster uploads and downloads for visitors. A website with thousands of photos loads much faster if each photo is a JPG instead of a PNG. The quality difference is not noticeable on a screen, so the speed gain is worth the small loss in detail.