JPG vs JPEG: Is There Any Difference? (With Test Results)
There is no difference in the picture: .jpg and .jpeg are two spellings of the file extension for the same JPEG image format. In our test, one photo saved as .jpg and as .jpeg was the same file byte for byte, and both gave identical PNG and PDF results. Renaming one to the other changes nothing inside the file. To convert either, use our JPG to PNG converter or JPG to PDF converter.
JPG vs JPEG at a glance
The short version: JPG and JPEG are the same thing. The format is JPEG, named after the Joint Photographic Experts Group that created it, and .jpg is simply a three-letter spelling of the same file extension.
| .jpg | .jpeg | |
|---|---|---|
| Image format inside | JPEG | JPEG |
| Compression | Lossy (the same method) | Lossy (the same method) |
| Picture quality | Identical for the same file | Identical for the same file |
| Same file in our test? | Yes, byte for byte | Yes, byte for byte |
| Accepted by our JPG tools? | Yes | Yes |
The Library of Congress lists .jpg, .jpeg, .jpe, .jif, .jfif and .jfi as extensions for the same format family, with .jpg and .jpeg the most common.
Why there are two spellings
MS-DOS and early versions of Windows allowed only three characters after the dot in a file name, so JPEG files were saved as .jpg. Other systems allowed longer extensions and used .jpeg. Both spellings stayed in use, and today's computers, phones and browsers open either one.
Inside, both files usually start with the same bytes: FF D8 FF, the JPEG start-of-image marker, often followed by E0 and the letters JFIF -- the signature the Library of Congress lists for the JPEG File Interchange Format. Our test file started with FF D8 FF E0.
What our test showed
We saved one 3000 x 2000 photo-like image as a JPEG, made a copy with the other extension, and ran both through the same code our JPG tools use.
| Check | .jpg | .jpeg |
|---|---|---|
| File size | 1,761.9 KB | 1,761.9 KB |
| Contents | Identical (same SHA-256 checksum) | Identical (same SHA-256 checksum) |
| Converted to PNG | Identical output | Identical output |
| Converted to PDF | 1,763.3 KB | 1,763.3 KB |
Computer-made test image, not a camera photo.
When the extension does matter
Upload forms. If a form lists only .jpg or only .jpeg, you can rename the file's extension to the spelling it wants; the picture inside is unchanged. On Windows, turn on File name extensions in File Explorer's View menu first, or you may end up with a name like photo.jpg.jpeg.
Renaming is not converting. Changing photo.png or photo.heic to photo.jpg does not make it a JPEG -- the file inside stays a PNG or a HEIC, and many apps will refuse it. To get a real JPEG, convert it: our PNG to JPG and HEIC to JPG converters do this.
Choosing a format. If the real question is which format to use, the differences are between JPG, PNG and WEBP, not between .jpg and .jpeg. Our guides on JPG vs PNG and on WEBP vs JPG vs PNG compare them with test results.
How we tested
November 2026. A computer-made 3000 x 2000 photo-like image was saved as a JPEG at quality 90 with Pillow 13.0.0 and copied under the other extension. Both files were compared by SHA-256 checksum and converted by the same code our JPG to PNG and JPG to PDF tools run, in a test copy of the site. Your files will have different sizes, but the two spellings will always match each other.