To batch rename JPEG photos by capture date on Mac, make a separate folder of copies and use ExifTool to read each photo’s EXIF DateTimeOriginal. Preview the proposed names with TestName, then use FileName on the copies you have reviewed. Check for missing dates and photos taken in the same second before you rely on the renamed set.
Make a working folder of JPEG copies
Use this workflow when the intended filename should contain the camera-recorded capture date and time, such as 2026-07-03_142830.jpg. The method uses existing photo metadata. Files that lack a usable capture date need a separate naming decision. A name derived from the timestamp belongs to the selected copy and can coexist with an archive that keeps the camera’s original filenames.
Make a folder named photo-copies next to your originals. Copy a small sample into it first. Leave unrelated files and any RAW partners or sidecar files outside the folder. This guide processes JPEG copies with the jpg and jpeg extensions. If a separate editing tool depends on matching names across RAW and sidecar files, keep that set together in its original location. A JPEG-only rename covers a different purpose, such as preparing standalone delivery images.
Install ExifTool from its official distribution if you do not already have it, and run exiftool -ver in Terminal to confirm the command is available. Work from the folder that contains photo-copies. In Finder, you can open the folder and use its path to navigate there in Terminal. Use quotation marks around paths with spaces. The commands below take the full working folder as the final argument, and its path determines which files the write command can rename. ExifTool’s official distribution and installation information
Read the capture time from the selected copies
exiftool -G1 -s -FileName -EXIF:DateTimeOriginal -EXIF:OffsetTimeOriginal \
-ext jpg -ext jpeg "./photo-copies"
Check each file’s DateTimeOriginal field. A value such as 2026:07:03 14:28:30 translates to 2026-07-03_142830 in the filename format below. Finder can show creation or modification information about the file on your computer. The metadata command explicitly asks for the original image data generation time. A file copied today can still have a much earlier capture time inside it. ExifTool’s EXIF tag reference
The command also shows OffsetTimeOriginal when it is present. For this workflow, the filename uses the camera-recorded date and time as shown, with no time-zone conversion. If you combine photos from cameras set to different local clocks, the resulting names can disagree with the actual chronology. Inspect the metadata and your shooting records before treating a multi-camera sort as an exact timeline. File names alone cannot establish the time-zone or clock settings used by the camera.
If an important file has no DateTimeOriginal, set that copy aside and decide what date you can support from another record. A scan, screenshot, or export can lack the original EXIF field. You can keep its current name until you know how you want to label it. The recipe uses only EXIF:DateTimeOriginal by design, which makes missing entries visible and avoids changing dates based on when you copied the file.
For a larger set, compare the folder count against the number of dates you can read before applying the command. A folder with 38 JPEGs and four missing dates has at most 34 candidates for this rule. If several copies already use the desired name, the number of actual changes can be lower again. Write an expected split between candidates, missing dates, and names that need no further change. This gives you something more specific to compare with ExifTool’s summary.
Preview date-based names before applying them
exiftool -ext jpg -ext jpeg -d '%Y-%m-%d_%H%M%S%%-c.%%e' \
'-TestName<EXIF:DateTimeOriginal' "./photo-copies"
Read the path pairs ExifTool prints and check that each source and proposed destination belong to the working folder. The first part of the format is year, month, day, hour, minute, and second. The doubled percent signs preserve ExifTool’s filename codes through date formatting. The extension code preserves the source extension. The conditional copy number permits a suffix such as -1 when a target name is already taken. ExifTool’s filename formatting and TestName examples
Save the Terminal output as a temporary review record if it helps to compare the result with your notes. The test should leave the current filenames unchanged. Its output can show the same proposed base name or a repeat suffix for files from the same second. During preview there are no new files on disk, so later entries can propose a name an earlier entry would occupy during an actual rename. The preview confirms the source field and name pattern. Verify the specific suffixes after the files have been written.
Start with two JPEG copies that have the same capture timestamp, if you have a harmless burst pair. A separate file without a capture date gives you a check of the missing-date path. Record the three original filenames and the expected timestamp from the metadata command. The expected result is two distinct timestamp names and the untimed file still under its original name. The exact order of suffixes is not a substitute for an independently verified shooting order.
You can add a fourth copy named 2026-07-03_142830.jpg that represents a filename already in use. Use that exact base name only if your test burst reports the matching date and time. This lets you observe what happens when neither new file can take the plain timestamp name. The preexisting test copy should remain readable under its original name. The two renamed copies should each have distinct suffixes. Keep a different subject or other visible marker in the preexisting test copy so you can tell it apart from the files you renamed.
Apply and inspect the renamed copies
Once you have reviewed the proposed names, replace TestName with FileName and reuse the same folder and date format.
exiftool -ext jpg -ext jpeg -d '%Y-%m-%d_%H%M%S%%-c.%%e' \
'-FileName<EXIF:DateTimeOriginal' "./photo-copies"
The write step changes filenames. Open the working folder in Finder and sort by name. Check that the file count matches the number you started with and that each timed file now has a name beginning with the capture date and time you expect. Any same-second group should contain distinct filenames. In the simple case the first file may use the plain timestamp and another may have a numeric suffix. An existing file with that name can cause the first renamed copy to receive a suffix as well.
Compare the Terminal report with the number of timed items you intended to process. A warning about unavailable writable tags can accompany an unprocessed file that lacks the requested date. Match any warning to its source filename and inspect its metadata directly before deciding what to do with that copy. Treat an unchanged file you expected to rename as a follow-up item. An exit status alone does not give you the source-to-output check you need.
Open several renamed images from Finder, including the first and last and at least one same-second pair if there is one. Compare them visually with the originals. For a stronger check, record the SHA-256 sums for a small test set before and after renaming and compare the multiset of hashes. The name change should leave the file contents the same. Use the hashes to verify identity without relying on the new filenames.
Check a renamed copy with a stable content fingerprint
For one planned rename, run a checksum command on the original image and then on the renamed copy. Substitute the real paths you observed for the two examples.
shasum -a 256 "./originals/camera-a.jpg"
shasum -a 256 "./photo-copies/2026-07-03_142830-1.jpg"
The checksum values should match when both paths select the same photo. The filename printed after each value will differ. If the values differ, compare the images and test the other copy from that timestamp. This helps when the burst photos have nearly identical thumbnails or their suffix order differs from what you expected. A visual check can still matter when the copies were edited during another earlier step and matching raw file bytes is no longer the intended outcome.
Keep a traceable result when metadata varies
If the date seems wrong, read the original EXIF value again and compare it with the shoot record. A camera with an incorrect clock can store a consistently shifted time in every photo. Two cameras can also have clocks that disagree. Decide whether you want the literal timestamp in the existing file or a corrected chronological naming project. A fresh copy lets you try a different date rule without having to reconstruct the original names.
If you processed a test set and want to use the same recipe for a larger folder, repeat the dry run on that new folder with its exact path. Keep the count, identify the omitted dates, and spot-check the oldest and most recent images before the write. If you already renamed a folder and would like to adjust the pattern, start from fresh copies and do another review. This is easier to audit when an original filename is still available in the archive.
Check the destination’s naming rules if you will move the renamed set to another filesystem or upload it to a portal. This pattern preserves each existing extension, including its spelling and case. Some destinations treat uppercase and lowercase names as equivalent, and a collection can legitimately contain different JPEG extensions. Review the final file list as the recipient will see it. If an externally imposed naming rule requires another exact extension or a fixed list of assigned names, treat that as a separate handoff requirement.
A useful handoff records the rule used, the number of renamed copies, and any files left under their original names. Tell the recipient whether suffixes simply distinguish files captured within the same second. For a job that only needs a shared prefix or an incrementing number, batch rename copies with Finder’s built-in controls.