.PEF

PEF File

Pentax Electronic File (Pentax digital camera raw image)
Ask a question
QUICK ANSWER

A PEF file is the raw image format produced by Pentax (Ricoh Imaging) DSLRs - the unprocessed sensor data before any color or sharpness adjustments are applied. On Windows, install the free Raw Image Extension from the Microsoft Store to preview PEF files in Explorer. To edit or convert them, use the free darktable or RawTherapee.

Developer: Pentax (Ricoh Imaging) Category: Camera Raw Files MIME: image/x-pentax-pef
OPENS ON Windows macOS Linux
Related: .CR2 · .NEF · .ARW · .RW2

On this page

19k+ extensions indexed
Last reviewed Jul 7, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PEF file format?

.pef files are generated by Pentax digital cameras (now marketed under the Ricoh Imaging brand).

What do .pef files store?

A typical .pef file contains a raw sensor image - either uncompressed or losslessly compressed depending on the camera model. It is built on a TIFF-based container and includes the full-bit-depth data captured by the camera's sensor, an embedded JPEG preview, and EXIF metadata with Pentax-specific MakerNote entries.

How Pentax cameras save photos

.pef files store raw sensor data without any additional adjustments applied by the camera software. Images are saved in an unprocessed format exactly as captured by the sensor, preserving 12-bit or 14-bit per-channel color depth for maximum post-processing flexibility. Ricoh Imaging cameras can also save photos in the open .DNG format, which offers broader software compatibility while keeping the same raw advantage.

Why can't I open a .pef file?

Some applications have problems opening certain .pef files because the standard is not unified. Various Pentax cameras save images using slightly different per-model variants of the format, and newer bodies may require updated decoder profiles. The best solution is to use tools compatible with your specific Pentax camera model - keeping raw developers such as darktable or RawTherapee up to date ensures the widest support.

Security & safety

RISK: LOW

PEF is a passive image data file - it contains sensor data and metadata, not executable code, so opening one is safe. The practical cautions are non-malware: PEF is large and proprietary, so keep originals backed up and consider archiving to open DNG for longevity; and remember EXIF/maker-note metadata (camera, sometimes GPS, timestamps) travels with the file - strip it before publishing if privacy matters. Editing is non-destructive in raw developers, so the original PEF is kept.

Format details

in a nutshell
FULL NAMEPentax Electronic File (Pentax digital camera raw image)aka Pentax RAW, Pentax Electronic Format
DEVELOPERPentax (Ricoh Imaging)since early 2000s (Pentax *ist D era, c. 2003); still produced by current Pentax/Ricoh DSLRs alongside DNG
MIME TYPEimage/x-pentax-pef
TYPETIFF-based proprietary camera raw image (binary)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
49492A00
ASCII
II*·
PEF is built on the TIFF/EP container and begins with the little-endian TIFF signature 49 49 2A 00 ("II*\0") at offset 0, the same start as a generic TIFF and as Canon CR2. A PEF is distinguished from a plain TIFF by its Pentax MakerNote (the maker-note string contains "PENTAX") and by the raw image strips. Pentax/Ricoh bodies can also save the open Adobe DNG raw format, which uses the same TIFF base but a documented layout.

Programs that open PEF files

Windows6 apps
darktable Open-source Free Lightroom-style raw developer; import the PEF to edit non-destructively and export JPG/TIFF.
FastStone Image Viewer Free Free image viewer that reads PEF and converts to JPG/PNG (free for personal use).
RawTherapee Open-source Free, powerful raw processor with good Pentax demosaicing; open the PEF and export.
Raw Image Extension (Microsoft Store) Free Install from the Microsoft Store to show PEF thumbnails/previews in File Explorer and the Photos app.
Adobe Lightroom / Photoshop (Camera Raw) Paid Import the PEF; Camera Raw develops it. Industry standard but subscription-based.
XnView MP Free Free viewer/batch tool; displays PEF and batch-converts to JPG (personal use free).
macOS3 apps
darktable Open-source Free raw developer for Mac; import and edit the PEF, export to JPG/TIFF.
Apple Photos / Preview Built-in macOS includes Pentax raw support; double-click to preview, or import into Photos to view/edit PEF.
Adobe Photoshop / Lightroom (Camera Raw) Paid Open the PEF via Camera Raw to develop with model-accurate colour.
Linux3 apps
darktable Open-source The go-to free raw developer on Linux; import PEF, edit, export.
RawTherapee Open-source Open the PEF to develop with fine-grained control; export JPG/TIFF.
GIMP (+ darktable/RawTherapee plugin) Open-source GIMP opens PEF via its darktable/RawTherapee raw loader, then edits as a normal image.

Technical details

deep spec
ContainerTIFF/EP (Tagged Image File Format / Electronic Photography)
EncodingBinary
Byte orderLittle-endian
Magic bytes49 49 2A 00 ("II*\0") at byte offset 0 - standard little-endian TIFF signature
CompressionPentax lossless compression (model-dependent); some bodies write uncompressed raw
Color depth12-bit or 14-bit per channel raw sensor data; demosaiced to up to 16-bit per channel
Typical file size10 MB - 60 MB (rises with sensor resolution; ~40+ MB on K-1 36 MP)
Max image dimensionsUp to ~7360 × 4912 px (36 MP K-1); varies by sensor model
MIME typeimage/x-pentax-pef
Embedded previewReduced and/or full-size JPEG preview stored in the TIFF IFD structure
MetadataEXIF and Pentax-specific MakerNote (identified by "PENTAX" string in maker-note block)
Internal structureTIFF IFDs indexing raw sensor strips, embedded JPEG preview, and EXIF/MakerNote blocks
Platform supportWindows, macOS, Linux (via open-source raw developers)
Encryption / integrityNo encryption and no built-in checksum; data integrity relies on the file system
Releasedearly 2000s (Pentax *ist D era, c. 2003); still produced by current Pentax/Ricoh DSLRs alongside DNG
Latest versionNo public versioned spec; per-model TIFF/EP variants (Pentax/Ricoh maker notes)
Specificationwww.ricoh-imaging.co.jp

PEF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PEF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PEF files.

Frequently asked questions

How do I open a PEF file on Windows?
Install the free Raw Image Extension from the Microsoft Store to see PEF thumbnails and previews in File Explorer and the Photos app. To edit, use the free darktable or RawTherapee.
What program opens PEF files for free?
darktable and RawTherapee (free, open source) open and develop PEF on Windows, Mac and Linux. XnView MP and FastStone are free viewers. On Mac, Photos/Preview support Pentax raw natively.
How do I convert a PEF to JPG?
Open the PEF in darktable, RawTherapee, XnView or FastStone, adjust as needed, and Export/Save As JPEG. These tools also batch-convert whole folders of PEF to JPG.
What is the difference between PEF and DNG on a Pentax camera?
PEF is Pentax's proprietary raw; DNG is Adobe's open, documented raw. Both hold the same raw sensor data, but DNG opens in almost any editor without special camera profiles. Many Pentax bodies let you choose either - pick DNG for maximum compatibility.
Why can't I see my PEF photos in Windows?
Windows doesn't decode Pentax raw out of the box. Install the free Raw Image Extension from the Microsoft Store and the thumbnails/previews will appear in Explorer and Photos.
My old software won't open a new Pentax PEF - why?
Each camera model writes a slightly different PEF variant, so software needs an updated decoder profile for newer bodies. Update darktable/RawTherapee/Lightroom to the latest version, or convert with the current Adobe DNG Converter.

References

1Microsoft Store - Raw Image Extensionapps.microsoft.com
2Ricoh Imaging - Pentax cameras (official)www.ricoh-imaging.co.jp

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.BINCD/DVD Disc Image (BIN/CUE)
6.EXEWindows Executable (Portable Executable)
7.RPMSGRestricted Permission Message
8.NOMEDIAAndroid No-Media Marker File
9.MDMarkdown Document
10.TXTPlain Text File

Related extensions

.CR2Canon RAW 2 (Canon digital camera raw image, version 2)
.NEFNikon Electronic Format (Nikon camera raw image)
.ARWSony Alpha Raw (Sony digital camera raw image)
.RW2Panasonic Lumix RAW Image (version 2)
.RAFFujifilm RAW Image (RAF)
.DNGDigital Negative (Adobe DNG)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z