A JPEG is a compressed image file 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 stores a photograph or image by compressing the data — removing some information to make the file smaller — so it takes up less space on your device and uploads or downloads faster. When you take a photo on your phone, email a picture, or download an image from the web, it is usually a JPEG.

The trade-off is that JPEG compression is lossy, meaning it permanently discards some image information to shrink the file. You cannot get that information back. For photos of people, landscapes, and everyday scenes, the loss is invisible to the human eye — you see a sharp, clear picture. For images with sharp lines, text, or solid colors, the compression can leave visible blurriness or artifacts around the edges.

JPEG files end with the extension .jpg or .jpeg (both mean the same thing). A typical smartphone photo is 2 to 5 megabytes as a JPEG, whereas the same image stored without compression could be 20 to 50 megabytes.

Key Takeaways

  • JPEG is a compressed image format designed for photographs, where some data is removed to make files smaller.
  • The compression is invisible in most photos but can create blurry edges in images with text or sharp lines.
  • JPEG files are smaller and faster to share than uncompressed formats, which is why cameras and phones use them by default.
  • You can control how much compression happens when you save a JPEG, trading file size for image quality.

How JPEG compression works

JPEG compression analyzes your image in blocks and removes details that the human eye is less likely to notice. It keeps sharp edges and overall color information but discards fine texture details and subtle color gradations. The more you compress a JPEG, the smaller the file becomes — but the blurrier and more pixelated it looks.

When you save a photo as a JPEG in most programs, you choose a quality level, usually on a scale from 1 to 100. A quality setting of 90 or higher looks nearly identical to the original and produces a file around 1 to 2 megabytes. A setting of 60 to 70 is visibly compressed but still acceptable for web use and email. A setting below 50 shows obvious artifacts and should be avoided unless file size is critical.

Every time you open a JPEG, edit it, and save it again, the compression happens a second time. This repeated compression degrades the image further with each save. For this reason, photographers and designers keep an uncompressed copy (usually in TIFF or RAW format) and only convert to JPEG when sharing or publishing.

JPEG versus other image formats

Different image formats serve different purposes. PNG files use lossless compression, meaning no information is discarded — the file is smaller than an uncompressed image but larger than a JPEG of the same photo. PNG is better for images with text, logos, or solid colors because it preserves sharp edges. GIF files are limited to 256 colors and are mainly used for simple animations or very small images.

TIFF files store images with little or no compression and are used by photographers and print professionals who need the highest quality. WebP is a newer format developed by Google that compresses images more efficiently than JPEG while keeping quality higher, but not all devices and browsers support it yet. RAW files are unprocessed data directly from a camera sensor and are used only by photographers during editing.

For everyday use — photos on your phone, images for social media, pictures to email — JPEG is the standard because it balances quality and file size. For web graphics, logos, or images that need a transparent background, PNG is the better choice.

When to use JPEG and when to use something else

Use JPEG for photographs, portraits, landscapes, and any image with many colors and gradual color changes. JPEG files are widely supported on every device, website, and email service, so you know the recipient will be able to open it. Most cameras, phones, and social media platforms default to JPEG because it works everywhere.

Use PNG instead if your image contains text, logos, icons, or areas of solid color. PNG preserves the sharpness of these elements. Use PNG also if you need a transparent background — JPEG does not support transparency and will fill transparent areas with white or another solid color.

If you are a photographer or designer working on an image you plan to edit multiple times, save your working copy in TIFF or your camera's native RAW format. Only convert to JPEG when you are finished and ready to share or publish. This prevents quality loss from repeated compression.

How to open and convert JPEG files

JPEG files open in any image viewer, web browser, or photo editing program. On Windows, right-click the file and select "Open with" to choose an application. On Mac, double-click the file and it opens in Preview by default. On phones and tablets, tap the file and it opens in your default photo app.

To convert a JPEG to another format, open it in an image editor. In Windows, the built-in Photos app can save as PNG or other formats. On Mac, Preview can export to PNG, TIFF, or PDF. Free online tools like Convertio or CloudConvert let you upload a JPEG and download it as PNG, WebP, or other formats without installing software. Paid programs like Adobe Photoshop, Affinity Photo, or GIMP (free) offer more control over compression and quality settings.

If you need to convert many files at once, batch conversion tools can process an entire folder. ImageMagick is a command-line tool for advanced users. XnConvert is a free graphical program that converts hundreds of images in one operation.

File size and storage considerations

A typical JPEG photo from a smartphone is 2 to 5 megabytes. A high-resolution JPEG from a digital camera can be 5 to 15 megabytes depending on the camera and compression setting. Thousands of photos can fit on a modern phone or computer, but they still consume storage space and slow down backups.

If you are running low on storage, you can reduce file size by lowering the JPEG quality setting when you save. You can also use cloud storage services like Google Photos, OneDrive, or iCloud to store photos off your device. Some of these services offer "compressed" or "standard" quality options that further reduce file size in exchange for slightly lower visual quality.

For long-term archival, JPEG is acceptable for most purposes, but be aware that the compression is permanent. If you think you might want to edit or enlarge a photo years from now, keep an uncompressed backup alongside the JPEG.

Frequently Asked Questions

Can I make a JPEG file smaller without losing quality?

Not without losing some quality — that is the nature of JPEG compression. You can reduce file size by lowering the quality setting when you save, but the image will become slightly blurrier. You can also crop the image to remove unnecessary areas, which reduces both dimensions and file size. For the smallest possible file with acceptable quality, experiment with quality settings between 70 and 85.

What happens if I save a JPEG multiple times?

Each time you open a JPEG, edit it, and save it again, the compression is applied again. This repeated compression degrades the image, creating visible blurriness and artifacts. To avoid this, edit your image in an uncompressed format like TIFF or PSD, then export to JPEG only when you are finished.

Why do some JPEGs look blurry or pixelated?

The image was saved with a low quality setting, or it was compressed multiple times. Low quality settings remove more data to make the file smaller, which causes visible blurriness and blocky artifacts. If you received the file from someone else, you cannot improve it — the lost data is gone. If you created it, re-export from your original uncompressed file with a higher quality setting.

Is JPEG safe to use for important documents or archives?

JPEG is acceptable for photographs and images but not ideal for documents with text or for long-term archival. For documents, use PDF or PNG to preserve text sharpness. For archival, keep an uncompressed backup (TIFF or RAW) alongside the JPEG, since JPEG compression is permanent and cannot be reversed.

Do all devices and websites support JPEG?

Yes. JPEG is the most widely supported image format across all devices, operating systems, web browsers, and email services. If you need to share an image with someone and are unsure what format to use, JPEG is always a safe choice.