Images
JPEG vs JPG: Is There Any Difference?
There is no difference between JPEG and JPG. They are the same format with two spellings of the file extension. JPG exists because old Windows allowed only three letters. Quality, size and compatibility are identical, and you can rename one to the other without converting anything.
Is JPEG the same as JPG?
Yes. JPEG stands for Joint Photographic Experts Group, the committee that wrote the standard. The format and the committee share the name. “JPG” is just the short form of the extension.
We tested it instead of relying on the claim. We saved a JPEG as
photo.jpg, copied it to photo.jpeg, and compared the two with cmp, which reports whether files match byte for byte. They were identical. The file command also describes both the same way, as JPEG image data. Only the name differs.Why are there two spellings?
Early versions of Windows (DOS) required file names with an eight-character name and a three-character extension.
.jpeg has four letters, so it was shortened to .jpg. Macs and Unix systems never had that limit and used .jpeg.When the two worlds met, both spellings stuck. Windows software kept writing
.jpg, and many Mac apps and web tools kept writing .jpeg. Neither is wrong, and today every operating system accepts both.What about .jpe, .jfif and uppercase .JPG?
| Name | What it is |
|---|---|
| .jpg, .jpeg | The same JPEG file, two spellings |
| .JPG, .JPEG | Same again, in capitals. Many cameras write .JPG |
| .jpe | A rare third spelling of the same format |
| .jfif | A JPEG file in the JFIF wrapper, which most JPEGs use; usually just rename it |
Case matters on some servers. A web server that treats names as case-sensitive will see
photo.JPG and photo.jpg as two files, so pick one spelling and use it for every image on a site. If you have a .jfif file from a browser download, our JFIF to JPG guide covers it.Does it matter which one I use?
Almost never. Upload forms that accept “JPG” nearly always accept “JPEG” as well, because they check the file contents or list both. The rare exception is a badly written form or script that checks for exactly
.jpg. If an upload says your file type is not allowed, rename .jpeg to .jpg and try again. It is the cheapest fix there is.What does matter is the content. If a site says it wants a smaller image, the extension will not help. You need to compress the file, which our best image compressor for Mac comparison covers. And if the real problem is that you have a PNG, HEIC or WebP file, renaming will not turn it into a JPEG. That needs a conversion.
How do I rename .jpeg to .jpg on a Mac?
Renaming is safe because the file contents do not change. Pick the method that fits:
- One file in Finder: select it, press Return, change the extension, press Return again, and confirm “Use .jpg”. If you cannot see extensions, turn them on in Finder > Settings > Advanced > Show all filename extensions.
- Many files in Finder: select them, right-click, choose Rename, then Replace Text. Enter .jpeg in the first field and .jpg in the second.
- Terminal, a whole folder:
for f in *.jpeg; do mv "$f" "${f%.jpeg}.jpg"; doneDo not rename a PNG or HEIC to .jpg and expect it to be a JPEG. Some apps will open it anyway, others will fail. To really change the format, see convert PNG to JPG on Mac or the HEIC to JPG guide. The built-in
sips tool also does it in one line, covered in our sips command guide.Is a JPG lower quality than a JPEG?
No, and this is the question behind most searches for this topic. Quality is set when the image is saved, by the quality slider in the app that made it. The extension plays no part. A .jpg saved at quality 95 is better than a .jpeg saved at quality 50, and the reverse is equally true.
Every time you edit and re-save a JPEG, it is re-compressed and loses a little more detail, regardless of the extension. Keep an original and export a JPEG once, as the last step.
When is Smol the wrong tool for this?
To rename .jpeg to .jpg, you do not need Smol. Finder’s Rename and the one-line command above are free and exact. Smol does not rename extensions on their own.
Smol earns its $29 (once, one Mac) when the actual job is changing or shrinking images in bulk. It converts between JPG, PNG, WebP, AVIF, HEIC and more, compresses a mixed folder with a quality setting, runs from a Finder right-click, and uploads nothing. See pricing or the best image converter for Mac.
How we checked this
Saved one JPEG as .jpg, copied it to .jpeg, and compared with cmp and file on macOS 27.0.1; the two matched exactly. Rename commands were checked in zsh. Facts last checked . We make Smol, so treat our claims about it with the same care as any vendor’s, and see our editorial policy.
JPEG vs JPG: common questions
What is the difference between JPEG and JPG?
None, apart from the spelling of the file extension. JPG exists because old Windows limited extensions to three letters. We saved the same image under both names and the files matched byte for byte, so size, quality and compatibility are identical.
Can I just rename a .jpeg file to .jpg?
Yes. Renaming changes only the name, not the contents, because the format is the same. In Finder, select the file, press Return, edit the extension and confirm. It only fails if the file is not really a JPEG, such as a renamed PNG.
Which should I use, JPEG or JPG?
Use .jpg unless a tool asks for .jpeg. It is shorter, extremely common, and accepted by almost every upload form. Whatever you pick, use it consistently across a website, since some servers treat uppercase and lowercase names as different files.
Does JPG have better compression than JPEG?
No. Compression depends on the quality setting used when the file was saved, never on the extension. Two images with the same pixels and the same quality setting give the same file if you call it .jpg or .jpeg.
Is PNG better than JPG?
Different jobs. PNG is lossless and supports transparency, which suits logos and screenshots. JPG is smaller for photographs. For a photo you plan to share or upload, JPG is usually the right pick. Convert only when you need to, since converting back never restores lost detail.
Keep reading