JPG is a compressed image format that stores photos and pictures in a smaller file size

JPG (or JPEG, which stands for Joint Photographic Experts Group) is a way of storing images that makes the file smaller by removing some detail from the picture. When you take a photo with your phone or camera, or download an image from the internet, it is often a JPG file. The format works by analyzing the image and discarding information your eye is unlikely to notice — usually fine details in areas of solid color or shadow.

JPG files are the standard format for photographs because they balance quality and file size. A photo that might take up 50 megabytes as an uncompressed image can often be stored as a 2 or 3 megabyte JPG with no visible difference to the human eye. This matters when you are uploading photos to social media, sending them by email, or storing thousands of images on your phone or computer.

You can open a JPG file in almost any program that displays images — your phone's photo app, your computer's default image viewer, web browsers, and design software like Photoshop or GIMP all read JPG files without any extra steps.

Key Takeaways

  • JPG is a compressed image format designed for photographs, making files smaller by removing detail your eye typically cannot see.
  • JPG files lose some information each time you save them, so editing and re-saving a JPG repeatedly degrades the image quality.
  • JPG works well for photos and complex images but produces visible artifacts in images with sharp lines, text, or solid colors.
  • Most cameras, phones, and websites use JPG as the default format because the file sizes are small enough to share and store easily.

How JPG compression works

JPG uses lossy compression, which means it permanently removes data from the image to make the file smaller. The algorithm breaks the image into small blocks and analyzes the color and brightness in each block. It then discards information that is less noticeable to human vision — typically fine detail and slight color variations in areas that are already similar in tone.

When you save a JPG file, you can usually choose a quality level, often shown as a number from 1 to 100 or as "low," "medium," and "high." A quality setting of 90 or higher produces an image that looks nearly identical to the original, while a setting of 60 or lower becomes noticeably blurry or blocky. Most cameras and phones default to a quality level around 75 to 85, which is a practical middle ground.

The trade-off is permanent: once you save an image as JPG, the removed information is gone. If you open that JPG file, edit it, and save it again as JPG, you lose additional detail with each save. This is why photographers and designers often keep an uncompressed copy (like a TIFF or RAW file) for editing and only convert to JPG when the image is finished.

When JPG works well and when it does not

JPG is excellent for photographs, artwork with gradual color changes, and any image with many colors and soft transitions. A landscape photo, a portrait, or a painting all compress well as JPG because the compression algorithm is designed around how photographs look.

JPG performs poorly on images with sharp edges, text, or large areas of solid color. A screenshot of a document, a logo, or a graphic with text will show visible blurriness or color banding (stripes of slightly different colors where there should be a smooth gradient). For these types of images, formats like PNG or GIF are better choices because they use lossless compression — they shrink the file without throwing away information.

If you are designing something with text or sharp lines, save it as PNG or keep it in your design program's native format (like PSD for Photoshop or XCF for GIMP). Convert to JPG only at the very end, if you need to share it in that format.

JPG versus other common image formats

FormatCompression TypeBest ForFile Size
JPGLossyPhotographs, complex imagesSmall
PNGLosslessGraphics, text, images needing transparencyMedium
GIFLosslessSimple graphics, animationsSmall (for simple images)
TIFFLossless or uncompressedProfessional photography, archivingLarge
WebPLossy or losslessWeb images (newer browsers)Very small

PNG files are larger than JPG but preserve every pixel of information, making them ideal for graphics and images where quality cannot degrade. GIF is an older format that works well for simple animations and small graphics. TIFF is used by photographers and publishers who need the highest quality and do not mind large file sizes. WebP is a newer format that compresses better than JPG while maintaining similar quality, but not all devices and programs support it yet.

How to convert images to and from JPG

Most image editing programs can open a JPG and save it in another format, or open another format and save it as JPG. In Photoshop, open the image, go to File > Export As, choose JPEG from the format dropdown, and click Export. You can then set the quality level before saving. GIMP (free software) works the same way: File > Export As, then choose JPEG and set the quality.

On Windows, you can right-click an image file, select "Open with," and choose Paint or Photos. Both programs have a "Save As" option where you can pick a different format. On Mac, Preview (the default image viewer) can open and save images in multiple formats — just open the image, go to File > Export, and choose the format you want.

Online conversion tools like CloudConvert or Convertio also work if you do not want to install software. Upload your image, select the format you want, and download the converted file. These tools are free for most conversions, though they may have limits on file size or number of conversions per day.

Why your camera or phone saves images as JPG

Cameras and phones default to JPG because it strikes a balance between quality and storage space. A phone with 128 gigabytes of storage can hold thousands of JPG photos but only hundreds of uncompressed images. JPG is also the format that every device, website, and program can open — there is no compatibility risk.

Professional cameras often offer a RAW format option, which stores all the information the camera sensor captured without any compression. RAW files are much larger and require special software to view and edit, but they give photographers maximum control during editing. Most people do not need RAW; JPG is sufficient for everyday photos, social media, and printing.

Frequently Asked Questions

Can I improve a JPG image that is already blurry or low quality?

No, not meaningfully. Once a JPG is saved, the information that was removed during compression is gone forever. Upscaling software can make a small image larger, but it cannot restore detail that was never saved. If you have the original uncompressed file or the camera's RAW file, you can re-edit and re-save at higher quality.

Why does my JPG look different on different devices?

Different screens display colors differently based on their settings, brightness, and calibration. A JPG file itself is the same everywhere, but how it appears depends on the device showing it. This is not a problem with the JPG format — it happens with all image formats.

Is JPG safe to use for important documents or archiving?

JPG is not recommended for long-term archiving or important documents because the compression is lossy and the format can degrade over time. For archiving, use TIFF or PNG. For documents with text, use PDF or PNG instead of JPG to preserve sharpness and readability.

What does the file extension .jpeg mean versus .jpg?

They are the same format. JPG is the three-letter abbreviation, and JPEG is the full name (Joint Photographic Experts Group). Both extensions refer to identical files — the difference is just how long the name is. Most modern systems use .jpg, but .jpeg is equally valid.

Can I edit a JPG file without losing quality?

Any time you open a JPG, edit it, and save it again as JPG, you lose additional quality. To minimize loss, make all your edits in one session and save only once. Better yet, edit in a lossless format like TIFF or your program's native format (PSD, XCF), then export to JPG only when finished.