FileHint

JPG vs JPEG — the same format, with a compatibility caveat

.jpg and .jpeg are byte-for-byte identical. The only reason to pick one over the other is compatibility with ancient tools that still only know the three-letter form.

By FileHint editorial teamSupervised by Netwiz LLCEditorial policy

Short answer

.jpg and .jpeg are the same format. The bytes are identical and both carry the image/jpeg MIME type.

Why two extensions exist

  • Early MS-DOS / Windows 3.x limited filenames to 8 characters plus a 3-character extension (the 8.3 format).
  • "jpeg" is four characters long, so .jpg became the default to satisfy that rule.
  • Modern operating systems allow four-plus character extensions, which is how .jpeg came back into use.

Practical guidance

Scenario Preferred
Web delivery .jpg (shorter URL, fewer typos)
Legacy enterprise pipelines .jpg (old tool compatibility)
Apple ecosystem either
Brand consistency pick one and enforce it

Gotchas

  • Some legacy mail clients and embedded systems still treat .jpeg as an unknown extension.
  • Web server MIME maps occasionally miss .jpeg; double-check if images show up as downloads rather than inline.
  • When storing filenames in a database, normalise to one form (typically .jpg) to avoid duplicate keys.

See also

References