You are about to upload a photo and the file ends in .jpeg, but the form asks for .jpg. Or the other way round. Is one of them better, smaller or safer? Do you need to convert it first?

No. JPG and JPEG are the same image format with two spellings of the file extension, and you can use either one. To prove it instead of just saying it, we ran a test on 20 November 2026: the same photo saved as .jpg and as .jpeg, then compared byte for byte. Below you will find the result, the real settings that change your image quality, how to convert files safely, and when a different format such as PNG or WebP is the smarter pick.

Table Of Contents

JPG vs JPEG at a Glance

.jpg.jpeg
Image formatJPEGJPEG
CompressionLossyLossy
MIME typeimage/jpegimage/jpeg
TransparencyNo alpha channelNo alpha channel
Our test file (quality 80)71,185 bytes71,185 bytes
Safe to rename to the otherYesYes

The two columns are identical except for the name. The sections below show where the names come from and what really affects the quality and size of your image.

Are JPG and JPEG the Same Format?

Yes. JPEG stands for Joint Photographic Experts Group, the committee behind the standard. According to Wikipedia’s JPEG article, the format was introduced in 1992, and files usually carry a .jpg or .jpeg extension. The MDN image format guide lists the same MIME type, image/jpeg, for every one of these extensions. The MIME type is the label a web server sends so the browser knows it is receiving a JPEG image.

A file extension is only a hint at the end of the file name. The picture data inside is the same whether the name ends in .jpg or .jpeg, so an app that can open one should be able to open the other.

Where the Names JPG and JPEG Come From

The format is named after the committee, so the long spelling is JPEG. The short spelling is commonly explained by an old file name rule. Early DOS and Windows systems limited the extension to three characters after the dot, a limit known as the 8.3 filename format, and .jpg fits within it. Systems without that limit could use the full .jpeg, which is the usual reason both spellings are still around.

Neither spelling is a newer or upgraded version of the format. If a tool or upload form accepts JPEG images, it will normally accept both.

Our Test: One Photo, Two Extensions

To check the claim ourselves, we took a 540 x 675 px crop of the canyon photo from our JPG vs PNG test and saved it twice with the Pillow 11.3 image library: once as test.jpg and once as test.jpeg, both at quality 80. We then copied test.jpg and renamed the copy to renamed.jpeg, and compared all three files byte for byte using their SHA-256 hash, a fingerprint that changes if even a single byte differs.

Comparison of test. Jpg, test. Jpeg and a renamed copy: all three files are 71,185 bytes with the same sha-256 hash
FileSizeSHA-256 (first 16 characters)
test.jpg71,185 bytesed1cb533de155fd6
test.jpeg71,185 bytesed1cb533de155fd6
renamed.jpeg (copy of test.jpg)71,185 bytesed1cb533de155fd6

All three files are identical. The extension we picked at save time changed nothing about the image, the compression or the file size, and renaming a copy did not change a single byte. Because both names describe the same format, renaming a real JPEG between .jpg and .jpeg is safe.

What Really Changes JPG Quality and Size

If the extension does not matter, what does? The quality setting you choose when you export. Editors and apps call it quality, compression or a percentage. Lower settings throw away more detail and make the file smaller.

Bar chart of jpg file size by quality setting from 100 to 30 for the same photo
Quality settingFile sizeIn KB (1 KB = 1,024 bytes)
100310,027 bytesabout 303 KB
90107,160 bytesabout 105 KB
8071,185 bytesabout 70 KB
6046,640 bytesabout 46 KB
3028,634 bytesabout 28 KB

On our photo, going from quality 100 to quality 80 cut the file to about a quarter of its size, and going from 80 to 60 saved roughly a third more. We measured file size only, not how the picture looks, and the exact numbers depend on the image. The pattern is worth remembering, though: the top of the quality scale costs a lot of bytes. Export a few versions of your own photo at different settings and compare them before you pick one.

MDN describes JPEG compression as lossy and based on the discrete cosine transform, which means detail is discarded to save space. The Wikipedia JPEG article adds that the format works in blocks of 8 x 8 pixels, and it shows how those squares become visible in a scaled-up picture after compression.

Why Re-Saving a JPG Lowers Its Quality

Every time you open a JPG, edit it and save it as a JPG again, the encoder compresses the picture a second time. Because JPEG is lossy, those losses can add up. We tested how fast.

We took the same crop and re-saved it 20 times at quality 80 in two ways. In the first run we changed nothing between saves. In the second run we cropped one pixel off the top and left edge before each save, which is a small edit that moves the 8 x 8 block grid. After each save we measured the average difference from the same area of the original image, on a scale where 0 means identical and 255 is the largest possible difference per colour channel.

Save numberSame image each timeCropped 1 px each time
13.253.37
53.305.06
103.326.25
203.337.90
Zoomed crop of the original photo next to the same crop after 20 saves at jpg quality 80

The result: when nothing changed between saves, the quality barely moved after the first save. When each save followed even a one-pixel crop, the difference more than doubled over 20 saves, and the zoomed crop shows smeared detail and blocky patches. This is one test on one image with one encoder, so treat the numbers as an illustration, not a law. The practical lesson is clear, though: edit from your original file and export a fresh JPG once, instead of editing a JPG over and over.

If you keep a master copy in a lossless format such as PNG or TIFF, you can export a new JPG from it at any time with no stacked losses.

Other JPEG Extensions You May See

Besides .jpg and .jpeg, you may meet a few more extensions for the same family of files. MDN lists .jpe, .jif and .jfif for JPEG images, and JFIF is the JPEG File Interchange Format, a specification for storing JPEG data in files. The Paint screenshot later in this guide shows a similar list in a Save As dialog: JPEG (*.jpg;*.jpeg;*.jpe;*.jfif).

ExtensionWhat it isListed by
.jpgJPEG image, short spellingMDN, Wikipedia, WordPress
.jpegJPEG image, long spellingMDN, Wikipedia, WordPress
.jpeJPEG image extensionMDN, Wikipedia, WordPress
.jfifJPEG File Interchange Format fileListed by MDN and Wikipedia
.jifJPEG image extensionListed by MDN and Wikipedia

A .jfif file follows the JPEG file interchange format, so it is a JPEG file with a different extension. WordPress’s default list of image types covers jpg, jpeg and jpe but not jfif, so rename a copy to .jpg before you upload it and open the copy to check that it displays correctly.

Windows file explorer showing file name extensions switched on

JPG vs JPEG vs JPEG 2000 and JPEG XL

The names look alike, but these are different formats. JPEG 2000 was introduced in 2000 as a planned successor to JPEG, and according to Wikipedia it did not replace the original as the dominant standard. JPEG XL is a newer royalty-free format, and MDN notes that it can losslessly transcode existing JPEG images, so the original JPEG file can be rebuilt from it. MDN says browser support for JPEG XL is not yet universal, so test how your visitors will see either format before you use it on a website.

For websites, the usual modern alternatives are WebP and AVIF. MDN says lossy AVIF images are around 50% smaller than JPEG images, and recommends a fallback such as WebP or JPEG for browsers without support. Our guides on JPG vs WebP, JPG vs AVIF and AVIF vs WebP compare them in detail.

How to Convert an Image to JPG

Converting means re-encoding the picture into JPEG data. Here are three ways, starting with the one that is not a conversion at all.

Method 1: Save As JPEG in an Image Editor

Most image editors can save a copy as JPEG. In Microsoft Paint, open the image, use Save As and pick JPEG from the Save as type list. The list shows *.jpg, *.jpeg, *.jpe and *.jfif under one JPEG entry, so check the extension in the file name box before you click Save. Many other editors can save JPEG too, and some let you set the quality.

Microsoft paint save as dialog with the jpeg file type selected

Method 2: Renaming Only Changes the Label

You can rename test.jpg to test.jpeg safely, because both names describe a JPEG file. Renaming a PNG to .jpg is different. It changes the name but not the data inside. In our check, a PNG file copied to a new name ending in .jpg was still read as a PNG by Pillow, which looks at the file contents instead of the name. The data stays PNG, so it keeps whatever the PNG contained, including its file size. For a real conversion, use an editor or a converter.

If you do rename files, show file extensions first. In Windows 11 File Explorer, open View, then Show, then File name extensions, as the screenshot shows. Back up the original before you rename it.

Renaming a file extension in windows file explorer

Method 3: Use an Online Converter

Online converters let you upload an image and download a JPG. One example is the Online-Convert JPG converter, shown below. Upload limits, ads and options change over time, and your image travels to a third-party server, so avoid it for private or client files.

Online-convert page for converting an image to jpg

JPG and JPEG in WordPress and Elementor

WordPress does not care which spelling you use. Its default list of known file types, defined in the core file functions.php, maps jpg, jpeg and jpe to the same image/jpeg type. A few behaviours are worth knowing:

  • Big images are scaled. Since WordPress 5.3, an uploaded image is scaled down by default when it is larger than 2560 px, a threshold that sites can change, as the WordPress core announcement explains.
  • Smaller sizes are recompressed. WordPress creates thumbnails and medium sizes from your upload with a default JPG quality of 82. Starting from an already heavily compressed JPG means another round of compression, the same effect as in our re-save test.
  • Upload your best copy once. Start from the original or a lossless export instead of a JPG that has been saved many times.

If you build with Elementor, the images inside your galleries, sliders and listings are often the biggest files on the page. The Plus Addons for Elementor includes a free Lazy Load setting under The Plus Addons > Settings > Performance (version 6.6.1) that makes images in its widgets load as they come into view, while images in the first screen load right away. The right format and quality plus lazy loading keep an image-heavy page light. Our guides on the Elementor image gallery and Elementor speed cover the widget side and the rest. The free vs Pro comparison shows what The Plus Addons for Elementor Pro adds on top of the free widgets.

If your images look soft after upload, our guide to fixing blurry images in Elementor walks through the common causes, and the WordPress featured image size guide lists sizes to aim for.

When JPG Is Not the Right Choice

Your imageBetter choiceWhy
Photo for a web pageJPG, or WebP and AVIFSmall files, good detail
Logo or icon that must stay sharpSVG or PNGJPG blurs sharp edges
Screenshot with textPNGLossless, clean text
Image that needs a transparent backgroundPNG or WebPJPG has no alpha channel
Master copy you will edit againPNG or TIFFNo stacked losses

MDN makes the same point: JPEG suits photographs, but lossy compression on diagrams and charts can give unsatisfactory results. Our JPG vs PNG guide shows the difference with real file sizes, and SVG vs PNG helps you pick a format for logos.

Which Is Better: JPG or JPEG?

Neither. Both are the same format, and the .jpg and .jpeg files we saved in our test were byte for byte identical. Use whichever spelling a tool or upload form asks for, and keep your existing file names as they are. Spend your effort on the settings that change the result: the quality you export at, the size of the image and how many times it has been re-saved.

Frequently Asked Questions

Are JPG and JPEG the Same?

Yes. JPEG is the name of the format and .jpg and .jpeg are two spellings of its file extension. In our test, a file saved as .jpg and one saved as .jpeg had the same size and the same SHA-256 hash.

Is There a Quality Difference Between JPG and JPEG?

No. Quality depends mainly on the setting you export with and on how often the file has been re-saved, not on the extension.

Is JPG or JPEG Better for SEO?

Neither extension is better for SEO. General image advice applies to both: keep the file size small, use a descriptive file name and alt text, and choose a sensible image size. Both extensions are served with the same image/jpeg type.

Can I Rename a JPEG to JPG?

Yes, for a real JPEG file. Renaming .jpeg to .jpg, or the other way round, changes only the label. Renaming a different format, such as PNG, to .jpg does not convert it.

Does WordPress Accept Both JPG and JPEG?

Yes. WordPress core lists jpg, jpeg and jpe as image/jpeg in its allowed upload types.

Why Do Some Files End in .jfif?

JFIF stands for JPEG File Interchange Format, and .jfif is one of the extensions MDN lists for JPEG images. WordPress’s default upload types do not list it, so rename a copy to .jpg and check that it opens before you upload it.

Which Format Is Best for Photos on a Website?

JPG is a safe default for photos. WebP and AVIF usually give smaller files at similar quality, and MDN recommends a WebP or JPEG fallback for browsers without AVIF support.

Suggested Reading