Free JPG sample, test and dummy files
Lossy compressed photographs. The format most image uploads arrive in. Download valid JPG test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .jpg
- MIME type
- image/jpeg
- Kind
- Binary
- Category
- Images
Create a JPG file of any size
Choose any size from 632 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
JPG files by size
Every file below is a valid JPEG image file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB JPG samplesample-jpg-1kb.jpg | 1 KB1,024 bytes | 23 × 17 px | Download JPG |
| 5 KB JPG samplesample-jpg-5kb.jpg | 5 KB5,120 bytes | 69 × 52 px | Download JPG |
| 10 KB JPG samplesample-jpg-10kb.jpg | 10 KB10,240 bytes | 105 × 79 px | Download JPG |
| 25 KB JPG samplesample-jpg-25kb.jpg | 25 KB25,600 bytes | 192 × 144 px | Download JPG |
| 50 KB JPG samplesample-jpg-50kb.jpg | 50 KB51,200 bytes | 287 × 215 px | Download JPG |
| 100 KB JPG samplesample-jpg-100kb.jpg | 100 KB102,400 bytes | 432 × 324 px | Download JPG |
| 200 KB JPG samplesample-jpg-200kb.jpg | 200 KB204,800 bytes | 641 × 481 px | Download JPG |
| 500 KB JPG samplesample-jpg-500kb.jpg | 500 KB512,000 bytes | 1072 × 804 px | Download JPG |
| 1 MB JPG samplesample-jpg-1mb.jpg | 1 MB1,048,576 bytes | 1573 × 1180 px | Download JPG |
| 2 MB JPG samplesample-jpg-2mb.jpg | 2 MB2,097,152 bytes | 2,866 × 2,148 px | Download JPG |
| 3 MB JPG samplesample-jpg-3mb.jpg | 3 MB3,145,728 bytes | Dimensions: 2781 × 2086 px | Download JPG |
| 5 MB JPG samplesample-jpg-5mb.jpg | 5 MB5,242,880 bytes | 4,568 × 3,426 px | Download JPG |
| 10 MB JPG samplesample-jpg-10mb.jpg | 10 MB10,485,760 bytes | 6,476 × 4,857 px | Download JPG |
| 15 MB JPG samplesample-jpg-15mb.jpg | 15 MB15,728,640 bytes | Dimensions: 6343 × 4757 px | Download JPG |
| 20 MB JPG samplesample-jpg-20mb.jpg | 20 MB20,971,520 bytes | Dimensions: 7337 × 5503 px | Download JPG |
| 25 MB JPG samplesample-jpg-25mb.jpg | 25 MB26,214,400 bytes | Dimensions: 8212 × 6159 px | Download JPG |
| 30 MB JPG samplesample-jpg-30mb.jpg | 30 MB31,457,280 bytes | Dimensions: 9009 × 6757 px | Download JPG |
| 50 MB JPG samplesample-jpg-50mb.jpg | 50 MB52,428,800 bytes | Dimensions: 6144 × 4608 px | Download JPG |
| 100 MB JPG samplesample-jpg-100mb.jpg | 100 MB104,857,600 bytes | Dimensions: 6144 × 4608 px | Download JPG |
More JPG samples
Hand-designed files with realistic content or a specific edge case. Files described as corrupted or truncated are invalid on purpose, for testing how software reacts to a damaged JPG file.
| File | Size | Contents | Download |
|---|---|---|---|
| Sample JPG, 1920 × 1080sample-photo-1920x1080.jpg | 503 KB515,568 bytes | 1920 × 1080 px | Download JPG |
| Truncated JPG image for testing (corrupted)sample-jpg-truncated.jpg | 55.2 KB56,556 bytes | Damage: Truncated to 50% of its length | Download JPG |
| Sample JPG, 3840 × 2160 (4K UHD)sample-photo-3840x2160.jpg | 1.84 MB1,931,177 bytes | 3840 × 2160 px | Download JPG |
What is a JPG file?
JPEG compresses photographs by discarding detail the eye is unlikely to notice. Images are split into 8 × 8 pixel blocks, transformed with a discrete cosine transform and quantised; a quality setting controls how much is thrown away.
A JPEG file is a series of segments, each introduced by a marker. Metadata such as EXIF camera data lives in its own segments and can be removed without touching the picture.
How to recognise a JPG file
Software recognises a JPG file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.
| Extension | .jpg |
|---|---|
| MIME type | image/jpeg |
| Standard | ITU-T T.81 (ISO/IEC 10918-1), with JFIF or EXIF as the file format |
| Extensions | .jpg and .jpeg |
| Compression | Lossy DCT; baseline or progressive |
| Transparency | Not supported |
What to test for
These are the behaviours that most often go wrong when software handles JPG files.
- A small file can decode to a huge bitmap. Validate pixel dimensions as well as bytes, or a 5 MB upload can demand hundreds of megabytes of memory.
- Re-saving a JPEG loses quality each time, so pipelines should resize from the original.
- Photos from phones carry EXIF data including location; the samples here contain none.
Strengths of JPG
- Very small files for photographs at good visual quality.
- Supported by every device, browser and application.
Limitations of JPG
- Lossy: detail is discarded, and quality falls each time the image is re-saved.
- No transparency, and visible artefacts around text and sharp edges.
Typical uses of JPG test files
- Testing image upload, resize and thumbnail pipelines
- Checking maximum file-size and dimension rules
- Measuring image optimisation
- Testing lazy loading and responsive images
Software that opens JPG
- Every browser, phone and image viewer
- Photoshop, GIMP and Lightroom
- libjpeg-turbo, sharp, Pillow and ImageMagick libraries
Specifications
Related
JPG sample files: questions
- What do the sample JPGs show?
- A test card with colour bars, a grey ramp, a checkerboard and a gradient, with light grain so the file compresses like a photograph.
- Why do larger samples have larger pixel dimensions?
- The quality setting is fixed at 90, so the only way to reach a bigger file is a bigger picture. The dimensions are listed on each download page.
- What is the MIME type of a JPG file?
- The MIME type is image/jpeg. The file extension is .jpg.
- Is a sample JPG file the same as a dummy or example JPG file?
- Yes. Sample, test, dummy and example JPG files are different names for the same thing: a JPG file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy JPG file.