What Is a .JPG File? (.jpg, .jpeg)
A .jpg or .jpeg file is a compressed photo in the JPEG format, the most widely supported image type in the world. It uses lossy compression to keep photos small, which makes it ideal for cameras, phones, email and the web, but it does not support transparency or animation.
- Extension
- .jpg, .jpeg
- Full name
- Joint Photographic Experts Group image
- Type
- Image file
- MIME type
- image/jpeg
- Developed by
- Joint Photographic Experts Group
About JPG files
JPEG compression throws away detail the eye is unlikely to notice, then stores the rest efficiently. At high quality settings a 12-megapixel photo is typically a few megabytes; at lower settings it can shrink to a few hundred kilobytes, at the cost of blocky artifacts around edges and text. The quality level is chosen when the file is saved and cannot be recovered later.
The .jpg and .jpeg extensions are exactly the same format. The three-letter version comes from old Windows and DOS systems that limited extensions to three characters, and both are still accepted everywhere. Renaming one to the other changes nothing about the file.
JPEG files carry rich EXIF metadata: camera model, lens, exposure, the date taken and often GPS coordinates. That is useful for sorting photos but can reveal where a picture was taken, so consider stripping location data before posting images publicly. Every time a JPEG is edited and re-saved it is recompressed, so repeated editing slowly degrades quality; keep an original or work in a lossless format such as PNG or TIFF.
What JPG files are used for
- Photos from digital cameras and phones set to "Most Compatible"
- Images on websites, blogs and online stores
- Email attachments and social media uploads
- Scanned photos where small file size matters more than perfect fidelity
How to open a .jpg file
Windows
Double-click to open in the Photos app; Paint and any web browser also open JPG files.
Mac
Opens in Preview by default, or press Space in Finder for a Quick Look preview. The Photos app can import it.
iPhone and iPad
Tap the file in the Files app, or save it to Photos from Mail or Safari.
Android
Opens in Google Photos, Files by Google or the phone maker's gallery app.
Online / any browser
Drag the file into Chrome, Edge, Firefox or Safari to view it.
How to convert a .jpg file
To get a lossless copy or transparency-ready file, convert to PNG: on Windows open the JPG in Paint and choose File > Save as > PNG picture; on a Mac open it in Preview and choose File > Export and pick PNG.
Converting JPG to PNG will not restore detail that JPEG compression already removed; it only stops further loss.
To combine several JPGs into a PDF on a Mac, select them in Finder, right-click and choose Quick Actions > Create PDF. On Windows, print them to "Microsoft Print to PDF".
Convert it here, free and without uploading: JPG to PDF, JPG to PNG, JPG to ICO, JPG to WebP, JPG to JPEG, JPG to GIF, JPG to BMP
More image tools: Remove Background · AI Image Upscaler · Compress JPG · Resize Image · Image to Text · Image to Word · Remove EXIF Data · Crop Image · Change Image DPI · Passport Photo Maker · all image tools
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming JPG files
- Cameras and phones name photos with counters like IMG_4821.jpg or DSC_0042.jpg, which say nothing about the content and repeat after 9999; rename with a date prefix such as 2026-07-14_beach-sunset.jpg so files sort chronologically.
- Pick one extension, .jpg or .jpeg, and use it consistently; some upload scripts and case-sensitive servers treat .JPG, .jpg and .jpeg as different.
- File Renamer AI can look at what is in each photo and give hundreds of IMG_ files descriptive names in one pass.
Renaming lots of .jpg files? See how to rename jpg files (one or many), use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .png file is a Portable Network Graphics image, a lossless format that keeps every pixel exactly as saved and supports full transparency. PNG is the standard for screenshots, logos, icons and web graphics with sharp edges or text, though photos saved as PNG are much larger than JPGs.
A .heic file is a photo stored in the High Efficiency Image File Format using HEVC compression. It is the default format for photos taken on iPhones and iPads, and keeps roughly the quality of a JPG at around half the file size. Macs open it natively; Windows may need extra extensions.
A .webp file is an image in Google's WebP format, designed to make web pages load faster. It supports both lossy and lossless compression, transparency and animation, typically producing noticeably smaller files than JPG or PNG. It is common on websites, which is why images you save from a browser often end up as .webp.
A camera RAW file is the unprocessed sensor data captured by a digital camera, saved before any sharpening, color processing or JPEG compression. Each brand has its own extension, such as .CR3 (Canon), .NEF (Nikon), .ARW (Sony), .RAF (Fujifilm), .ORF (Olympus/OM System) and Adobe's open .DNG.
Frequently Asked Questions
Is there a difference between .jpg and .jpeg?
No. They are the same JPEG format; .jpg exists because early Windows limited extensions to three letters. Any app that opens one opens the other.
Does a JPG lose quality every time I open it?
No, opening or copying a JPG never changes it. Quality is only lost when the image is edited and saved again as a JPEG, because it is recompressed.
Can a JPG have a transparent background?
No. JPEG has no transparency, so transparent areas become a solid color (usually white or black). Use PNG or WebP if you need transparency.
Is JPG or PNG better?
JPG is better for photographs because files are much smaller. PNG is better for screenshots, logos, text and anything needing transparency, because it is lossless.