PEF to JXL Converter: Pentax RAW to JPEG XL | MiConvert

Convert Pentax PEF RAW to JPEG XL (JXL)

Each PEF becomes a JPEG XL file holding an 8-bit JPEG image, repacked so that JPEG can be rebuilt exactly. It is not a lossless copy of the RAW, and plenty of apps still cannot open JXL, so check yours first.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
PEF → JXL

Why a Pentax RAW file ends up as JPEG XL, and what that means

A PEF is made for editing, not viewing. It records what the Pentax sensor captured and leaves demosaicing, color and tone to software, so ordinary viewers and websites cannot show it. JPEG XL is a newer image format standardized as ISO/IEC 18181. It can store pictures lossily or losslessly, and one of its distinctive features is repacking an existing JPEG into a JXL file without changing any decoded pixel.

That feature is how this converter works. On our servers each PEF is first turned into a JPEG, and the cjxl encoder then repacks that JPEG into JXL. The JPEG comes from one of two places. If the preview Pentax embedded in the file has a long edge of at least 90% of the full sensor image, it is used directly. Otherwise the raw data is developed by LibRaw, with RawTherapee, a newer LibRaw build and dcraw as backups, using the camera's white balance and sRGB color. That developed image is written as a quality 95 JPEG before repacking.

Because the repack keeps JPEG bitstream reconstruction data, the JXL can be turned back into the exact JPEG it came from. The trade-off is that the picture has already been through JPEG compression once and is 8-bit. Developed frames are sRGB, while a reused camera preview keeps whatever color encoding the camera used. None of the extra bit depth or high dynamic range JPEG XL can hold is used here. Orientation is stored as a flag in the JXL header. EXIF and ICC profiles are not included, and developed frames get no noise reduction, lens correction or highlight recovery.

This conversion suits people who already keep a JPEG XL photo library, or who publish to a platform that accepts it, and want their Pentax shots in the same format. For true archiving, keep the PEF itself. A JXL from us cannot stand in for the RAW data.

How to convert PEF to JXL

  1. Confirm that the app or site where you will open the result can read .jxl files. If it cannot, pick JPG as the target instead.
  2. Move the PEF files off the card in one complete copy. Keep each at 80 MB or less, the per-file ceiling for RAW on all plans; guests are also limited to 50 MB per file, or 100 MB with a free account.
  3. Upload as many as 10 PEF files per batch, or 25 on Plus and 50 on Pro, and start the job.
  4. Each file is either taken from its camera preview or fully developed, then repacked by cjxl. Developed files take longer.
  5. Download every .jxl within roughly 4 hours, since outputs are erased after that.
  6. Need a regular JPEG later? Run djxl file.jxl file.jpg and the original JPEG bytes are restored.

Inside the PEF to JXL conversion

  • Lossless JPEG repacking with cjxl, keeping the reconstruction data needed to restore the source JPEG bit for bit.
  • A quality 95 JPEG intermediate for developed frames, higher than the quality 90 used for our direct JPG output.
  • Camera preview reuse when it is close to sensor resolution, so Pentax's own rendering is wrapped without recompression.
  • Orientation recorded in the JXL header for frames shot in portrait.
  • Four RAW decoders in a fallback chain, with a current LibRaw build tried first for bodies too new for the older release.
  • Early file checks that catch zero-filled card copies, files under 1 KB and macOS ._ files before decoding starts.

PEF to JXL questions

Is converting PEF to JXL lossless?

Only the last step is. The JPEG we build from the PEF goes into JXL without further loss, but creating that JPEG already discarded data: the RAW's bit depth is cut to 8 bits and JPEG compression is applied. Keep the PEF if you need everything the sensor recorded.

What can open a JXL file?

Support is uneven. Recent Apple operating systems and Safari display JPEG XL, and editors such as GIMP, Krita and darktable can open it. Elsewhere it varies, and many websites and apps still reject the format. Test one file in your target app first, and choose our PEF to JPG conversion if it fails.

Does the JXL keep 16-bit color or HDR from the RAW?

No. The image inside is 8-bit because it passes through a JPEG first, and developed frames are sRGB. For 16-bit or wide-gamut results, develop the PEF in a desktop RAW editor and export JPEG XL from there, if that editor supports it.

Can I turn the JXL back into a JPEG, or back into PEF?

Back to JPEG, yes. The file carries reconstruction data, so djxl from the libjxl tools rebuilds the exact JPEG it was made from. Back to PEF, no, because the raw sensor data is not inside.

Are camera settings, date and location kept?

No EXIF is written, so the JXL lacks capture date, camera and lens model, exposure settings and GPS. Keep the original PEF as the record of that information, or copy the tags across with exiftool -TagsFromFile if your tools handle JXL metadata.

Which Pentax cameras work, and what if mine fails?

Bodies known to LibRaw 0.20, RawTherapee 5.9 or our current LibRaw build should convert. When none of them can read a file, PEF uploads currently show a terse technical message starting with "RAW conversion failed" instead of a friendly explanation. Recopy the file from the card, check that it is a real PEF, or convert it to DNG with a desktop converter and try that; for future shots, many Pentax bodies can record DNG instead of PEF.

Why was my PEF rejected or cut short?

Three limits apply: 80 MB per RAW file on every plan, 50 MB per file for guests (100 MB with a free account), and a 2-minute processing budget that ends with a "too large or complex to process online" message. A file under 1 KB or filled with zeros points to a failed copy. When every decoder fails, you may get a reduced preview instead of the full image, so check its dimensions.

What happens to my files after conversion?

They are processed on our servers and sent over HTTPS. The uploaded PEF is removed once its conversion ends; the JXL stays available for roughly 4 hours and is then erased. Whoever holds the random download link can use it during that window. We log file names, sizes and results, and signed-in accounts keep a history row with the first file name until the account is deleted.