Saved

Press the star next to a tool's name to save it.

All my tools

HEIC to J2K Converter

Use this HEIC to J2K converter to turn iPhone .heic photos into lossless JPEG 2000 codestream files with a WebAssembly encoder in your browser.

Your images are converted on your device with a WebAssembly JPEG 2000 encoder. Nothing is uploaded.

Converted images

Choose HEIC images to convert them to J2K.

A HEIC to J2K converter turns photos saved as .heic into JPEG 2000 codestream files with the .j2k extension. Choose your HEIC photos, and the J2K files are made in your browser, with a WebAssembly encoder, and are ready to download in moments. The files are lossless, and nothing is uploaded.

How to use the HEIC to J2K converter

  1. Choose your HEIC or HEIF photos, or drop them on the box. You can convert up to 30 at once.
  2. Wait while the photos are converted. The first one loads the encoder.
  3. Press Download beside a photo, or Download all (.zip).

What J2K is

J2K is one of the extensions that JPEG 2000 uses. The Wikipedia page on JPEG 2000 explains that the standard, ISO/IEC 15444, is based on a discrete wavelet transform and has a lossless mode, with a reversible integer wavelet, and a lossy mode. It also explains that the compressed image data, called the codestream, can be stored as it is or wrapped in a box container, which is the JP2 file format. A .j2k file holds the raw codestream. Programs that work with raw JPEG 2000 data, for example in imaging pipelines, often use it. If your program asks for .jp2 files, use the converters on this site that make JP2.

What HEIC is

HEIC is the format that Apple chose as the default for photos on the iPhone with iOS 11. It is HEIF, a container that is based on the ISO base media file format, with images that are coded with HEVC. The Wikipedia page on HEIF notes that Windows charges a small amount for the HEVC codec. The page also says that HEIF can hold JPEG 2000 content, and that the standard has a part that defines how to encapsulate it, which shows that the two formats are related, though they are not the same thing as a J2K file.

Why convert HEIC to J2K

You would do this when a tool for scientific, medical, archive or mapping work asks for JPEG 2000 and cannot read HEIC. The Wikipedia page lists such uses, among them digital cinema, medical imaging in the DICOM standard, remote sensing and digital preservation. JPEG 2000 is generally not supported in web pages, so for a picture on a website, use JPG, PNG or AVIF instead.

How the conversion works

The page decodes the HEIC photo into pixels in your browser, which also turns a sideways phone photo upright, and encodes them with OpenJPEG, an open-source JPEG 2000 library that runs as WebAssembly. The result is a lossless codestream of three 8-bit colour channels. The raw codestream has no colour box, so the program that opens it assumes the colour space. Phone photos have no transparency, and any transparent area would be white.

File size and quality

Lossless JPEG 2000 files are usually larger than HEIC photos, which use lossy compression. The result page shows the size of each file, so that you can check it. Details stored in the HEIC, such as the time and place of the photo, are not copied.

Opening the J2K file

Not every program opens a raw J2K file by double-clicking, because it has no header that gives the size and the colour space in the container form. Image libraries and scientific tools that support JPEG 2000 read it, and some viewers do too. If a program says that it cannot open the file, check whether it supports JPEG 2000 codestreams, or use a JP2 file instead. The AVIF to JP2 converter on this site writes JP2 files from AVIF images.

Large photos

Modern phone photos are large, and a lossless encode of a twelve-megapixel photo needs a lot of memory. The converter works on one photo at a time. If your browser runs out of memory, try fewer photos at once or use a computer with more memory.

Checking the result

Open a converted file in the program where you plan to use it, and check the size and the colours. The converter shows the pixel size of each result. Test a single photo first if you plan to convert many, and keep the original HEIC photos, since they are small and hold the details of the shot. Converting from the original each time is better than converting a converted file again.

When JPEG 2000 makes sense

JPEG 2000 suits uses that value exact pixels and a standard that archives and imaging systems accept. For photos that you share with friends, put on a website or edit in a common photo app, JPG, PNG or AVIF are easier choices, since far more programs open them.

Common mistakes

  • Needing a .jp2 file. This page makes raw .j2k codestreams.
  • Using J2K for the web. Browsers do not show it.
  • Expecting a small file. Lossless files are large.
  • Expecting the photo data to be kept. Time and place are not copied.

What next

Use this often? Add HEIC to J2K to your Home screen.

Frequently asked questions

What is a HEIC to J2K converter?

A tool that turns HEIC or HEIF photos into JPEG 2000 codestream files with the .j2k extension.

What is the difference between J2K and JP2?

A J2K file holds the raw JPEG 2000 codestream. A JP2 file wraps the codestream in a box container.

Is the J2K file lossless?

Yes. The converter writes the lossless mode of JPEG 2000.

Is my photo uploaded?

No. The HEIC is decoded and the J2K is encoded in your browser.

Can I use J2K on a web page?

Not reliably. Browsers generally do not support JPEG 2000 in web pages.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Image Tools