.JPG

JPG File

JPEG Image
Ask a question
QUICK ANSWER

A JPG (also .jpeg) is a compressed photo or image in the JPEG format, standardized in 1992. Every operating system opens it natively - double-click and Windows Photos, macOS Preview, or your browser handles it. The main thing to know: JPG uses lossy compression, so each re-save loses a little quality.

Developer: Joint Photographic Experts Group (ISO/IEC + ITU-T) Category: Raster Image Files Open standard MIME: image/jpeg
OPENS ON Windows macOS Linux Android iOS Web
Related: .PNG · .TIF · .ECW · .AVIF

On this page

19k+ extensions indexed
Last reviewed Aug 17, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the JPG file format?

Files with the .jpg extension are compressed raster image files stored in JPEG format (Joint Photographic Experts Group). The .jpg extension is used interchangeably with .jpeg - the three-letter form dates from the DOS and early Windows era, when file extensions were limited to three characters.

JPEG uses a lossy compression method based on discrete cosine transform (DCT), which means that when saving a file, some image data is permanently discarded. The JPEG standard was the first widely adopted format to let users control the compression level - and therefore the trade-off between file size and image quality.

Advantages of JPG

The biggest advantage of .jpg files is their small size, which makes them ideal for sharing and storing images on virtually any device. Most digital cameras and smartphones save photos in this format by default. JPEG remains the most widely used image file format on the web, though newer formats such as .webp and .jxl offer better compression ratios at comparable quality.

The two most common interchange variants are .jfif - the original web-friendly container - and Exif, used by cameras and phones to embed metadata such as shooting date, GPS coordinates and exposure settings. Every valid JPEG file starts with the magic bytes FF D8 FF and ends with FF D9.

Opening .jpg files

.jpg files are supported by virtually every image viewer, web browser and professional graphics application available today.

Security & safety

RISK: LOW

JPG is a passive data format - it cannot execute code, so a normal photo is safe to open. Two caveats worth knowing: (1) Exif metadata can embed GPS coordinates and camera info, so photos shared publicly may leak your location - strip Exif before posting if that matters. (2) Historically, a handful of image-parser vulnerabilities (e.g. the 2004 Windows GDI+ JPEG flaw) let crafted JPGs exploit unpatched viewers; keep your OS/viewer updated. A file claiming to be a 'photo.jpg' that is actually 'photo.jpg.exe' is the real danger - check the true extension.

Format details

in a nutshell
FULL NAMEJPEG Image
DEVELOPERJoint Photographic Experts Group (ISO/IEC + ITU-T)since 1992 (JPEG standard, ISO/IEC 10918-1); JFIF interchange format 1992
MIME TYPEimage/jpeg
TYPELossy-compressed raster bitmap (DCT-based)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102
HEX
FFD8FF
ASCII
···
Always starts FF D8 FF. The 4th byte identifies the variant: E0 = JFIF, E1 = Exif (most camera/phone photos), DB = raw. Every JPEG also ends with FF D9 (EOI marker). .jpg and .jpeg are the same format; .jpg dates from the DOS/Windows 3-letter extension limit.

Programs that open JPG files

Windows6 apps
Adobe Photoshop Paid Industry-standard editor; File > Open. Use Save for Web for controlled compression.
GIMP Open-source Open for full photo editing; File > Export As to re-save with a chosen quality.
IrfanView Free Fast lightweight viewer; great for batch resize/convert. Open file or use File menu.
Paint.NET Free Lightweight editor for crops, resize, and basic retouching.
Photos (built-in) Built-in Double-click the file; Windows Photos opens it by default. Use Paint for quick edits.
XnView MP Free Browse a folder of photos and view/convert. Free for personal use.
macOS4 apps
Adobe Photoshop Paid Professional editing; File > Open.
GIMP Open-source Free full editor; File > Export As to save JPG with quality control.
Preview (built-in) Built-in Double-click; Preview opens and can crop, rotate, resize, and re-export.
Photos (built-in) Built-in Import into the Photos library for organizing and non-destructive edits.
Linux3 apps
GIMP Open-source Default photo editor on most distros; open and Export As to re-save.
darktable Open-source Photography workflow/RAW tool that also imports and exports JPG.
Gwenview Open-source KDE image viewer with basic edits; double-click in a file manager.
Android1 app
Google Photos Free Default gallery/viewer with editing tools on most Android phones.
iOS1 app
Photos (built-in) Built-in Tap to view; built-in editor for crop, adjust, markup.
Web1 app
Photopea Free Browser-based Photoshop-style editor; drag the JPG into the page, no install.

Technical details

deep spec
Compression algorithmDiscrete Cosine Transform (DCT), lossy
DCT block size8×8 pixel blocks
Chroma subsampling4:2:0 (most common for photos), 4:2:2, or 4:4:4
Bit depth8 bits per channel (24-bit color standard); 12-bit defined in spec
Color spacesYCbCr (default), grayscale, CMYK, RGB
Quality scale1-100 (implementation-defined; 75-85 typical for web delivery)
Maximum dimensions65,535 × 65,535 pixels
Magic bytesFF D8 FF (Start Of Image); file ends with FF D9 (End Of Image)
MIME typeimage/jpeg
Interchange variantsJFIF (ISO/IEC 10918-5, web/generic) and Exif 2.x (cameras and smartphones)
Metadata supportExif (GPS, exposure, thumbnails), IPTC, XMP, ICC color profiles
Progressive encodingSupported; image loads in successive detail passes rather than top-to-bottom
Transparency supportNot supported; no alpha channel
Lossless rotationPossible via DCT coefficient manipulation (e.g., `jpegtran`) without full re-encode
Extension aliases.jpg, .jpeg, .jpe, .jfif - all identify the same format
Released1992 (JPEG standard, ISO/IEC 10918-1); JFIF interchange format 1992
Open standardYes · royalty-free
Specificationwww.w3.org

JPG conversions

Possible
.JPG .PCXOnline converter
How to convert
.JPG .WBMPOnline converter
How to convert
.JPG .PSDOnline converter
How to convert
.JPG .PNMOnline converter
How to convert
.JPG .PICTOnline converter
How to convert
.JPG .EPSOnline converter
How to convert
.JPG .TIFOnline converter
How to convert
.JPG .EMFOnline converter
How to convert
.JPG .ICOOnline converter
How to convert
.JPG .JP2Online converter
How to convert
.JPG .WEBPOnline converter
How to convert
.JPG .XPMOnline converter
How to convert
.JPG .EXROnline converter
How to convert
.JPG .JPEGOnline converter
How to convert
.JPG .XCFOnline converter
How to convert
.JPG .JPFOnline converter
How to convert
.JPG .TGAOnline converter
How to convert
.JPG .JPXOnline converter
How to convert
.JPG .HDROnline converter
How to convert
.JPG .PNGOnline converter
Yes -- the fastest way is to open the JPG in macOS Preview or Windows Paint and save it as PNG.
How to convert
.JPG .SGIOnline converter
How to convert
.JPG .BMPOnline converter
Yes, any image editor can do it - on Windows the fastest way is to open the file in Paint and save it as BMP.
How to convert
.JPG .GIFOnline converter
Yes, any image editor can do it in seconds, but the result will have visible color banding on photographs.
How to convert
.JPG .PDFOnline converter
Yes - on Windows, select the JPG, right-click and print to "Microsoft Print to PDF"; on macOS, open in…
How to convert
.JPG .TIFFOnline converter
Yes -- open the JPG in IrfanView (free) and use File > Save As, selecting TIFF as the format.
How to convert
.JPG .DDSOnline converter
How to convert
.JPG .RASOnline converter
How to convert

Community Q&A

asked by users
Ask a quick question
Get help from people who work with JPG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about JPG files.

Frequently asked questions

What's the difference between JPG and JPEG?
None - they are the exact same format. .jpg comes from the old DOS/Windows limit of three-letter extensions; .jpeg is the full name. You can rename one to the other freely.
How do I convert HEIC photos from my iPhone to JPG?
On Windows, open the HEIC in Photos (install the free HEIF Image Extensions if prompted) and Save As JPG, or use IrfanView for batch conversion. On Mac, open in Preview and File > Export as JPEG. You can also set the iPhone to shoot JPG: Settings > Camera > Formats > Most Compatible.
How do I combine multiple JPGs into one PDF?
On Windows, select the images, right-click > Print > choose 'Microsoft Print to PDF'. On Mac, open them in Preview, select all thumbnails, and File > Print or Export as PDF. Many free tools do this too.
Why does my JPG look blurry or blocky?
Over-compression. JPG is lossy: low quality settings or repeated re-saving discard detail and create 8x8 block artifacts. There's no way to recover lost detail - re-export from the original at higher quality.
Does converting JPG to PNG improve quality?
No. The detail JPG threw away is gone for good. PNG only prevents FURTHER loss and adds transparency support; the file usually gets larger with no visual gain.
How do I make a JPG file smaller?
Re-save at a lower quality setting or reduce the pixel dimensions in IrfanView, GIMP, Photoshop, or an online compressor. Resizing down is the most effective way to cut file size.

References

1W3C / ITU-T T.81 - JPEG standard (ISO/IEC 10918-1)www.w3.org
2Library of Congress - JPEG File Interchange Format (JFIF)www.loc.gov

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.BINCD/DVD Disc Image (BIN/CUE)
6.DATProgram Data File (generic)
7.RPMSGRestricted Permission Message
8.MDMarkdown Document
9.TXTPlain Text File
10.NOMEDIAAndroid No-Media Marker File

Related extensions

.PNGPortable Network Graphics
.TIFTagged Image File Format
.ECWEnhanced Compression Wavelet (ECW) image
.AVIFAV1 Image File Format (AVIF)
.JP2JPEG 2000 Image (ISO/IEC 15444-1)
.WEBPWebP image

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z