What is a JPG file?
Learn how the JPG image format compresses photos, where it excels across web and print workflows, and when newer alternatives offer better efficiency. Free JPG converters included.
The Joint Photographic Experts Group introduced the JPG format in 1992 to solve a critical limitation of early digital computing: photographic image files were simply too large for standard storage drives and slow network connections. Uncompressed bitmap images required several megabytes for a single snapshot, overwhelming early consumer systems. JPG introduced a standardized lossy compression algorithm that drastically reduced file sizes by up to ninety percent while preserving acceptable visual fidelity for human eyes. Over three decades later, this milestone standard remains the universal baseline for digital photography, internet media distribution, and personal image archiving across global computing hardware.
Technically, JPG relies on the Discrete Cosine Transform algorithm combined with chroma subsampling and quantization to discard high-frequency visual data that human vision cannot readily distinguish. The format encodes 24-bit RGB color, allocating 8 bits per channel across red, green, and blue to render up to 16.7 million distinct hues. However, JPG is strictly a single-frame, opaque raster image standard that offers no native support for alpha transparency channels, layered assets, or multi-frame animations. Every time you re-encode or repeatedly save an existing JPG, the lossy transformation pipeline discards additional high-frequency data, creating generational compression degradation across the image.
Today, you encounter JPG files across virtually every digital environment, from social media platforms and email attachments to professional stock libraries and medical documentation. Every contemporary smartphone camera, digital single-lens reflex body, desktop operating system, and modern web browser natively decodes and displays JPG assets without third-party plugins. Because software vendors guarantee total backwards compatibility, a file encoded in the mid-1990s opens seamlessly on present-day hardware. While modern container formats deliver tighter compression ratios at equivalent visual quality levels, JPG remains the undisputed fallback standard whenever you require guaranteed compatibility across legacy printers, embedded vehicle displays, television interfaces, and web servers.
Technical specification
| Extension | .jpg, .jpeg, .jpe |
|---|---|
| MIME type | image/jpeg |
| Compression | Lossy (DCT) |
| Transparency | Not supported |
| Animation | No |
| Typical file size | The photo default: 80-250 KB for a 1000 px photo |
| Browser and system support | Every browser, every operating system, every camera |
| Developed by / year | Joint Photographic Experts Group, 1992 |
When to use it
- Choose JPG when you need to distribute digital photographs and complex real-world scenes across web platforms with universal device compatibility.
- Choose JPG when storage limitations require reducing photographic image file sizes down to between 80 KB and 250 KB per megapixel without noticeable visual degradation.
- Choose JPG when submitting photographic portfolios or documentation to legacy online portals, email systems, and government forms that reject newer file types.
- Choose JPG when preparing continuous-tone photographs for commercial digital printing services that mandate standard 24-bit sRGB color profiles.
When not to use it
- Avoid JPG for graphics requiring transparent backgrounds, such as logos and user interface icons, and use PNG or SVG instead.
- Avoid JPG for line art, screenshots with crisp text, and geometric illustrations, opting for PNG or SVG to prevent noticeable ringing artifacts around sharp edges.
- Avoid JPG as an archival working format for intermediate photo editing steps, using lossless TIFF or RAW formats instead to prevent generational quality loss during repeated saves.
Our tools for this format
40 tools that take JPG files in or write them out. Each one runs in your browser, so nothing is uploaded.
Convert to this format
Convert from this format
Edit files in this format
- Bulk Image Resizer
- Image Compressor
- Square Image Maker
- Favicon Generator
- JPG Compressor
- EXIF Data Viewer
- EXIF Data Remover
- Image to Data URI
- Photo Collage Maker
- Image Compare Tool
- Passport Photo Maker
- HEX RGB Color Converter
- Image Cropper
- Rotate Image
- Invert Image Colors
- Pixelate Image
- Round Image Corners
- Watermark Image
Common problems
The image shows blocky pixel artifacts and blurry halos around sharp text.
This artifacting happens when aggressive lossy compression breaks 8x8 pixel blocks during the discrete cosine transform encoding. To resolve this, re-export the image from your uncompressed source at a quality setting of 80 to 90 percent, or convert text graphics to PNG format.
The image appears upright on a smartphone but rotates sideways on a desktop computer or website.
This mismatch occurs when older desktop viewers or web renderers ignore the embedded EXIF orientation metadata written by the mobile camera sensor. To fix the issue, open the photo in an image viewer, apply a physical 90-degree pixel rotation, and save it to write the correct native pixel orientation directly into the raster data.
The transparent background turned completely black or white after saving as JPG.
Because the JPG specification does not support alpha transparency channels, any transparent pixels are automatically flattened against a solid background color during compression. To keep your transparent cutout intact, convert the file to PNG or WebP rather than saving it as a JPG.
A legacy software program refuses to open an image with a .jpeg or .jpe extension.
Older file systems and specialized software tools from early operating system eras only recognize the three-letter .jpg extension. Simply rename the file extension from .jpeg or .jpe to .jpg, or use an in-browser conversion tool to re-save the container with standard headers.
Frequently asked questions
What is the difference between JPG and JPEG?
There is no technical difference in compression, color depth, or image data between JPG and JPEG. The three-letter extension originated because early operating systems required strict 8.3 file naming conventions, whereas modern operating systems handle both extensions identically.
Does saving a JPG multiple times reduce its quality?
Yes, re-saving a JPG applies the lossy compression algorithm repeatedly, discarding visual data and increasing 8x8 block artifacts with each save. If you need to edit an image across multiple sessions, work in a lossless format like PNG or TIFF and export to JPG only as the final output step.
How much smaller is JPG compared to uncompressed formats?
A typical 24-bit uncompressed RAW or BMP photo occupying 20 to 30 megabytes compresses down to approximately 1 to 3 megabytes as a high-quality JPG, achieving an 85 to 95 percent reduction in storage footprint.
Can a JPG file contain animated frames or layers?
No, the standard JPG specification encodes only a single, flat raster image frame with zero layer or animation capability. For multi-frame animations or layered project storage, use formats such as GIF, WebP, APNG, or specialized project containers.
What compression ratio provides the best balance between quality and file size in JPG?
A compression quality setting between 80 and 85 percent delivers the optimal balance for web and print applications. Setting the quality above 90 percent increases file size by roughly 50 to 100 percent with negligible human-perceptible visual improvement.