A hand resting on a drawer of pink index cards in a wooden library card catalog, a divider tab reading Teckningar standing above the rest.

The date was never inside the photograph

Formats · · · 22 min read

Why a Photo’s Date Is Kept in a Different File

It is reasonable to assume a photograph carries its own birthday. Mostly it does. But in the library we counted for this article, the single largest source of dates was not the picture at all — it was a separate little text file sitting next to it in the same folder, one per photograph, written by a service during an export. 42,947 files out of 91,428 took their date from one of those. That is 47.0% of a real family library whose correct dates are, right now, stored outside the photographs they belong to. It works perfectly until somebody tidies up.

Already recognize your own library? You can try it on your photographs now.

Free Test Drive Buy Now

The file beside the file

Open the folder a photo service gave you and you will usually see twice as many files as you expected. Beside IMG_4471.jpg there is IMG_4471.jpg.json. Beside a raw file from a camera there may be an .xmp. Beside a photograph straight off an iPhone there is sometimes an .aae. None of them are pictures. Each one is a small text note about the picture next to it, and in a large number of cases that note is the only remaining record of when the photograph was taken.

The arrangement has a name — a sidecar — and it is older than digital photography. Film labs wrote the order number on the wallet, not on the negatives. Libraries kept a card per book in a drawer across the room from the shelves, which is exactly the trade being made here: the catalog is easier to write on than the thing it describes, and the cost of that convenience is that the catalog can be separated from the collection.

A sidecar is defined by three properties: it lives in the same folder as the file it describes, it shares that file’s base name, and it carries a different extension. Break any one of those and nothing can pair them up again automatically.

We wanted to know how much of an ordinary library actually depends on this, so we read the index of a real one: 91,428 files, 83,402 photographs and 8,026 videos, accumulated over about twenty years by one household and assembled from everything a library is normally assembled from — a camera, several phones, scans, downloads, exports from two cloud services and a great deal of material other people sent. The result was not what we expected, and it is the reason this article exists.

Why a date ends up outside the picture

There are three separate reasons, and they are all good ones. Understanding which applies to your files decides what you should do about them.

The format has nowhere to put it. A JPEG has a standard metadata block and a date field inside it. A PNG does not have one in any useful sense, and a screenshot saved as PNG therefore has no capture date to carry. Proprietary camera raw formats are worse: they are undocumented containers that the manufacturer changes between models, and writing into one risks corrupting the only copy of the photograph. The industry’s answer was to stop trying. Adobe’s XMP standard — now also an ISO standard, 16684-1 — was designed so that metadata could be written to a separate file for exactly those cases, in the same folder, under the same base name.

The information was never in the photograph to begin with. An album title, a caption somebody typed, the comments a family member left, who a shared photograph was shared with, the fact that a picture is a favorite: none of that is a property of the image. It is a property of the service that held it. When you export, the service has two choices — throw it away or write it somewhere — and writing it beside the photograph is the only option that does not alter the photograph.

Writing into the original is a risk nobody wants to take on your behalf. Modifying a photograph to add metadata means rewriting the file, and a rewrite can fail. An export process handling a hundred thousand files will not gamble a hundred thousand originals to tidy up their metadata. Writing a separate note is atomic, reversible and cannot damage anything.

So sidecars are not a workaround or a sign of a badly built service. They are the conservative choice. The problem is entirely on the receiving end: a sidecar is a promise that two files will stay together, and nothing in Windows, macOS or any cloud service enforces that promise.

Where 91,428 dates actually came from

PDR records, for every file it indexes, which source its date was taken from. That makes the question answerable by counting rather than by guessing. Here is the whole library, grouped by where the date came from:

  • A JSON sidecar written by a cloud export: 42,947 files — 47.0%
  • Metadata embedded in the file itself: 36,944 — 40.4%
  • The Exif capture field specifically: 6,042 — 6.6%
  • A capture record written by PDR itself: 1,946 — 2.1%
  • No determinable source: 1,469 — 1.6%
  • A date read out of the filename: 1,607 — 1.8%
  • The file’s own modification time, as a last resort: 348 — 0.4%
  • A timestamp preserved through a copy: 67
  • Set by hand: 7

The first line is the finding. In a library nobody built as an experiment, the largest single source of dates is a file that is not the photograph. Add the two embedded categories together and material inside the image accounts for 42,986 files — a near-exact tie with the 42,947 whose date came from alongside it.

47.0% of this library — 42,947 photographs and videos — currently has its correct date stored in a separate file. Deleting those files would not damage a single photograph. It would remove the dates from nearly half the collection.

Two smaller numbers in that list are worth pausing on, because they are the floor of what happens when there is no sidecar and nothing inside the file either. 348 files are dated from the file’s own modification time, which is a measurement of when the file was last written and has no necessary relationship to when the photograph was taken. 1,469 have no determinable source at all. Those 1,817 files are what a library looks like with no catalog: present, viewable, and floating in time.

What Google says it writes, and where

Google documents this arrangement in its account help, and the two relevant sentences are worth quoting in full because they are frequently paraphrased into something less accurate. On what happens to the file date:

“Based on the time the photo or video is downloaded, your operating system can assign a new timestamp to the file itself. The photo or video metadata still has the original timestamp preserved in the metadata embedded within the files.” — Google, How to download your Google data, read 3 November 2026

That is the clearest short statement anywhere of why photo dates go wrong after an export, and it names the mechanism exactly: the operating system stamps the file with the moment it arrived. Every file in the download gets today’s date, because today is when it was written to your disk. Google is right that this does not touch what is inside the file. It is also, in practice, the date that most software then shows you, which is the whole problem.

On the sidecar itself:

“Any additional metadata that isn’t from the original file, like comments within Google Photos, are downloaded to a secondary JSON file.” — Google, How to download your Google data, read 3 November 2026

Read that carefully: additional metadata that isn’t from the original file. Google is describing the sidecar as the home for things the photograph never contained — comments, album membership, the service’s own record of when something was uploaded. For a photograph that arrived in Google Photos from a modern phone, with a full metadata block inside it, the JSON is genuinely supplementary and you could delete it without losing a date.

The library we counted shows the other case, and it is not rare. Over half of the files whose date came from a JSON in this library do not name a camera at all, which means they are not phone originals with a full metadata block inside; they are material that reached the service by other routes, from other people, through other apps, and arrived with little or nothing inside them. For those, the supplementary file is not supplementary.

What the sidecar-dated files have in common

If sidecar-dated files were a random slice of the library, this would be a smaller story. They are not. Three measurements separate them clearly from the files dated from the inside.

They mostly do not know what took them. Of the 42,947 files dated from a JSON, 22,909 name no camera at all — 53.3%. Of the 36,944 dated from embedded metadata, 22,919 do name one, which is 62.0%. The pattern is consistent: when a file arrives with its camera details intact, its date is usually intact too; when it arrives stripped, the note beside it is doing the work.

Video depends on them more than photography does. 55.8% of the videos in this library took their date from a sidecar, against 46.1% of the photographs. Video formats carry their creation time in a header field that every editor, converter and messaging app rewrites, so the inside of a video file is a less reliable witness than the inside of a JPEG. A separate note is often all that survives a video being handled.

They cluster in the years of heaviest cloud use. The sidecar-dated files in this library run from 17 February 2014 to 28 February 2026, with the weight in the middle: 6,165 in 2021, 5,730 in 2019, 5,004 in 2018. The earliest years of the library have none, because the photographs from those years were never in the service that generated the sidecars. This is not a trend in photography. It is a record of when a household started keeping its pictures somewhere that would later have to hand them back.

And one number that is only reassuring until you think about it: 15,957 of the 42,947 sidecar-dated files also carry coordinates. For those, the sidecar did not need to supply a location, because the file had one of its own. The other 26,990 have whatever the note says and nothing else.

When the note is in a different box

Large exports do not arrive as one file. A download of any size is split into numbered archives — part 1 of 9, part 2 of 9 — and the split is made on size, not on sense. Nothing guarantees that a photograph and its note land in the same part.

In this library, 610 files have a date that came from a sidecar in a different archive from the photograph, spread across nine numbered parts of one export. PDR records that case specifically, naming the archive the note was found in, which is how we can count it at all.

610 photographs and videos whose dates were in a different zip file from the photographs themselves. Unpack eight of nine parts, or unpack them to separate folders and tidy as you go, and those dates are gone — with every file still perfectly viewable.

This is the failure that catches careful people. Someone who unpacks one archive at a time, moves the photographs into their library, and deletes each archive before starting the next is doing something entirely sensible, and will break the pairing for every file whose note is still in a later part. The advice that follows from it is awkward and worth stating plainly: unpack the whole export, all parts, into one folder tree, and only then process it.

The other sidecars you already have

Google’s JSON is the one that shows up in bulk, but it is one of a family, and most libraries contain several kinds without their owners knowing it.

XMP is the open standard, originally from Adobe and now ISO 16684-1. It is what photo software writes beside a raw file, because a proprietary raw format cannot safely be written into. If you have ever adjusted a raw photograph in Lightroom or Camera Raw and then found the adjustments missing on another machine, the explanation is almost always that the .xmp beside it was not copied. The same file type carries keywords, captions and ratings.

Apple supports it too, and the way it is offered tells you how these things get lost. In the Photos app on a Mac, exporting an unmodified original is a menu choice — and keeping the information you typed is a separate tickbox inside that dialog:

“If you want to export IPTC information (assigned IPTC metadata and keywords) as a sidecar XMP file, select the Export IPTC as XMP tickbox.” — Apple, Photos User Guide for Mac, read 3 November 2026

That is a correct, well-documented, entirely optional behavior, and almost nobody ticks it. An export without it is an export of pictures with none of the work you did on top of them.

AAE files appear beside photographs taken off an iPhone. They are Apple’s record of edits — the crop, the exposure adjustment, the filter — kept separately so the original is never overwritten. The photograph in the folder is the unedited one; the .aae is the instruction sheet for turning it into the version you saw on the phone. Copy the JPEG alone to a PC and you have the picture before you fixed it.

THM files are the oldest of the group: small thumbnail JPEGs that camcorders and compact cameras wrote beside each video so the camera’s own screen could draw a preview without decoding the whole clip. They are usually safe to delete, and they are the only member of the family that genuinely is clutter.

Four ordinary ways a sidecar gets separated

None of these involve a mistake. Each is a normal action by a careful person.

Sorting by type. The most common single cause. A folder of 90,000 files is unmanageable, so you sort by type to see what is there, select everything that is not a photograph, and delete it. Sorting by type is precisely the operation that groups every sidecar together and separates all of them from every photograph at once.

Importing with an app that only takes pictures. Most photo importers are built to find images and video and ignore everything else. The import succeeds, the photographs are in the library, the sidecars stay in the source folder, and the source folder gets deleted a month later when the disk fills up.

Renaming. Running a batch rename over a folder — to turn IMG_4471.jpg into 2019-07-14 Cornwall 012.jpg — renames the photographs and leaves the notes under the old names. The pairing rule is the shared base name. Rename one side of it and nothing can match them up afterwards, including the software that wrote them.

Uploading to a service that re-encodes. A sidecar has nowhere to go in most upload paths. Sending a folder to a sharing service typically uploads the images, skips the unknown file types, and returns you a set of photographs with no accompanying notes, now with their dates set to the upload. This is the quiet one, because nothing is deleted and nothing looks wrong.

Five things widely repeated that are wrong

“The JSON files are junk from the download and can be deleted.” They can be deleted, and for files with intact metadata inside nothing is lost. In the library we counted, 42,947 files would lose their only reliable date. There is no way to tell which is which by looking at the folder, because the information that decides it is inside the photographs, not visible in a file listing.

“The date is in the photograph, so it cannot be lost.” Only 6,042 files in this library — 6.6% — take their date from the classic Exif capture field, and 36,944 from embedded metadata more broadly. That is less than half the library. Screenshots, downloads, forwarded pictures, re-encoded video and anything sent through a messaging app routinely arrive with nothing inside them at all.

“Google strips the dates out of your photos when you export.” Google explicitly says the opposite — “The photo or video metadata still has the original timestamp preserved in the metadata embedded within the files” — and our counts are consistent with that. What changes is the file timestamp, assigned by your own operating system on download, which is a different thing that most software unfortunately shows you first.

“A sidecar is a sign the export went wrong.” It is a sign the export went right. The alternative to writing a note beside your photograph is discarding the information or rewriting a hundred thousand originals. Every major vendor has reached the same conclusion, which is why the pattern is shared across Google, Apple and Adobe rather than being one company’s quirk.

“Once the sidecar is gone the date is gone forever.” Not always. A date can often be rebuilt from the filename, which is where 1,607 files in this library got theirs, or from a surviving copy of the same photograph elsewhere, or from the pattern of the files either side of it in a folder. Those are reconstructions rather than records, and should be labeled as such, but they are considerably better than the file’s download date.

What to do, in the order that helps

1. Unpack the entire export before you touch any of it. All parts, into one folder tree, in one go. This single habit is what protects the 610-file case above, and it costs nothing but disk space you can reclaim afterwards.

2. Do not sort by type and delete. If a folder is too crowded to work in, copy the photographs out rather than deleting what is not a photograph. Copying is reversible; deleting the catalog is not.

3. Get the dates into the photographs, then tidy. The reason to move a date from a sidecar into the file it describes is that a photograph with its date inside it survives being renamed, re-sorted, uploaded and copied. Once that is done, the notes genuinely are surplus. The order matters: read first, delete second.

4. Keep the export until you have checked a sample. Open twenty photographs from different years and confirm the dates are what you expect. An export is cheap to keep for a month and impossible to recreate once the service has deleted the account it came from.

5. When you rename, rename both sides or neither. Batch renaming is useful and this is the one operation that silently halves its value. If your renaming tool does not understand sidecars, rename after the dates are inside the files.

PDR reads the whole family of sidecars — JSON notes from an export, XMP written beside raw files, Apple’s AAE edit records — and will take a date from a note across archive parts when the photograph and the note were separated by the download. It writes what it finds into the photograph itself, which is the step that makes the note disposable. The Takeout guide covers the export case specifically.

How we counted

Every figure in this article is a count of one real library, not a survey and not an estimate. The library is a single household’s collection of 91,428 files — 83,402 photographs and 8,026 videos — indexed by PDR, which records for each file the source its date was taken from. The counts were read from that index on 18 August 2026, grouped by date source, by file type, by whether a camera is named and by year.

What the counts cannot tell you, stated plainly. When a photograph has both a usable date inside it and a note beside it, PDR prefers the note, because for an exported library the note is the service’s own record and the file’s own metadata may have been rewritten in transit. So “42,947 files took their date from a sidecar” is a count of which source was trusted, and is not by itself proof that those 42,947 files had nothing inside them. The measurement that speaks to that is the camera one: 22,909 of them name no camera at all, so for at least that many the inside of the file was close to empty. For the remainder, the honest statement is that the sidecar was preferred, not that it was the only option.

The sidecars themselves are not counted as files anywhere in this article. PDR indexes photographs and videos, so a .json note is read and not stored as a row — which is why the extension table for this library shows zero JSON files while 42,947 of its dates came from them.

Quotations are verbatim from each company’s own documentation, read on 3 November 2026, with the page named where it is quoted. Where a vendor’s wording differs by region — Apple’s “tickbox” is “checkbox” in some editions — we quote the page as we read it rather than smoothing it.

Doing it in Photo Date Rescue: Formats and metadata covers sidecars, and what happens to one during a repair.

Where this comes from

Sources read on 3 November 2026. The quotations and figures above come from other people’s documentation as it stood that day. Policies and specifications change, and they change quietly — so if you are about to rely on one of these numbers, open the link and check it rather than taking our word for a page we read months ago.

Delete the odd little files and you delete the dates

In an exported library the date often lives in a companion file that looks like clutter, and tidying the folder by hand separates the two in an afternoon. PDR reads them as a pair and writes the date back inside the photograph.

Free Test Drive Buy Now

Frequently asked questions

What exactly is a sidecar file?

A second file that travels beside a photograph and holds information about it. It lives in the same folder, shares the photograph’s base name, and carries a different extension — IMG_4471.jpg and IMG_4471.jpg.json, or DSC_0093.NEF and DSC_0093.xmp. The three properties are what let software pair them up, and breaking any one of them breaks the pairing permanently. Sidecars exist because some information cannot be written into the original safely, and some was never part of the original at all.

Can I delete the JSON files from a Google Takeout download?

Only after the dates they hold are inside the photographs. In the library we counted, 42,947 of 91,428 files have their date in one of those notes, and 22,909 of those files name no camera at all, which means there is very little else inside them to fall back on. Google describes the JSON as holding “additional metadata that isn’t from the original file”, which is accurate for a modern phone photograph with a full metadata block of its own — and not accurate for everything else in a real library. Read the notes into the photographs first; then the notes are genuinely surplus.

Why did my photos all get today’s date after I downloaded them?

Because your operating system stamped them when they were written to your disk, and most software shows you that stamp. Google states it directly: “Based on the time the photo or video is downloaded, your operating system can assign a new timestamp to the file itself.” The photographs themselves are unchanged — the capture dates inside them, and in the notes beside them, are still correct. What you are looking at is the file’s arrival time rather than the photograph’s birthday, and fixing it means writing the real date into the file so that both agree.

What is the .aae file next to my iPhone photos?

Apple’s record of the edits you made, kept separately so your original is never overwritten. The JPEG in the folder is the photograph as it was taken; the .aae is the list of adjustments that turn it into the version you see on the phone. Copy only the JPEG to a PC and you get the unedited picture, which is why a photograph can look different after a transfer even though nothing has gone wrong. It is not a fault and not clutter — it is the reason you can still undo a crop from three years ago.

Do videos rely on sidecars more than photos?

In this library, yes, and by a clear margin: 55.8% of videos took their date from a sidecar against 46.1% of photographs. The reason is in the formats. A JPEG’s metadata block is a passenger that most software carries without understanding it, so it tends to survive. A video’s creation time is a header field that editors, converters and messaging apps actively rewrite, so the inside of a video file is a much less reliable witness. When a video has been through anything at all, the note beside it is often the last correct record of when it was shot.

I renamed my photos and now the dates are gone. What happened?

The pairing rule is the shared base name, so renaming the photographs and not the notes leaves two sets of files that nothing can match up. The notes still contain the correct dates — the information is not destroyed — but the automatic link is, and reconnecting it means matching them by content rather than by name. If the original names are still inside the notes, which they usually are, a careful rebuild is possible. The general rule is to get dates into the photographs before any batch rename, not after.

Why not just write the date into the photo in the first place?

For JPEGs, services largely do, and the counts show it — 36,944 files in this library took their date from embedded metadata. The sidecar exists for the cases where that is impossible or unwise: formats with no metadata block, such as PNG screenshots; proprietary raw formats that cannot be rewritten without risking the file; and information that was never a property of the image at all, like an album name or somebody’s comment. Writing beside the file is also safer in bulk: it cannot corrupt an original, and it can be undone by deleting one small file.

Does XMP work across different photo software?

The format does — it is an open standard, ISO 16684-1, and Adobe, Apple and most serious photo tools can read and write it. What travels less well is the meaning of particular fields. Star ratings and keywords are broadly understood; one application’s develop settings are not, because the adjustments in one raw processor have no equivalent in another. So an XMP moved between tools generally keeps the descriptive information and loses the editing work. For dates and keywords, which is what matters when you are rescuing a library, it is reliable.

My export came in nine zip files. Does it matter how I unpack them?

It matters more than almost anything else you will do with it. Exports are split on size, so a photograph and its note can land in different parts — in the library we counted, 610 files had exactly that problem, across nine numbered archives. Unpacking one part at a time, processing it and deleting it before moving to the next will strand every note that was in a later part. Unpack all parts into one folder tree first, process the whole thing, and only then reclaim the space.

If a sidecar is already lost, can the date be recovered?

Sometimes, and it is worth trying before accepting a download date. Filenames are the most productive source — 1,607 files in this library are dated from theirs, because phones and messaging apps habitually bake the date into the name. A surviving copy of the same photograph somewhere else, in an old backup or in someone else’s shared album, may still carry its metadata. Failing both, the files either side of it in the original folder order bracket it to a day or two. These are reconstructions and should be recorded as such rather than presented as readings, but a date that is approximately right in the right year is a great deal more useful than the day you pressed download.