Short answer: they are the same
JPG and JPEG are identical. Same format, same compression algorithm, same quality. The only difference is the file extension — `.jpg` vs `.jpeg`. There is no technical difference between a file named `photo.jpg` and one named `photo.jpeg`. They open the same way in every browser, image editor, and operating system.
Why do two extensions exist?
It's a legacy issue from the early days of Windows. Old versions of MS-DOS and Windows 3.x only supported 3-character file extensions — so `.jpeg` was truncated to `.jpg`. Unix and Mac systems had no such limit and kept the full `.jpeg` extension. When Windows eventually dropped the limit, `.jpg` had already become the standard on most systems. Today, both coexist — but `.jpg` is by far the most common.
What is JPEG compression?
JPEG stands for Joint Photographic Experts Group, the committee that created the standard in 1992. The format uses lossy compression — meaning some image data is discarded to reduce file size. The more you compress a JPEG, the smaller the file, but the more quality you lose. This makes JPEG ideal for photographs and complex images where some quality loss is acceptable, but not ideal for logos, text, or images with sharp edges (use PNG for those).
Does the extension ever matter?
Rarely. Modern operating systems and browsers detect image formats by reading the file header (the actual binary data), not by the extension name. However, a few edge cases exist:
- Some older systems may not recognize `.jpeg` if they only know `.jpg`
- Some upload forms do MIME-type checks on extension — you may need to rename if a system rejects `.jpeg` but accepts `.jpg`
- Search engines don't care which you use
- Image editors (Photoshop, GIMP, Figma) treat both identically
In practice: if you're building a website or exporting from an editor, stick to `.jpg` — it's the safer, more universally supported choice.
Which extension should you use?
Use `.jpg`. It's shorter, more universally compatible, and the de facto standard across the web. When you export from Photoshop, Figma, or most image tools, `.jpg` is the default. There is no quality difference between `.jpg` and `.jpeg` — the choice is purely cosmetic.
JPG vs PNG — a more meaningful comparison
If you're choosing between image formats, the JPG vs PNG question is far more important than JPG vs JPEG:
- Use JPG for photos, backgrounds, social media images — complex images where lossy compression is invisible
- Use PNG for logos, screenshots, images with transparent backgrounds, or anything with text and sharp edges
- Use WebP if you need the best of both worlds — smaller than JPG at similar quality, supports transparency like PNG