JPG is a compressed image format that makes photos smaller without losing much visible quality
A JPG (or JPEG) file is a way of storing a photograph or image on your computer. It compresses the image — shrinks the file size — by removing some detail your eye usually cannot see. A photo that might be 50 megabytes as an uncompressed file can become 2 or 3 megabytes as a JPG, which means it loads faster, takes up less storage, and is easier to email or upload.
The tradeoff is that JPG compression is lossy, meaning information is thrown away and cannot be recovered. If you compress a JPG, save it again, and compress it again, the image gets blurrier and blockier each time. For finished photos you are sharing or printing, this does not matter much. For images you plan to edit many times, it matters a lot.
JPG files are named with the extension .jpg or .jpeg — both mean the same thing. You will see them everywhere: on websites, in email attachments, in your phone's photo library, and in print shops.
Key Takeaways
- JPG compresses photos to a fraction of their original size, making them fast to load and straightforward to share.
- The compression removes detail permanently, so JPG is best for finished images, not for files you will edit repeatedly.
- You can control how much JPG compresses by adjusting the quality setting when you save — higher quality means larger files.
- JPG works well for photographs and complex images with many colors, but PNG is better for graphics with solid colors or text.
How JPG compression works and why it matters for your workflow
When you save an image as JPG, the software analyzes the photo and decides what detail to keep and what to discard. It focuses on keeping the colors and shapes your eye notices most, and throws away subtle variations in tone that you would not see anyway. A blue sky with slight gradations becomes a more uniform blue. A person's skin tone becomes smoother. The file shrinks dramatically.
The quality slider you see in most image editors — often labeled 0 to 100, or Low to High — controls how aggressive this compression is. A quality setting of 90 keeps most detail and produces a larger file. A setting of 60 removes more and produces a smaller file. For web use, 70 to 80 is usually the sweet spot: the image looks good on screen, and the file is small enough to load quickly.
The problem arises when you edit a JPG, save it as JPG again, and repeat. Each save throws away more information. After three or four rounds of editing and saving, the image becomes noticeably degraded — you will see blocky artifacts and color banding. This is why photographers and designers who edit images keep a working copy in a lossless format like PSD (Photoshop) or PNG, and only convert to JPG when the image is finished.
JPG versus PNG: which format to choose
The choice between JPG and PNG depends on what you are storing. JPG is best for photographs and images with many colors and gradual tone shifts — anything that looks like a real-world scene. PNG is better for graphics, logos, screenshots, and images with solid colors or sharp edges, because PNG does not lose detail and handles transparency (see-through areas) better than JPG.
A photograph of a landscape is smaller and looks just as good as a JPG. A logo with a white background and black text will look blurry as a JPG and crisp as a PNG. A screenshot of your desktop with windows and text is clearer as a PNG. If you need the image to have a transparent background — so you can place it over other images without a white box around it — PNG is your only choice. JPG cannot handle transparency.
File size also differs. A JPG photograph might be 500 kilobytes. The same image as PNG could be 2 or 3 megabytes. For web use, where speed matters, JPG usually wins for photos. For print or archival, where quality matters more than file size, PNG or an uncompressed format is safer.
Where you will encounter JPG files and how to open them
JPG is the default format for digital cameras, smartphones, and most online photo services. When you take a photo on your phone, it saves as JPG. When you read an image from a website, it is usually JPG. Social media platforms like Instagram and Facebook accept JPG uploads. Print shops expect JPG files for photographs.
Opening a JPG is straightforward — any image viewer, web browser, or photo editor can open it. On Windows, right-click the file and choose "Open with" to pick an process. On Mac, double-click it and it opens in Preview by default. In Photoshop, Lightroom, GIMP (free), or any other image editor, go to File > Open and select the JPG. You do not need special software.
If you want to edit a JPG, open it in an image editor, make your changes, and save it. Most editors will ask you what format to save in — choose JPG again if you are done editing, or choose PNG or PSD if you plan to edit it more later.
Quality settings and file size: finding the right balance
When you save an image as JPG, your editor presents a quality or compression slider. Understanding what these numbers mean helps you make the right choice for your use case. A quality of 95 to 100 preserves nearly all detail but produces large files — useful only if file size is not a concern. A quality of 80 to 90 is good for images you want to look excellent on screen or in print. A quality of 60 to 75 is standard for web use — the image looks good, and the file loads quickly. A quality below 60 starts to show visible artifacts and is rarely worth the space savings.
Test by saving the same image at different quality levels and comparing them on your screen. You will quickly see where the quality drops become noticeable to your eye. For most photographs, you will find that 75 to 85 is the point where the image looks good and the file is reasonably small. For images with fine detail — like a landscape with distant trees or a portrait with skin texture — you may want to go higher.
When to convert other formats to JPG
You might have an image in another format — PNG, TIFF, BMP, or GIF — and need to convert it to JPG. This is common when you are preparing images for the web or for a print shop that specifically requests JPG. The process is straightforward: open the file in any image editor, go to File > Export As (or Save As), choose JPG from the format menu, set your quality, and save.
Be aware that converting a PNG with a transparent background to JPG will fill the transparent areas with a solid color, usually white or the background color your editor is set to. If you need to preserve transparency, keep the file as PNG. If the image has text or sharp lines, converting to JPG may make them slightly fuzzy — this is the compression at work. For photographs, the difference is usually invisible.
Some online tools like CloudConvert or Convertio let you upload a file and convert it to JPG without installing software, though uploading your images to a third-party site carries privacy considerations. Most image editors do the job just as well and keep your files on your own computer.
Frequently Asked Questions
Can I make a JPG file smaller without losing quality?
Not without losing some quality — that is the nature of JPG compression. You can reduce the file size by lowering the quality setting, but the image will become slightly softer or blockier. For web use, this trade-off is usually worth it. If you need the smallest possible file with the best quality, experiment with quality settings between 70 and 80.
What is the difference between .jpg and .jpeg?
There is no difference. JPG and JPEG are the same format with two different file extensions. JPEG is the original, longer name (Joint Photographic Experts Group). JPG is the shorter version that became common on Windows systems. Use whichever your software offers — they are interchangeable.
Why does my JPG look blurry after I edit and save it?
Each time you save a JPG, compression removes more detail. If you edited it multiple times and saved it as JPG each time, the image degraded with each save. To avoid this, open the JPG, make all your edits, and save only once as JPG. Or keep a working copy in PNG or PSD format and only convert to JPG when you are finished.
Should I use JPG or PNG for images I am uploading to a website?
Use JPG for photographs and complex images with many colors — the file will be smaller and load faster. Use PNG for logos, graphics, screenshots, or any image with text or sharp edges. If the image needs a transparent background, PNG is required.