# What Is a PEF File? Pentax's RAW Format, Tested on a Mac

> What a PEF file is, which Macs open it, and how to convert PEF to JPG locally. RevelRaw's test: macOS 27 opened 38 of 39 Pentax PEFs.

- Canonical HTML: https://revelraw.com/blog/what-is-a-pef-file.html
- Markdown mirror of this page: https://revelraw.com/blog/what-is-a-pef-file.md
- Published: 2026-11-14
- Language: English
- Machine-readable site index: https://revelraw.com/llms.txt · Full site as one file: https://revelraw.com/llms-full.txt

Published November 14, 2026 · [Daniel Tello](https://revelraw.com/about.md) · RevelRaw

**Quick answer:** A PEF file is Pentax's RAW format: unprocessed sensor data, shooting metadata and three camera-made JPEGs in one TIFF-based file. A Mac opens it with no extra software when Apple lists the camera. In RevelRaw's November 2026 test of 39 public-domain PEFs from 29 Pentax cameras, macOS 27.0.1 opened 38; only the K-3 Mark III Monochrome file failed.

PEF is Pentax's own RAW format, written by Pentax digital SLRs since 2003 and still the default on current bodies. The letters are usually read as Pentax Electronic File (some references say Pentax Electronic Format); Ricoh's manuals just call it "a PENTAX original RAW file format". The test results below are RevelRaw's own, from all 39 public-domain PEFs in our September 2026 index of the [raw.pixls.us](https://raw.pixls.us/) archive, from the 2003 \*ist D to the 2023 K-3 Mark III Monochrome ([how we tested](https://revelraw.com/blog/what-is-a-pef-file.md#method)).

Open your PEF files free on a Mac.

RevelRaw · Your first full-quality export is free · macOS 26 or later · Apple M1 or later

[Open PEF files free](https://apps.apple.com/app/apple-store/id6773942240?pt=120914369&ct=BlogPef&mt=8)

## What is a PEF file?

A PEF is a TIFF-based container: the raw sensor data, the shooting metadata, and three JPEGs the camera made at capture. The sensor data hasn't been through the camera's white balance, sharpening or color processing, so you make those calls later, with more room to rescue highlights and shadows than a JPEG leaves.

- **The raw data.** Current bodies record 14-bit RAW. Many earlier and entry-level bodies recorded 12-bit (in our samples: the \*ist series, K100D to K-7, K-x, K-r, K-S1, K-S2). The raw data is stored compressed on every body since the K10D (2006); in our samples only the six 6 MP bodies from 2003 to 2007 stored it without compression. Pages that call PEF "uncompressed" are describing cameras about twenty years old.
- **The metadata.** Camera, lens and exposure settings, plus GPS coordinates when the camera or an accessory recorded them.
- **Three JPEGs.** A 160×120 thumbnail, a 640×480 or 720×480 preview, and a full-resolution JPEG. All 39 PEFs we checked had all three, and the large one matched the decoded size on 33 of the 38 files macOS could decode (five early 6 MP bodies embed 3008×2000 against a 3008×2008 decode). Pixel Shift and HDR files add a second preview and thumbnail.

PEF arrived in 2003 with the \*ist D, Pentax's first interchangeable-lens digital SLR. In 2006 the K10D added DNG next to PEF. DPReview's [review at the time](https://www.dpreview.com/reviews/pentaxk10d) called it the first digital SLR to offer both its maker's RAW format and Adobe's DNG. PEF was never retired: on current bodies the RAW File Format menu offers PEF or DNG, and PEF is the default (we checked the KF, KP, K-1 Mark II, K-3 Mark III and K-3 Mark III Monochrome manuals).

The camera line is changing, though. On September 9, 2026 Ricoh [said](https://news.ricoh-imaging.co.jp/rim_info2/2026/20260909_042557.html) it "will discontinue production of the current K series digital SLR cameras" while it develops "a new series of digital SLR cameras based on an entirely new concept". It gave no end date and no model list. The newest K-series body, the K-3 Mark III Monochrome from April 2023, writes PEF like the rest.

PEF does the same job as Canon's [CR2](https://revelraw.com/blog/what-is-a-cr2-file.md) and Nikon's [NEF](https://revelraw.com/blog/what-is-a-nef-file.md): each is its maker's own RAW format, holding the sensor data with the camera's settings and previews.

Not every .pef is a photo: braille files in the Portable Embosser Format use the same extension. If a .pef didn't come from a camera, that is the likely explanation.

Open your PEF files on this Mac in the next minute.

RevelRaw reads PEF straight from Finder, no plug-ins or converters. Your first full-quality JPEG export is free.

macOS 26 or later · Apple M1 or later

[Open PEF files free](https://apps.apple.com/app/apple-store/id6773942240?pt=120914369&ct=BlogPef&mt=8)

## Can a Mac open PEF files?

A Mac opens PEF files from most Pentax cameras with no extra software, through the RAW support built into macOS that Preview and Photos use. Apple's [list for macOS 27](https://support.apple.com/en-us/127493) (published October 30, 2026) names 34 Pentax cameras, from the \*ist D to the KF and K-3 III. The K-1 is listed for single-shot RAW only. The K-3 Mark III Monochrome is not on the list, and neither are the K-50, K-500, K-01, Q7, Q10 or Q-S1. Apple's [macOS 26 Tahoe list](https://support.apple.com/en-us/122870) has the same 34 Pentax entries.

Older systems cover fewer cameras. Apple's [list for macOS Sonoma](https://support.apple.com/en-us/105094) (current as of July 2024) has 30 Pentax entries and does not name the K-1 II, K-3 III, KP or KF. That is Apple's list, not our test: we ran our files on macOS 27.0.1 only.

**Check your own Mac.** Hold Option, open the Apple menu and choose System Information, then go to Software > Raw Support. That pane is the list your Mac actually uses; on our macOS 27.0.1 Mac it showed the same 34 Pentax names as Apple's web page. If your camera is on it, Preview and Photos use that support to open its PEFs.

**If your camera isn't listed.** Apple says macOS also has "basic support for RAW files in DNG (Digital Negative) format when captured by these and other cameras", which is why switching the camera to DNG is the usual fix for a body Apple has not added. In our test all 36 Pentax in-camera DNGs opened, including files from the K-3 Mark III Monochrome, K-50, K-500, K-01 and Q7, none of which Apple lists. For files you've already shot, convert them to DNG with Ricoh's own software, which Ricoh lists only up to macOS Sequoia (see [which apps open PEF](https://revelraw.com/blog/what-is-a-pef-file.md#which-apps)), or use a RAW editor that brings its own decoder. Our guide to [RAW files that won't open on a Mac](https://revelraw.com/blog/raw-files-wont-open-on-mac.md) covers the other causes.

## What happened when we opened 39 PEFs on macOS 27

On November 14, 2026, RevelRaw ran 39 public-domain PEFs from 29 Pentax bodies (2003 to 2023) through the RAW decoder built into macOS 27.0.1, and 38 opened at full size. The one that did not was from the K-3 Mark III Monochrome, which is not on Apple's list; the same camera's DNG opened. For comparison, a stable build of a widely used open-source RAW decoder, installed in April 2026, opened all 39, the Monochrome file included.

| PEF group | Files (bodies) | macOS 27.0.1 built-in decoder | Open-source decoder build |
| --- | --- | --- | --- |
| 6 MP bodies, 2003 to 2007 (raw data not compressed) | 6 (\*ist D, \*ist DS, \*ist DL, K100D, K100D Super, K110D) | 6 of 6 | 6 of 6 |
| Compressed single shots, K10D (2006) to KF (2022) | 25 (22 bodies, including the 645D, 645Z, K-1, K-1 Mark II and K-3 Mark III) | 25 of 25 | 25 of 25 |
| Pixel Shift and HDR (several exposures in one file) | 7 (K-1, K-1 Mark II, K-3 Mark III) | 7 of 7 (first exposure only in the 4 we checked) | 7 of 7 |
| K-3 Mark III Monochrome (2023) | 1 | 0 of 1 ("Cannot extract image from file") | 1 of 1 |
| All PEFs | 39 (29 bodies) | 38 of 39 | 39 of 39 |
| For comparison: in-camera DNG | 36 (28 bodies) | 36 of 36 | 36 of 36 |

RevelRaw lab, November 14, 2026. Public-domain files from raw.pixls.us, decoded at full size on an Apple silicon Mac; open-source build installed April 2026. One file per body for most bodies.

**The Monochrome file.** macOS answered "Cannot extract image from file" every time we tried it, while the camera's DNG decoded at its full 6192×4128. It is one file, and we can't tell you why it fails.

**A real decode, not the camera's preview.** Matching pixel sizes prove nothing with PEF, because the camera's full-size JPEG is usually as large as the decoded image. With every embedded JPEG wiped from the file, macOS produced the identical image, so it is developing the raw data, not showing the camera's preview; damaging a third of the raw data changed the picture every time (14 test files).

**Pixel Shift.** Pixel Shift Resolution, in Ricoh's words, "captures four images of the same scene by slightly shifting the image sensor for each image". The result is one file with four full exposures inside. macOS opens these files but shows only the first of the four exposures; it does not merge them. Apple's list says as much for the K-1 ("Single shot RAW format only"), and we saw the same on K-1 Mark II and K-3 Mark III files, a K-70 Pixel Shift DNG and a K-3 Mark III HDR file: blanking every exposure after the first left the output identical.

**Damaged files.** A PEF cut short in transfer can open as a solid black frame with no error. All five single-shot compressed PEFs we cut to 80% of their length did exactly that, while the two early 6 MP files and two DNGs cut the same way failed with an error. The five Pixel Shift and HDR files we cut, four PEFs and a DNG, still opened normally, probably because the missing part held later exposures that macOS doesn't show. A black PEF is a reason to copy the file off the card again before blaming the camera.

### How big is a PEF file?

In RevelRaw's November 2026 test, 32 single-shot PEFs ran from 9.6 MB to 70 MB, median 21.7 MB (half the files smaller, half larger); the 12 files from 2015 to 2023 bodies had a median of 32.3 MB. Ricoh's manuals budget about 30 MB per RAW for the KF and KP and about 50 MB for the K-3 Mark III and K-1 Mark II; our files came in at 30.6 MB (KF), 32.3 MB (KP, K-3 Mark III) and 45.7 to 47.7 MB (full-frame K-1 Mark II), so treat the manual figures as rough planning numbers, not limits. The medium-format 645Z file was 70.3 MB, in line with its manual's "approximately 70 MB". Against JPEG, Ricoh's table for the K-3 Mark III fits about 141 RAW files or 495 best-quality JPEGs on an 8 GB card, roughly 3.5 to 1.

*Single-shot PEFs roughly tripled in size from the first Pentax digital SLRs to recent bodies (medians 11.0, 20.9 and 32.3 MB for 2003 to 2008, 2009 to 2014 and 2015 to 2023 bodies; 10, 10 and 12 files), and a Pixel Shift file (121 MB from a K-3 Mark III, 169 to 176 MB from a K-1 or K-1 Mark II) is about 3.7 times a single shot from the same camera. Medians in MB (1,000,000 bytes), RevelRaw lab, November 14, 2026. The year groups mix sensor sizes: the medium-format 645D and 645Z sit in the later two.*

RevelRaw's [RAW file size study](https://revelraw.com/blog/how-big-is-a-raw-file.md) compares PEF with every other brand's format.

## How to convert PEF to JPG on a Mac without uploading it

You don't need an online converter. Three routes run entirely on your Mac, from quickest to most control:

1. **Preview, for a straight conversion.** Open the PEF in Preview, choose File > Export, pick JPEG as the format and save. Apple documents the steps in [Preview's user guide](https://support.apple.com/guide/preview/prvw1012/mac); TIFF is on the same menu. Preview relies on the built-in RAW support we tested, so this should work for the cameras on Apple's list. You get the photo as the Mac renders it; Preview is not a RAW editor.
2. **RevelRaw, to edit first.** Open the PEF in [RevelRaw](https://revelraw.com/index.md) (our app), start from one of the 50+ looks that AI scene detection ranks for the photo, adjust, and export as JPEG, PNG, TIFF, HEIF or DNG. The free download includes full editing and one free full-quality export; Pro adds unlimited exports and batch export. The export's Location option can remove GPS from the copy, and the Social and Web presets remove it by default.
3. **The camera's own JPEG, for a quick look.** Every PEF carries the full-resolution JPEG the camera made at capture (median 2.9 MB in our set, from 1.0 to 6.7 MB). With ExifTool installed, `exiftool -b -JpgFromRaw photo.PEF > photo.jpg` pulls it out without decoding the RAW. It is heavily compressed and carries the camera's rendering, so treat it as a quick preview, not an export.

Online "PEF to JPG" converters work by uploading: the original file goes to someone else's server, metadata included, and a PEF's metadata can include GPS coordinates when the camera or an accessory recorded them. Converting on the Mac keeps the file where it is. Either way, keep the PEF: the JPG is one rendering, and the PEF is the original you can develop again.

## PEF vs DNG: which should you shoot?

PEF and in-camera DNG files are nearly the same size. In RevelRaw's November 2026 test of 15 back-to-back pairs from 13 Pentax bodies (public raw.pixls.us samples), the DNG was 0.4% to 3.1% larger than the PEF (median 1.1%). On a K200D, which writes uncompressed DNG, it was 57% larger. In our samples the K10D, K20D and K200D wrote uncompressed DNG, while the K-7, K-x and every later K-series body compressed it. Each pair was two consecutive shots with identical settings, 11 to 42 seconds apart, not one exposure saved twice, so this compares size, not image content.

The real difference is who can read the file. macOS reads Adobe's DNG even from cameras Apple doesn't list: all 36 of our Pentax DNGs opened, while the K-3 Mark III Monochrome's PEF did not. Pixel Shift doesn't decide it: both formats hold all four exposures, at about the same size, and macOS showed only the first exposure of either.

- **Your camera is on Apple's list and your editor supports it:** keep PEF. It is the default, slightly smaller, and every route on this page reads it.
- **K-3 Mark III Monochrome, or another body Apple doesn't list:** shoot DNG if you want files a Mac opens on its own.
- **K10D, K20D or K200D:** PEF, by a wide margin, because their DNG is uncompressed (57% larger in our K200D pair).

For the format itself, see [what a DNG file is](https://revelraw.com/blog/what-is-a-dng-file.md); for the same question across every brand, our [DNG vs RAW comparison](https://revelraw.com/blog/dng-vs-raw.md) has the measurements.

## Which apps open PEF files?

Apple's macOS 27 list names 34 Pentax cameras, so Preview and Photos should open PEF files from those bodies; RevelRaw, Ricoh's Digital Camera Utility 5, Lightroom and Photoshop (through Adobe Camera Raw), Capture One and RawTherapee also read PEF.

- **Preview and Photos (built into macOS).** Already on your Mac, and free. They open PEFs from the cameras on Apple's list through the RAW support we tested. For every route to a RAW file on a Mac, see [how to open RAW files on a Mac](https://revelraw.com/blog/how-to-open-raw-files-on-mac.md).
- **RevelRaw (our app).** Opens PEF and DNG, two of the [24 RAW formats it reads](https://revelraw.com/formats.md). It uses the Mac's own RAW support first and falls back to a decoder of its own for many files macOS can't read. We have not tested the K-3 Mark III Monochrome PEF or Pixel Shift files in RevelRaw, so try yours in the free download first (full editing, one free full-quality export). It needs macOS 26 or later on an Apple M1 or later.
- **Digital Camera Utility 5 (Ricoh).** Ricoh's own Digital Camera Utility 5 opens PEF and saves JPEG or TIFF, and it can convert PEF to DNG. It can apply Motion Correction to Pixel Shift files, and since 5.10.1 (June 2023) it converts K-3 Mark III Monochrome PEFs to DNG. The Mac version was last updated on February 6, 2025 (5.10.2), lists macOS Sierra 10.12 through Sequoia 15, and is an Intel-only app, so on Apple silicon it runs through Rosetta 2. Apple [says](https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment) Rosetta will be available as a general-purpose tool for Intel apps through macOS 27. The download is an updater: it needs an existing DCU5 install.
- **Lightroom and Photoshop.** Both open PEFs through Adobe Camera Raw. Camera Raw has read K-3 Mark III PEFs since version 13.3 (2021), according to Adobe's community forum. A March 2017 pixls.us article said Camera Raw read Pixel Shift files from version 9.5.1 but didn't use their motion correction; we haven't checked current versions.
- **Capture One.** Capture One added the 645Z in 2021 (Capture One 21) and the K-3 Mark III in 2023 (Capture One 23). We found no statement on the K-3 Mark III Monochrome.
- **RawTherapee (free, open source).** The same 2017 [pixls.us article](https://pixls.us/articles/rawtherapee-and-pentax-pixel-shift/) describes RawTherapee reading Pentax Pixel Shift files (the article names the K-1, K-3 II, KP and K-70 as the bodies with the feature), with motion correction and a viewable motion mask. We didn't test it.

## How we tested

**Files.** We used every Pentax PEF and DNG licensed CC0 (public domain) in our September 28, 2026 index of [raw.pixls.us](https://raw.pixls.us/): 39 PEFs from 29 bodies (\*ist D, 2003, to K-3 Mark III Monochrome, 2023) and 36 in-camera DNGs from 28 bodies (2006 to 2023). They include six Pixel Shift PEFs, one HDR PEF and five Pixel Shift DNGs. Two more PEFs (K-m, \*ist DL2) carry a non-commercial license and were left out. All 75 files matched the archive's checksums.

**Decoding.** On November 14, 2026, on an Apple silicon Mac running macOS 27.0.1 (build 26A434), we decoded each file at full size with the Mac's built-in RAW support through Apple's sips command-line tool (16-bit output), and with a stable build of a widely used open-source RAW decoder installed in April 2026. File structure came from ExifTool 13.55; pixel comparisons from an open-source image tool.

**Checks.** On 14 files (11 PEFs, 3 DNGs) a second run gave identical pixels, wiping or zeroing every embedded JPEG gave identical pixels, and zeroing a third of the raw data changed the image. On five multi-exposure files, blanking every exposure after the first changed nothing. We cut all 14 files to 80% of their length. Size pairs match each PEF with a same-body DNG shot 11 to 42 seconds apart at identical settings (16 pairs, 14 bodies: the 15 compressed pairs plus the K200D); MB means 1,000,000 bytes. A second, independent pass with its own scripts reproduced the Monochrome PEF and DNG results, one preview wipe and one Pixel Shift check.

**Limits.** Most bodies are represented by one file, so 38 of 39 files means 28 of 29 bodies. We tested macOS 27.0.1 only, through the command-line tool, not inside Preview, Photos or Quick Look; anything about macOS 26 and Sonoma comes from Apple's lists. Our K-50, K-500 and K-01 files were DNGs, so PEFs from those bodies are untested. We didn't test image quality, RevelRaw itself or any third-party editor; their entries come from makers' pages and dated reports, read November 14, 2026. We plan to re-run the set after each major macOS release, or sooner if Apple's list changes.

Open your PEF files on this Mac in the next minute.

RevelRaw reads PEF straight from Finder, no plug-ins or converters. Your first full-quality JPEG export is free.

macOS 26 or later · Apple M1 or later

[Open PEF files free](https://apps.apple.com/app/apple-store/id6773942240?pt=120914369&ct=BlogPef&mt=8)

## FAQ

### What is a PEF file?

PEF is Pentax's own RAW format, used since the \*ist D in 2003 and still the default on current Pentax bodies. A PEF is a TIFF-based container holding the camera's raw sensor data, the shooting metadata and three JPEGs the camera made at capture, the largest at full resolution. Not every .pef is a photo: braille files in the Portable Embosser Format use the same extension.

### Can a Mac open PEF files?

Yes, for the 34 Pentax cameras on Apple's macOS 27 list, through the RAW support Preview and Photos use. In RevelRaw's November 2026 test, macOS 27.0.1 opened 38 of 39 PEFs from 29 bodies; the K-3 Mark III Monochrome file, from a body Apple doesn't list, failed. Your Mac's own list is in System Information under Software > Raw Support.

### How do I convert PEF to JPG on a Mac?

Open the PEF in Preview, choose File > Export and pick JPEG; this should work for cameras on Apple's RAW list. To edit before converting, open the file in a RAW editor such as RevelRaw and export a JPEG; your first full-quality export is free. Both run on your Mac, so nothing is uploaded. Keep the PEF afterwards as your original.

### Should I shoot PEF or DNG on a Pentax?

PEF if your camera is on Apple's RAW list and your editor supports it: it is the camera's default and, in RevelRaw's November 2026 test of 15 back-to-back pairs, a median 1.1% smaller than the DNG. DNG if you shoot a K-3 Mark III Monochrome or another body Apple doesn't list, because macOS has basic DNG support for cameras it doesn't name.

### Why won't my PEF file open on my Mac?

First check whether your macOS version's RAW list includes the camera: Apple's Sonoma list lacks the K-1 II, K-3 III, KP and KF, and the macOS 27 list lacks the K-3 Mark III Monochrome. Check System Information > Software > Raw Support. If a PEF opens as a solid black frame, the file may have been cut short; copy it from the card again.

### Can I open Pixel Shift PEF files on a Mac?

Yes, but macOS shows only the first of the four exposures and does not merge them. Apple lists the K-1 for single-shot RAW only, and RevelRaw's test saw the same first-exposure result on K-1 Mark II and K-3 Mark III files. To combine the frames, use software built for Pixel Shift, such as Ricoh's Digital Camera Utility 5 (an Intel app Ricoh lists up to macOS Sequoia).

Related reading: [How to open RAW files on a Mac](https://revelraw.com/blog/how-to-open-raw-files-on-mac.md) · [What is a DNG file?](https://revelraw.com/blog/what-is-a-dng-file.md) · [DNG vs RAW, measured](https://revelraw.com/blog/dng-vs-raw.md) · [RAW files won't open on a Mac](https://revelraw.com/blog/raw-files-wont-open-on-mac.md) · [Free sample RAW files](https://revelraw.com/sample-raw-files.md) · [All RAW formats RevelRaw opens](https://revelraw.com/formats.md) · [What is a RAF file?](https://revelraw.com/blog/what-is-a-raf-file.md) · [What is a NEF file?](https://revelraw.com/blog/what-is-a-nef-file.md)
