JPG (JPEG): the format for photos you share
JPEG is a lossy format for photographs. It makes photos small by discarding detail you are unlikely to notice, and almost every device, app and upload form in the world can open it. It has no transparency and no animation, and it handles text and sharp edges badly.
JPEG at a glance
- File extensions
- .jpg, .jpeg, .jpe, .jfif
- MIME type
- image/jpeg
- Compression
- Lossy. The standard also defines a lossless mode, but almost nothing uses it.
- Transparency
- None. Transparent areas are filled with a solid colour when saving to JPEG.
- Animation
- None.
- Colour
- 8 bits per channel. RGB, greyscale or CMYK, with an optional embedded colour profile.
- Browser support
- Every browser, operating system, camera and image app.
- In ImageDoctor
- Opens, compresses, resizes, crops and converts JPEGs. Removes metadata without re-encoding, and can keep EXIF when saving JPEG to JPEG.
JPG or JPEG?
They are the same format. JPEG is named after the Joint Photographic Experts Group, which published the standard in 1992. The three-letter .jpg extension comes from old Windows and DOS file names, which allowed only three characters after the dot. .jfif files — which Windows sometimes produces when you save an image from a browser — are also ordinary JPEGs in a slightly different wrapper. Any tool that opens a .jpg opens them, and renaming one to .jpg usually works too.
How JPEG makes photos small
JPEG compression is a series of steps, each of which throws away something the eye is bad at noticing:
- Brightness and colour are separated. People see detail mostly in brightness, so the colour information is usually stored at half the resolution (chroma subsampling). On a photo you cannot tell. On thin red text on white, you can.
- The picture is cut into 8×8-pixel blocks, and each block is described as a mix of smooth and fine patterns.
- Fine patterns are rounded off. This is where the quality setting acts. Lower quality rounds more aggressively, which removes texture first and then starts to show the block grid.
That is why JPEG routinely stores a photo in around a tenth of the space its raw pixels would take and still looks the same at normal viewing size, while a screenshot of text gets fuzzy halos around every letter. Photos are made of smooth transitions JPEG can approximate. Text is made of hard edges it cannot.
Quality settings are not a percentage
The 0–100 quality number is not "percent of the original kept", and it is not consistent between programs — quality 80 in one app is not the same file as quality 80 in another. As a practical guide in ImageDoctor:
| Quality | Use it for |
|---|---|
| 90–95 | Masters you may edit again, and prints |
| 80–85 | Photos on the web, in email and in documents |
| 70–75 | Thumbnails and previews |
| Below 60 | Only when you must hit a tight size limit — check the result |
Rather than guessing, the Image Compressor can aim for a file size — 200 KB, say — and find the highest quality that fits.
Every save costs a little
Opening and viewing a JPEG changes nothing. Saving it again runs the lossy steps again, so a JPEG that is edited and re-saved many times gets gradually worse — like photocopying a photocopy. Keep your original, edit from it, and export a JPEG once at the end.
Hidden data in JPEG files
Camera and phone JPEGs usually carry EXIF metadata: the device model, exposure settings, the date and often the GPS position where the photo was taken. It travels with the file when you share it. The Metadata Viewer shows what a file contains, and the Metadata Remover strips it from a JPEG without re-encoding the picture, so there is no quality loss.
When to use JPEG
- Photos you hand to someone else — email attachments, job and government upload forms, print shops. JPEG is the one format they will all accept.
- Photos where transparency is irrelevant and small size matters more than perfect fidelity.
- Anything going into older software or hardware that predates WebP and AVIF.
When not to
- Logos, icons and anything with a transparent background. Use PNG, WebP or SVG.
- Screenshots, text and line art. The edges ring and blur. PNG or WebP keeps them crisp.
- Images on a website you control. WebP is typically 25–34% smaller at the same visual quality, and AVIF smaller still.
- Files you are still editing. Use a lossless format for the working copy and export JPEG last.
Convert JPEG files
Each converter runs in your browser with the output format already chosen. Add one file or a whole folder.
- JPG to PNG ConverterSave JPG photos as lossless PNG files — singly or in bulk, processed in your browser.
- JPG to WebP ConverterConvert JPG photos to WebP for faster web pages — one image or a whole folder.
- PNG to JPG ConverterTurn PNGs into smaller JPGs, with control over quality and the background behind transparent areas.
- WebP to JPG ConverterTurn .webp downloads into JPGs that open in any app, upload form or email.
- AVIF to JPG ConverterTurn .avif images into JPGs that open in any app, editor or upload form.
Common questions
Tools for JPEG files
Keep reading
- The PNG formatLogos, screenshots, graphics with transparencyFormat
- The WebP formatImages on websites you controlFormat
- The AVIF formatLarge photos on the webFormat
- JPG vs PNG: which image format should you use?The practical difference between JPG and PNG: transparency, text, file size and quality loss — with a simple rule for choosing, and how to convert either way.Article
- Lossy vs lossless compression, explained for imagesWhat lossy and lossless compression actually do to an image, which formats use each, what the difference looks like, and how to choose for photos and graphics.Article
- Compressing JPEG, PNG and WebP without losing visible qualityEach format loses quality differently. A per-format playbook for JPEG, PNG, WebP and AVIF, how to spot the artifacts, and how to avoid compounding damage.Article
- Why photos turn sideways when you upload them (and how to fix it)Why a photo that looks upright on your phone shows sideways or upside down elsewhere, what the EXIF Orientation tag does, and how to fix the file for good.Article