← Notes

Matching RAW files to their exported JPEGs

Shoot RAW+JPEG, edit in one app, export from another, and soon nothing matches — the JPEG called DSC_0421 came from a RAW now called something else. Here is how file pairing works, how it breaks, and how to keep sets together.

A photograph taken in RAW often exists as several files: the RAW itself, a JPEG the camera saved alongside it, an XMP sidecar holding edits from your photo editor, and later one or more exported JPEGs.

Photo software keeps track of which files belong together largely by name. When the names drift apart — which happens easily — the set falls apart too.

How pairing works

The convention is simple: files that belong together share the same stem — the name without its extension.

DSC_0421.NEF
DSC_0421.JPG
DSC_0421.xmp

Lightroom, Capture One, Photos and most other photo apps recognise these as one photograph with several representations. Edits stored in DSC_0421.xmp apply to DSC_0421.NEF. Deleting the RAW may offer to delete the JPEG.

Some cameras and apps also use names like DSC_0421.NEF.xmp for sidecars. Either convention works, as long as it is applied consistently.

How it breaks

Renaming one file of the set. Rename DSC_0421.JPG to 2026-10-03_harbour_001.jpg in Finder, and the RAW and sidecar keep their old names. Your software now sees two unrelated photographs.

Renaming files separately. Renaming the RAWs one day and the JPEGs the next, with the same pattern, usually produces the same result — until one file is missing from one set, and every number after it is shifted by one.

Renaming by the wrong date. A rule based on the file's modification date gives different results for the RAW and the JPEG if one was copied or edited later. A rule based on the capture date inside the image gives the same result for both.

Exports with new names. An exported JPEG named harbour-final.jpg, or DSC_0421-Edit.jpg, is no longer paired with anything. That is fine — exports are separate files — but it makes finding the original from an export harder later.

Case and extension differences. DSC_0421.JPG and dsc_0421.jpg are the same file on a Mac by default but can be different files on other systems. Mixed case across a set confuses some software.

Keeping sets together

Rename all files of a set in one operation. The RAW, the camera JPEG and the sidecar should all be renamed together, from the same rule, at the same time.

Base names on capture date, not file dates. The date and time the shutter was pressed are stored in the image metadata and are identical for the RAW and the camera JPEG. Use them — to the second, with a counter for bursts — and the names will match.

Rename before importing. Most photo apps track files by name and location. Renaming after import is possible within the app, but renaming outside it — in Finder or another tool — breaks the app's links. The safest time to rename is immediately after copying from the card, before any app sees the files.

Or rename inside the app. If the files are already in a library, use the app's own rename function, which updates its records.

Linking exports back to originals

For exports, the aim is different: they do not need to match exactly, but you want to find the original quickly.

Keep the original stem in the export name. 2026-10-03_harbour_001_web.jpg points directly back to 2026-10-03_harbour_001.NEF. Most photo apps' export dialogs let you use the original name plus a suffix.

Keep metadata in exports. Capture date, camera and lens details remain in the exported JPEG if metadata is included, and can be used to find — or rename — the matching original later.

Matching after the fact. If exports have unrelated names, the capture date and time in their metadata is usually the best way to match them back. Two files with the same capture time to the second, from the same camera, are almost always the same frame.

A routine for a shoot

  1. Copy files from the card into a new folder.
  2. Rename every file — RAW, JPEG, sidecar — in one pass, using capture date and time plus a counter, keeping sets together.
  3. Import into your photo app.
  4. Export with the original stem plus a short suffix.

Where RenameDeck fits

RenameDeck is a batch renamer for Mac, and it can pair RAW, JPEG and sidecar files so related items keep the same stem. A rename applied to the set is applied to every file in it.

Names can be built from EXIF, IPTC and GPS details — including capture date and time — as well as file-system dates, counters, templates and parent folders. The complete list of proposed names appears before anything changes, with invalid names and collisions flagged, and RenameDeck never overwrites an existing file. Renames are journaled, and history supports undo while the renamed files are still the ones it renamed.

A frozen recipe can be assigned to an import folder, so new files from each shoot are renamed once they finish copying. RenameDeck is sandboxed with no network entitlement, account, analytics or tracking, and requires macOS 14 or later.

Keep reading