Download .JP2 Sample Files

Jump to:     File Information     Download     How to Open

What is a JP2 File?

A JP2 file is an image in the JPEG 2000 format, created by the Joint Photographic Experts Group and standardized in 2000 as ISO/IEC 15444-1. Instead of the 8×8 blocks used by classic JPEG, JPEG 2000 uses wavelet compression, which avoids blocky artifacts and supports both lossy and truly lossless compression, high bit depths, transparency and very large images split into tiles.

JPEG 2000 never replaced JPEG on the web, but it is widely used where image quality matters: digital cinema packages store every frame as JPEG 2000, and it is common in medical imaging (DICOM), satellite and map imagery, and digital archives. Most web browsers cannot display JP2 images, so open them with macOS Preview, GIMP, Photoshop, IrfanView or XnView.

Download JP2 Sample Files

Below are three JPEG 2000 sample images, from 1280 pixels wide up to 4K.

JP2 Sample File Details

SampleDimensionsFile sizeShare of raw RGB size
Sample 1280×8531280 × 853 px1.07 MB34% of 3.12 MB
Sample 1920×12801920 × 1280 px2.33 MB33% of 7.03 MB
Sample 3840×21603840 × 2160 px8.21 MB35% of 23.7 MB

All three are lossless JPEG 2000 files: 8-bit RGB compressed with the reversible 5/3 wavelet, so decoding gives back every original pixel exactly. Each image is a single tile with five wavelet levels and one quality layer, stored in a standard JP2 container with a color specification box. Lossless compression keeps them at about a third of the raw size; lossy JPEG files of the same dimensions are much smaller (our 3840 × 2160 JPG sample is 1.66 MB).

What You Can Test With These JP2 Files

  • Decoders: OpenJPEG, Kakadu, Pillow, ImageMagick and other JPEG 2000 libraries.
  • Lossless round trips: decode, re-encode and compare the pixels.
  • Large images: a single 4K tile for memory and speed tests.
  • Conversion: JP2 to PNG, TIFF or JPG.
  • Viewer support: checking which apps and browsers open JP2 files.

How to Open or Convert a JP2 File

# Decode to PNG with OpenJPEG
opj_decompress -i sample-1280x853.jp2 -o sample.png

# Python with Pillow (built with OpenJPEG)
from PIL import Image
im = Image.open("sample-1280x853.jp2")
print(im.size)  # (1280, 853)
im.save("sample.png")

JP2 vs Other Image Formats

FormatCompressionTypical use
JP2Wavelet, lossy or losslessCinema, medical imaging and archives
JPGLossy (DCT blocks)Photos on the web
PNGLosslessGraphics and screenshots
TIFFNone or losslessPrinting and scanning
WEBPLossy or losslessWeb images
HEICHEVCiPhone photos