Reference Formats
PEF
PEF is Pentax's proprietary raw format, first used on the *ist D digital SLR in 2003, storing unprocessed Bayer sensor data in a TIFF-based, losslessly compressed container.
Extension
.pef
Full name
Pentax Electronic File
Introduced
February 2003, with the Pentax *ist D
Vendor
Pentax (now Ricoh Imaging)
What is inside the container
PEF uses a TIFF-based structure carrying 12-bit or 14-bit Bayer sensor data compressed with a lossless scheme, plus standard EXIF fields and Pentax-specific maker-note metadata (lens ID, in-camera correction settings) and an embedded JPEG preview. There is no public specification, but the format has been thoroughly reverse-engineered, giving it broader and more stable third-party support than several other niche manufacturer raw formats. Many Pentax bodies can also shoot DNG natively in-camera as an alternative to PEF.
How to open it
For archives
PEF is proprietary but well understood by third-party decoders after two decades of reverse engineering, so the format itself is not an acute risk today. For DAM archival, converting to DNG is still worthwhile for long-term interoperability and to align with a single archival raw standard — and it is worth noting many Pentax bodies can shoot DNG directly in-camera, sidestepping the conversion step entirely.
Pentax introduced the *ist D in February 2003, its first digital SLR, and PEF alongside it as the camera’s native raw format. The name is generally expanded as Pentax Electronic File. Like most manufacturer raw formats of that generation, PEF is built on a TIFF skeleton, storing the sensor’s raw Bayer readout with lossless compression so file sizes stay smaller than an uncompressed capture while none of the original sensor data is discarded.
What distinguishes PEF from several of its contemporaries is Pentax’s own later move toward openness: many Pentax and Ricoh GR-series bodies let photographers shoot DNG directly in-camera as a built-in alternative to PEF, rather than requiring a separate conversion pass. That option does not exist for most competing manufacturer raw formats and reflects Pentax’s comparatively pragmatic approach to the archival-format question.
For DAM purposes, PEF is a lower-risk proprietary format than most: two decades of active reverse engineering means Adobe, libraw, RawTherapee, and darktable all handle it reliably. Still, converting incoming PEF to DNG (or simply favoring the camera’s native DNG shooting mode where available) keeps a photo library on one consistent archival raw standard rather than juggling per-manufacturer decoders indefinitely.
Frequently asked
Is PEF as risky for a DAM as other undocumented proprietary raw formats?
Less so. PEF has no public specification, but it has been thoroughly reverse-engineered over two decades, giving it broader and more stable third-party support than several other niche manufacturer raw formats.
Can Pentax cameras avoid the PEF-to-DNG conversion step entirely?
Yes, partly. Many Pentax bodies can shoot DNG natively in-camera as an alternative to PEF, sidestepping conversion for images captured that way.
What compression and bit depth does PEF use?
12-bit or 14-bit Bayer sensor data compressed with a lossless scheme, plus standard EXIF fields and Pentax-specific maker-note metadata such as lens ID and in-camera correction settings.
When was PEF introduced?
February 2003, with the Pentax *ist D digital SLR.
Should a DAM still convert PEF to DNG despite its stable third-party support?
Yes, for long-term interoperability and to align with a single archival raw standard, even though PEF itself is not an acute format-longevity risk today.
What native Pentax/Ricoh software opens PEF?
Pentax Digital Camera Utility, formerly Silkypix-based, Ricoh Imaging's own raw converter.
What command-line tooling has historically supported PEF?
dcraw and libraw-based utilities, which have supported PEF for most of the format's history.
Who is the current owner of the Pentax brand and PEF format?
Ricoh Imaging, following Pentax's acquisition, though the format retains the Pentax name.
Sources
- Pentax announced the *ist D digital SLR on 26 February 2003, the first Pentax digital camera to use the PEF format checked 2026-08-07 — Camera-wiki.org / DPReview *ist D coverage
- PEF stands for Pentax Electronic File and uses lossless data compression on raw sensor data checked 2026-08-07 — Just Solve the File Format Problem (Archive Team wiki), Pentax PEF
- PEF files are supported by Adobe Camera Raw/Lightroom, Pentax's own Digital Camera Utility, and open-source raw converters checked 2026-08-07 — FileFormat.com, PEF File Format