JPG vs JPEG - Are They the Same?
Last reviewed 2026-04-27. Use HEIC to JPG or Compress image for any photo work in your browser.
The history in one paragraph
The format is named for the standards committee that defined it - the Joint Photographic Experts Group, JPEG. The natural extension was .jpeg. But MS-DOS and Windows 3.x used the FAT16 file system, which capped file extensions at three characters. To stay readable on those systems, the extension got shortened to .jpg. Both extensions kept circulating after Windows 95 lifted the limit, and both are now standard. macOS, Linux, every browser, every camera, and every image editor treat them identically.
What is actually inside the file
Both .jpg and .jpeg files contain the same byte sequence: a JPEG magic-number header (the bytes FF D8 FF), encoded image data using the discrete cosine transform compression method, and metadata (EXIF, ICC color profile, sometimes thumbnails) that any JPEG decoder reads. Rename a .jpg to .jpeg - it still opens. Rename .jpeg to .jpg - same. The bytes do not care.
When to write each extension
- .jpg. The default in 2026. Everywhere - phone cameras, web upload forms, image-editing software. Shorter, marginally cleaner-looking. Use it unless you have a reason not to.
- .jpeg. Right when a system or workflow rejects .jpg specifically. Some legacy Unix tools, some scientific imaging pipelines, and a small number of CMSes. Also right when the file came in as .jpeg and you do not want to rename - the bytes are identical, so do not invent friction.
- .jpe. A rare third extension - same format. Almost no system writes .jpe today. Treat any .jpe like .jpg.
A few details people occasionally hit
Case sensitivity. On Linux and macOS file systems, .JPG and .jpg are different filenames. Most tools treat them identically when reading content, but a few strict workflows trip on the case difference. If a system rejects an upload with the same content, try lowercase.
Server MIME types. The MIME type is image/jpeg regardless of which extension the file uses. A misconfigured server that only registers the .jpeg extension will refuse to serve .jpg files - or vice versa. Both should be in the server's MIME map.
Email attachments. No mail client in 2026 cares about the difference. Both extensions render as inline images and download normally.
For more image-format context see HEIC vs JPG vs WebP, JPG vs PNG for the web, or the image converter tools hub.
Why trust these tools
- Ten-plus years of web tooling. The freetoolonline editorial team has shipped browser-based utilities since 2015. The goal has never changed: get you to a working output fast, without an install.
- Truly in-browser - no upload. Every file-processing tool on this site runs in your browser through modern Web APIs (File, FileReader, Canvas, Web Audio, WebGL, Web Workers). Your photo, PDF, audio, or text never leaves your device.
- No tracking during tool use. Analytics ends at the page view. The actual input you paste, drop, or capture is never sent to any server and never written to any log.
- Open-source core components. The processing engines underneath (libheif, libde265, pdf-lib, terser, clean-css, ffmpeg.wasm, and others) are public and audit-able. We link to each one in its tool page's footer.
- Free, with or without ads. All tools are fully functional without sign-up. The Disable Ads button in the header is always available if you need a distraction-free run.