What is a JPG File?
A JPG (or JPEG) file is the most common image format for photos. It uses lossy compression that discards detail the eye barely notices, so photos become much smaller, and the quality setting lets you trade image quality for file size. JPEG was created by the Joint Photographic Experts Group and standardized in 1992; .jpg and .jpeg are the same format.
JPG files open in every browser, phone, camera and image editor. They do not support transparency or animation; for those, use PNG, WEBP or GIF.
Download JPG Sample Files
Below you will find JPG sample images in four sizes, from 640 pixels wide up to 4K.
JPG Sample File Details
| Sample | Dimensions | File size |
|---|---|---|
| Sample 640×427 | 640 × 427 px | 71.7 KB |
| Sample 1280×853 | 1280 × 853 px | 226 KB |
| Sample 1920×1280 | 1920 × 1280 px | 470 KB |
| Sample 3840×2160 | 3840 × 2160 px | 1.66 MB |
All four are progressive JPEGs, which load in increasing detail, with 8-bit RGB color, a JFIF 1.01 header at 72 dpi and an embedded ICC color profile. They contain no EXIF metadata. Our JFIF samples come in the same sizes as baseline (non-progressive) JPEGs.
What You Can Test With These JPG Files
- Uploads: image forms and APIs that accept
image/jpeg. - Resizing and thumbnails: four sizes up to 3840 × 2160.
- Progressive loading: how browsers and apps display progressive JPEGs.
- Compression: optimizers and quality settings, compared against the originals.
- Color management: each file carries an ICC profile.
How to Inspect or Resize a JPG File
# Show the image details with ImageMagick
magick identify -verbose sample-640x427.jpg
# Resize to half size at quality 85
magick sample-3840x2160.jpg -resize 50% -quality 85 smaller.jpg
# Python with Pillow
from PIL import Image
print(Image.open("sample-640x427.jpg").size) # (640, 427)






