JPG file format
JPG and JPEG are the same format under two names. The three-letter version is a leftover from MS-DOS, which allowed extensions no longer than three characters.
or drag & drop them here · images, video, audio and documents · up to 2 GB
What is JPG?
There is no technical difference whatsoever between a .jpg and a .jpeg file. Both contain identical bytes, use the same encoder, decode with the same libraries and compress exactly alike. The split happened because early Windows and MS-DOS used the 8.3 filename scheme: eight characters for the name, three for the extension. "Jpeg" did not fit, so the Windows world wrote "jpg" while Unix and the Mac kept the full spelling.
That cosmetic difference outlived the limitation by three decades. Windows tools still default to .jpg, macOS and many cameras emit .jpeg, and every viewer, browser and editor treats them identically because they identify the format by the bytes at the start of the file, not by its name. Renaming one to the other is a safe, instant, lossless operation.
Where the name does matter is in software that validates by extension: an upload form with a whitelist containing only "jpeg", a build script matching *.jpg, a content system that rejects the unfamiliar spelling. Those are configuration bugs rather than format incompatibilities, but they are the practical reason people still convert between two identical things.
| Extension | .jpg |
|---|---|
| Category | Image |
| MIME type | image/jpeg |
| Released | 1992 |
| Developed by | Joint Photographic Experts Group |
| Compression | Lossy |
| Transparency | No |
| Animation | No |
JPG: frequently asked questions
- Is JPG worse quality than JPEG?
- No — they are the same file. Identical compression, identical bytes, identical decoders. Quality depends entirely on the setting used when the image was encoded, not on how many letters the extension has. Converting between the two changes nothing except the filename.
- Can I just rename a .jpeg to .jpg?
- Yes. Both extensions map to the same MIME type, image/jpeg, and applications identify JPEG data by its signature bytes rather than the name. Renaming is instant and completely lossless — unlike a real conversion, it never touches the image data.
- Why does one site accept JPG but reject JPEG?
- Because its upload validation checks a hardcoded list of extensions and someone forgot the four-letter spelling. It is a bug in that form, not a property of your file. Renaming the file or converting it satisfies the check without changing a single pixel.
- Which extension should I choose?
- Use .jpg. It is the more common of the two, every operating system and web platform handles it, and it avoids the extension whitelists that occasionally miss .jpeg. Neither choice affects image quality or file size in any way.
- Does converting JPG to JPEG lose quality?
- It depends on the tool. If it only renames the file, nothing is lost. If it decodes and re-encodes the image, you pay the usual generation loss of a lossy format. When your only goal is the extension, prefer renaming or a tool that explicitly copies the data through.
- What about .jpe and .jfif files?
- They are also JPEG images under alternative extensions — .jpe from older Windows software, .jfif from the JPEG File Interchange Format specification. All four names decode with the same library, and all can be renamed to .jpg without touching the image.