JPEG 2000 (JP2) Converter

Convert JPEG 2000 files (JP2, J2K, J2C, basic JPX) to PNG, JPG or TIFF, and turn JPG, PNG, WebP, BMP or TIFF pictures into JP2 or J2K, lossless or at the compression ratio you choose, with header details, XML metadata, faster reduced-size decoding of huge scans and batch ZIP output.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Open files

    Pick JP2 or J2K files to decode, or pictures to encode.

  2. 2
    Check the header

    Select a JPEG 2000 file to see its size, depth, colour and metadata.

  3. 3
    Set decoding

    Choose PNG, JPG or TIFF, the decode size and stretching.

  4. 4
    Set encoding

    Choose JP2 or J2K, lossless or a ratio, channels and dpi.

  5. 5
    Convert

    Convert the selected file; the codec loads the first time.

  6. 6
    Save all

    Convert every file in the list and save them as a ZIP.

About this tool

JPEG 2000 is common where image quality and very large pictures matter: digital libraries and archives, book and newspaper scanners, satellite and aerial maps, the Library of Congress and many national archives, cinema packages and medical systems. Most photo programs and phones still cannot open a .jp2 file, and many sites that want an upload refuse it. This converter decodes and encodes JPEG 2000 with OpenJPEG, the reference open source codec, compiled to WebAssembly. The codec is about 420 KB and downloads once, the first time you convert. JP2 files are read box by box first, so the panel shows the brand, size, number of components, bit depth, colour space, stored resolution and any XML metadata, such as the geographic GML that map files often carry, even before decoding. Decoding can be done at full size or at a half, quarter or eighth for gigantic scans, which is much faster and lighter on memory. Twelve- and sixteen-bit images can be stretched to the full range so they do not look dark. Encoding supports lossless (the reversible wavelet) or a compression ratio from 2:1 to 100:1, colour, colour with transparency or greyscale, a stored dpi and the choice of a JP2 file or a raw J2K codestream.

Choosing a compression ratio

A ratio of 10:1 to 20:1 is visually lossless for most photographs; archives often use lossless for masters and 20:1 to 50:1 for access copies. The estimated output size is shown next to the slider. Unlike JPEG, JPEG 2000 at high ratios blurs rather than making blocks.

JP2 or J2K

JP2 is the normal file format with a header that stores the colour space and resolution. J2K is the bare codestream that some medical and cinema systems expect. When in doubt, use JP2.

Limits

JPX files with more than the first codestream (layers, animation, fragment tables) and Motion JPEG 2000 video (.mj2) are not supported. ICC colour profiles in JP2 files are reported but not applied, so profile-tagged images may show slightly different colours. Very large images need a lot of memory; a 20,000 px scan may not fit on a phone, so decode it at a reduced size. The codec runs on this device; nothing is uploaded.

Worked example

A historian downloads a newspaper page from a digital library as page.jp2 (6.4 MB): 5,412 × 7,780 px, 1 component, 8-bit greyscale, 400 dpi. Decoding at full size takes a few seconds and gives a 42 MP PNG of 21 MB; decoding at 1/2 gives 2,706 × 3,890 px for reading on a phone. She also encodes 12 photos of 4,032 × 3,024 px to JP2 at 20:1, about 1.8 MB each, for an archive deposit that asks for JPEG 2000.

Quick facts

Frequently asked questions

Why do I need to download a codec?

Browsers do not decode JPEG 2000 themselves (except some versions of Safari). The OpenJPEG decoder and encoder, about 420 KB, is fetched once from a public CDN and then runs on your device.

Is JPEG 2000 lossless?

It can be. Tick Lossless to use the reversible wavelet: the decoded pixels are exactly the original. With a compression ratio it is lossy, like JPEG, but usually with better quality at the same size.

Why does my 16-bit scan look dark or flat?

Many 12- and 16-bit images do not use the full range. Keep Stretch on so the darkest and brightest values in the image become black and white in the 8-bit PNG or JPG.

Can it open the JP2 files from my map or satellite source?

Yes, if they are standard JP2 or J2K. The XML metadata, including GML georeferencing, is shown, but the output PNG or TIFF does not carry the map coordinates.

What about JPEG XL or HEIC?

Those are different formats. This tool reads and writes only JPEG 2000; it accepts JPG, PNG, WebP, BMP and TIFF as input for encoding.

Are my images uploaded?

No. Files are read and converted in this browser tab.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages