1 KB JPG sample file

A JPG file of exactly 1,024 bytes. It is a valid JPEG image file, generated for this site and checked with an independent parser.

Download

sample-jpg-1kb.jpg

1 KB1,024 bytes

Download 1 KB JPG

Direct download. No sign-up and no waiting.

Type
image/jpeg
SHA-256
eaf909b74d72aa06109da0342b13a05836c16b5f798e38b8d10013cbdae0d1ae
Direct URL
https://sampletestfiles.com/downloads/jpg/sample-jpg-1kb.jpg

What is in this file

A 18 × 14 test card with fine grain, encoded as a baseline JPEG at quality 90. 25 bytes of JPEG comment (COM) segment bring the file to the exact size.

Dimensions18 × 14 px
EncodingBaseline DCT, Huffman
Chroma subsampling4:4:4
Quality90
MetadataJFIF header and a comment, no EXIF
ProgressiveNo

First bytes of the file

The first 64 bytes of sample-jpg-1kb.jpg as a hex dump: offset, bytes, then the same bytes as text. The JPG signature is FF D8 FF.

00000000  ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 01  |......JFIF......|
00000010  00 01 00 00 ff fe 00 17 53 61 6d 70 6c 65 54 65  |........SampleTe|
00000020  73 74 46 69 6c 65 73 20 73 61 6d 70 6c ff db 00  |stFiles sampl...|
00000030  43 00 03 02 02 03 02 02 03 03 03 03 04 03 03 04  |C...............|

Preview

Displays the file in your browser.

Where 1 KB matters

The smallest practical test file: 1,024 bytes, small enough to travel in a single network packet. These are the default limits a file of this size is useful for testing:

SystemLimitNote
Ethernet1,500 bytes (typical MTU)A 1 KB payload fits in one packet with its headers.
Browser cookies4,096 bytes per cookie1 KB is well inside the limit; the 5 KB sample is over it.

All 1 KB sample files

Use this file for

  • Smoke tests in CI that must run in milliseconds
  • Testing image upload, resize and thumbnail pipelines
  • Checking maximum file-size and dimension rules

Testing notes for JPG

  • 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.

JPG format reference

Technical details

File namesample-jpg-1kb.jpg
FormatJPG (JPEG image)
Extension.jpg
MIME typeimage/jpeg
Size1,024 bytes (1 KB)
KindBinary
SignatureFF D8 FF
SHA-256eaf909b74d72aa06109da0342b13a05836c16b5f798e38b8d10013cbdae0d1ae
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewAvailable on this page
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryImages

Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Download from the command line and verify

Fetch the file with curl, then compare its checksum with the SHA-256 value above.

curl -o sample-jpg-1kb.jpg 'https://sampletestfiles.com/downloads/jpg/sample-jpg-1kb.jpg'
sha256sum sample-jpg-1kb.jpg     # Linux
shasum -a 256 sample-jpg-1kb.jpg # macOS

On Windows, run Get-FileHash sample-jpg-1kb.jpg -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.

Related files

Questions about this file

Is this file exactly 1 KB?
Yes. It is 1,024 bytes, which is 1 KB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 1 KB JPG file?
A 18 × 14 test card with fine grain, encoded as a baseline JPEG at quality 90. 25 bytes of JPEG comment (COM) segment bring the file to the exact size.
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.