One character apart, nine times the file
What a Filename Can and Cannot Tell You
A filename is the only part of a photo file most people ever read. It sits there in the
folder looking like a description — a date, a number, a hint about where the picture
came from — and it gets treated as one. In the library counted for this article,
51,789 files still carry the name they arrived with, and the single most informative
thing in any of them is one character: whether IMG is followed by a hyphen
or an underscore. The hyphens average 152 KB. The underscores average 1,356 KB.
A hyphen and an underscore are not the same photograph
Sort any large photo folder by name and two blocks dominate. One is full of files that start IMG-. The other is full of files that start IMG_. They sit next to each other, they are nearly the same length, and to a reader they look like the same thing written by two slightly different programs.
They are not the same thing at all. Here are the two blocks in the library we counted:
IMG-— 13,314 files, average 152 KB, average 1.37 megapixelsIMG_— 13,026 files, average 1,356 KB, average 12.05 megapixels
Almost the same count on each side, and then a ninefold gap in file size and an eightfold gap in resolution. That is not two programs writing the same picture differently. It is two populations of picture that happen to share three letters.
The hyphen group gives itself away in the rest of the name. 13,257 of those 13,314 files are shaped like IMG-20151031-WA0000.jpg — the naming a messaging app uses when it saves a received image to the phone’s storage. They are not originals. They are copies that arrived through a chat, already re-encoded down to a size that would send quickly, and 13,297 of the 13,314 no longer name any camera at all.
The underscore group is shaped like IMG_20151205_120850.jpg, and it is what a camera app writes at the moment of the shutter: the date, an underscore, the time to the second. Those files still hold their original resolution, they still mostly name the phone that took them, and they are the version of the photograph you would want if you only got to keep one.
So the single most useful thing a filename tells you is not the date in it. It is which program wrote it — and one character is enough to say.
Who actually names your photographs?
Group every original name in this library by its first four characters and the whole history of one person’s photography falls out in order of how much of it there is. These are the seventeen families with more than a hundred files in them, with the average size of a file in each:
IMG-— 13,314 files, 152 KB — images received through a messaging appIMG_— 13,026 files, 1,356 KB — camera app, date and time in the nameIMG2— 9,339 files, 2,825 KB — a camera app that drops the underscores, as inIMG20220614100143.jpgScre— 6,325 files, 194 KB — screenshots, 2015 to 2025VID-— 2,020 files, 3,092 KB — videos received through a messaging appIMAG— 1,982 files, 1,168 KB — an older camera app convention, 2011 to 2026slid— 1,494 files, 137 KB — pages of collages this library’s owner madeVID_— 957 files, 43,898 KB — camera-app videoVID2— 618 files, 94,456 KB — camera-app video, the no-underscore convention2026— 453 files, 2,678 KB — files named with a bare year firstReco— 318 files, 17,066 KB — screen recordingsCNV0— 275 files, 726 KB — converted filesunsp— 255 files, 2,092 KB, 14.48 megapixels — stock photography, downloadedrece— 252 files, 1,112 KB — names beginning “received”DSC0— 158 files, 1,270 KB — a compact camera, and only 2004 and 2005FB_I— 147 files, 112 KB — saved from a social platformVIDE— 107 files, 110,168 KB — video, and the heaviest family here
Three things in that list are worth sitting with.
The biggest family in the library is not photography. It is received images. More files in this collection came in through a chat window than came off the owner’s own camera under either naming convention.
The fourth largest family is screenshots. 6,325 of them, averaging 194 KB, spanning a decade. Nobody thinks of screenshots as part of a photo library and every phone puts them there, in the same folder, in the same backup, in the same export. They are the reason a photo count can be several thousand higher than the number of photographs anybody took.
One family is only two years old and then stops. DSC0 covers 158 files, all from 2004 and 2005. That is a camera that was used, and then replaced, and the name is the only thing left that groups its pictures together — which is exactly the job a filename is good at, and nothing like the job people usually ask of it.
The files whose names are fingerprints
Fifty-seven files in the IMG- block are not messaging names. They look like this:
IMG-04f5db3346128f8c5a12874516f655f5-V.jpgIMG-07f7ddb84bcfd9ea0682d942d41b7de8-V.jpgIMG-0ee25a80351368669c6554f19eeb7fc6-V.jpg
Thirty-two hexadecimal characters is a content fingerprint — a number computed from the bytes of the file itself. A system that names files this way is telling you something honest and something bleak at once: it can guarantee the name is unique and will never collide with another file, and it has decided that nothing about when, where or what the picture is belongs in the name.
Another 23 files take the same approach with a different prefix, averaging 167 KB, and they are the longest names in the library at 54 characters, of which 44 are fingerprint. There is no date in them. There is no sequence in them. Sorted by name they are in no order a person would recognize, because the order is the order of a hash.
This is the end state of the trend the whole article is about. A camera app writes a name for a human to read. A sync service writes a name so that no two files ever clash. The further a photograph travels from the device that took it, the more its name serves the system that is storing it and the less it says about the picture.
The name is almost never where the date came from
Given how many of these names contain a date, it is reasonable to assume that is where photo software gets its dates from. It is not. Here is every source of date in this library, counted:
- 42,337 — a sidecar JSON file from a Google Takeout export (a further 610 came from split archives of the same export)
- 36,944 — the date embedded in the file’s own metadata
- 6,042 — the EXIF DateTimeOriginal field, read directly
- 1,946 — files this library’s own software created, which know their own date
- 1,469 — unknown; nothing readable anywhere
- 1,222 — a date pattern in the filename
- 348 — the file modification time on disk
- 338 — a full date and time in the filename
- 67 — a timestamp deliberately preserved by an earlier copy
- 47 — EXIF from a scanner, which is the date of the scan and not the photograph
- 32 — a messaging-app filename
- 15 — a date with separators in the filename
- 7 — set by hand by a person
Add up every line that is a filename and you get 1,607 files out of 91,428 — 1.76%.
That number is low for a good reason, and the reason is worth understanding: a filename is the last place to look, not the first. If a file still carries its own embedded date, that is better evidence. If it came out of an export with a sidecar file stating the date the service recorded, that is better evidence too. The name only gets used when everything inside the file has gone.
The messaging-app line makes the point sharply. There are 15,277 files in this library with a messaging-app name, and 32 of them were dated from that name. The other 15,245 had a sidecar from the export they arrived in, and the sidecar won.
So the filename is a witness who is almost never called — and the interesting question is what happens on the 1,607 occasions when it is.
When a name carries a date, who wrote it decides everything
43,970 of the 51,789 original names in this library contain an eight-digit run that looks like a date, and a further 2,600 carry one written with separators. Against the date the library actually holds for each file, the eight-digit runs land like this: 40,486 agree on both year and month, 1,314 agree on the year alone, and 2,170 disagree.
A 92% hit rate sounds like a reasonable thing to trust. But averaging across every app that ever named one of these files hides the only thing that matters, which is which app did it. Split the same test by naming convention and the picture changes completely.
Camera-app names, the IMG_20151205_120850.jpg shape. 13,024 files. 12,923 match the file’s date to the exact day. 100 match the month. One matches only the year. None disagree. That is 99.2% correct to the day.
Camera-app names without the underscores, the IMG20220614100143.jpg shape. 9,339 files. 9,327 match to the exact day, 12 match to the month, none disagree.
Screenshots, the Screenshot_2015-01-05-16-47-50.png shape. 1,807 files carry a full dashed date. 1,744 match to the day, 59 to the month, four to the year.
Messaging-app image names, the IMG-20151031-WA0000.jpg shape. 13,257 files. 10,260 match to the exact day — 77.4%. 88 match the month, 1,105 match only the year, and 1,804 disagree with the date the library holds.
Messaging-app video names. 2,020 files, and the worst of the lot: 1,226 match to the day, 235 to the month, 196 to the year, and 363 disagree.
The disagreements are not scattered randomly either, which is the most useful part. Cross-tabulate the year in the messaging names against the year the library holds and almost every row lines up — 1,978 files named 2018 are dated 2018, 1,942 named 2019 are dated 2019 — except for two blocks: 1,645 files named 2016 are dated 2017, and 152 named 2015 are dated 2017.
We cannot tell from the data which of those two dates is the day the shutter actually fell. What we can say is that a name and a sidecar disagree, in a clump, for a specific stretch of one person’s history — and a clump is the signature of one event, not of a camera making mistakes. Something moved a few thousand images at once, and the date it wrote down was the day it did the moving.
The practical rule that falls out of all this is short. A date in a name written by the device that took the picture is worth as much as the EXIF, because it was written at the same instant by the same program. A date in a name written by anything that received the picture is a date about the receiving.
Six names for 1,494 files
A filename is supposed to identify a file. In this library, 48,098 of the original names appear exactly once, which is the behavior you would expect. Then: 1,016 names appear twice, 47 appear three times, six appear four times — and six names appear more than two hundred times each.
slide_05.jpg— 253 filesslide_04.jpg— 252 filesslide_02.jpg— 251 filesslide_03.jpg— 251 filesslide_01.jpg— 244 filesslide_06.jpg— 243 files
That is 1,494 files sharing six names, all created in 2026, all of them pages of multi-image collages built in batches. Every batch wrote out the same six names into a folder of its own, which is perfectly sensible inside that folder and completely useless the moment anything gathers them all into one place.
And something always does. A phone backup, a cloud upload, a drag onto a desktop, a search results pane: the folder structure is what was keeping those 1,494 names apart, and all of those operations flatten it.
Everything else in the collision list is mild by comparison — IMAG0007.jpg and IMAG0008.jpg appear four times each, which is what happens when a camera’s counter rolls over and starts again. But the direction of travel is the same: names are unique within the thing that wrote them, and nothing more than that.
What Apple and Google say about naming
Both companies document this behavior in their own help pages, and both are more candid about it than the folder listing on your computer suggests.
Apple’s Photos user guide describes the export dialog on a Mac, and it offers the choice explicitly. Its page says the Export command “allows you to specify file format, filename and subfolder organization settings”, and then, of the naming menu: “You can name your exported files using the titles you’ve given them in Photos, their filenames, or a filename numbered sequentially.” If you choose the sequential option, it adds, “you can specify text to appear before each number (for example, Birthday - 1, Birthday - 2, and so on)”.
Read that as a reader of folders rather than as a user of Photos. One app, one library, three possible naming schemes on the way out, one of which discards the original name entirely and replaces it with a word and a counter. A folder full of Birthday - 1.jpg files is not a corrupted export. It is the documented option somebody picked, and nothing in the resulting folder records that a different name ever existed.
Google’s documentation for downloading your own data goes further and separates the two things people conflate. On what happens to metadata when photos and videos are downloaded, its page states: “Based on the time that 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.”
That sentence is the whole subject of this article in two halves. The outside of the file — the name, the dates your file browser shows you — is written by whatever last handled it. The inside of the file keeps the original. They are allowed to disagree, the vendor expects them to disagree, and only one of them is evidence.
The same page has one more line worth knowing, about the compressed-archive format it offers: “Bear in mind that these types of files can’t have unicode characters in the file names.” So a name can also be altered simply by the container it travels in. If your photographs were ever named in a language that needs characters outside the plain Latin set, the archive format is permitted to change them on the way through.
What a name can physically hold
For something people treat as free-form text, these names are strikingly uniform. Sorted by length, the 51,789 original names in this library fall out as:
- under 12 characters — 27 files
- 12 to 19 characters — 4,306 files
- 20 to 29 characters — 40,328 files
- 30 to 49 characters — 5,355 files
- 50 characters or more — 1,773 files
Four names in five are between 20 and 29 characters, because that is what a prefix, an eight-digit date, a six-digit time and an extension add up to. Twenty-seven files in a library of 91,428 have a name short enough to have been typed by a person. Everything else was generated.
The extension, the part after the dot, is just as narrow. As stored in this library: 82,593 files are .jpg, 7,934 are .mp4, 581 are .png, 114 are .jpeg, 62 are .mpg, 59 are .webp, 39 are .gif, 12 are .m4v, eight are .dng, seven are .mov, seven are .3gp, four are .webm, four are .heic and three are .tif.
Two decades of photography, thirteen formats, and 98% of it in two of them. Which means the extension — the one piece of a filename that is supposed to be a technical fact rather than a label — is also the piece that carries almost no information, because nearly everything says .jpg.
What a name can hold, then, is: who wrote it, roughly when the writer thought it was, and a sequence number. What it cannot hold is who is in the picture, where it was taken, what camera took it, whether it is the original or the fourth copy, or whether the date in it refers to the photograph or to the download. All of that lives inside the file, or in a sidecar beside it, or nowhere.
Five things widely believed about filenames that are wrong
“If the filename has the date, the photo has the date.” The two are stored in completely different places and only one of them travels reliably. In this library, 1,607 files had to fall back on the name because everything inside them was gone — and 39,639 files have no original name left at all, of which 36,944 still knew their own date perfectly well from their metadata. A name is the most fragile part of a photo file and the easiest thing in the world to overwrite.
“IMG means it came off a camera.” It means almost nothing on its own. 13,314 files here start IMG- and 13,257 of those came through a chat; 13,026 start IMG_ and those really are camera originals. The letters are identical. The character after them is the whole distinction, and the two groups differ by a factor of nine in size and eight in resolution.
“Renaming my photos to a tidy scheme will organize them.” Renaming gives you one benefit, sorting, and costs you the only piece of provenance the file had left. The 57 fingerprint-named files in this library are a preview of the end state: a perfectly consistent naming scheme in which no name tells you anything. If you do rename, rename from the embedded date and keep the original name somewhere — not because you will read it, but because it is the record of what handled the file.
“Duplicate filenames mean duplicate photos.” 1,494 files in this library share six names and are 1,494 different images. A matching name is evidence that two files came out of the same program, nothing else. A matching name with a matching size and a matching timestamp is a different matter — that is worth investigating, and the name is the least important of the three.
“A folder sorted by name is in date order.” It is, for the 22,363 camera-written names in this library that begin with a full date, and it emphatically is not for anything else. Sort a mixed folder by name and you get the camera files in order, the messaging files in a different order whose dates are off by anything up to two years, the screenshots in their own run, and the fingerprint names in no order at all. The dates look sorted because the first few screens of it are.
What to do, in the order that helps
1. Before you rename anything, look at what the names are telling you. Sort by name and read the prefixes. The split between IMG- and IMG_, or between a camera prefix and a fingerprint, is a map of which files are originals and which are copies that arrived from somewhere. That map is free, it is on your screen now, and renaming destroys it.
2. Treat a date in a name as a claim, and check who is making it. A name written by the camera at the moment of the shutter was right 99.2% of the time here, to the exact day. A name written by an app that received the file was right 77.4% of the time and wrong by as much as a year in 1,804 cases. Both look identical in a folder listing.
3. Prefer the inside of the file to the outside. If a file still has embedded metadata, that is where the date is. The name is the fallback, which is why only 1.76% of this library needed it. Any tool that reads dates should be reading EXIF first, a sidecar second, and the name last — and should tell you which one it used.
4. Keep exports with their sidecars. 42,947 files in this library got their date from a JSON file that came out of an export alongside the image. Separating the images from those small text files, which is what happens when you drag the pictures out of the export folder and bin the rest, throws away the only remaining record for nearly half the collection.
5. If you are going to rename, rename on a copy and from the metadata. Not from the existing name — that just re-encodes somebody else’s guess into a new format, and the 1,804 disagreeing messaging names would be baked in as fact. From the embedded date, with the original name retained in a field or a log.
6. Expect flattening. Anything that gathers a nested folder structure into one place will collide names that were only ever unique inside their own folder. 1,494 files and six names is what that looks like. Before any bulk move, check for name collisions rather than discovering them in a progress dialog.
PDR reads the inside of the file first and the name last, and records which source each date came from so the two can never be quietly confused — the counts in this article are that record, read back out of one real library. The guides cover the order it reads them in and what happens when the sources disagree.
How we counted
Every figure here comes from one real photo library of 91,428 files — 83,402 photographs and 8,026 videos, spanning 2004 to 2026 — indexed by PDR and queried directly. No sampling, no estimates, no projections to other libraries.
The distinction that matters most for this article: 51,789 of those files still carry an original filename, meaning the name they had before any renaming, and every name-shape count above is drawn from that group rather than from the library’s current filenames. 1,946 files have an original name identical to their current one, because PDR created them. 39,639 have no original name recorded at all; for 36,944 of those the date came from inside the file, so the name was never needed.
“Matches to the exact day” compares the eight-digit run in a name against the year, month and day the library holds for that file — a date which, for most of these files, came from a sidecar or from embedded metadata rather than from the name, so the test is a genuine comparison of two independent sources and not a circular one. Where a name contains more than one eight-digit run, the first is used.
What these counts cannot tell you: whether a date a name and a sidecar disagree about is really the shutter date, since no third source survives for those files; what any given prefix means in the vendor’s own terms, since naming conventions are mostly undocumented and the families above are identified by shape and by the metadata the files carry; and how any of this generalizes, since it is one library belonging to one person with one set of devices and one set of habits. A library with no messaging-app history and no cloud export would look nothing like it. The arithmetic is exact; the library is not representative, and no single library is.
Company quotations are verbatim from each company’s own documentation, read on 3 November 2026, with the page named where it is quoted. Apple’s and Google’s wording is quoted from the UK editions of those pages, so their spelling is theirs and not ours.
Where this comes from
- CIPA DC-008: the Exif standard itself — the date inside the file, which the post ranks above the name.
- IPTC Photo Metadata Standard — the sidecar it ranks second.
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.
A name is a guess, not a date
Sorting by filename puts a scan of 1974 next to the day you scanned it, and nothing on screen says which is which. PDR weighs the name against what is inside the file and tells you how sure it is.
Free Test Drive Buy NowRead next
Frequently asked questions
What does IMG mean in a photo filename?
On its own, very little — it is simply the convention most camera apps use for an image, as against VID for a video. What carries the information is the character after it. In the library counted here, 13,314 files begin IMG- with a hyphen and 13,257 of those are copies received through a messaging app, averaging 152 KB. 13,026 begin IMG_ with an underscore and those are camera originals, averaging 1,356 KB. Same three letters, two completely different kinds of file.
Can I trust the date in my photo filenames?
It depends entirely on which program wrote the name, and the folder listing does not tell you. Camera-written names in this library matched the file’s own date to the exact day 12,923 times out of 13,024 — 99.2%, with not a single outright disagreement. Messaging-app names matched to the day 10,260 times out of 13,257, and 1,804 of them disagreed with the file’s date, sometimes by more than a year. Video names from the same apps were right to the day only 61% of the time.
Why do my photos have names like IMG-20230101-WA0001?
That is the shape a messaging app uses when it saves a received image into your phone’s storage: the prefix, the date it handled the file, and a counter for that day. It tells you the picture arrived through a chat rather than coming off your own camera, which usually also means it has been re-encoded smaller on the way. In this library those files average 152 KB and 1.37 megapixels, against 1,356 KB and 12.05 megapixels for the camera originals sitting next to them.
Does renaming my photos lose the date?
Not the date inside the file. Renaming changes the outside of the file only; the embedded metadata, which is where photo software looks first, is untouched. What renaming does lose is the record of which program named the file originally, and that turns out to be the most useful thing a name contains. Only 1.76% of the files in this library had to take their date from a name — but every one of their names was still evidence of where the file had been.
Why do two of my photos have the same filename?
Because a name only has to be unique inside the folder the program wrote it into. In this library six names cover 1,494 files: slide_05.jpg appears 253 times, each one a different image, each one written into a folder of its own by a batch process. Collisions appear at the moment something flattens that structure — a backup, an upload, a drag onto the desktop. A shared name is evidence that two files came from the same program, not that they are the same picture.
What is the best way to name photo files?
If you are naming them yourself, a sortable date first — four-digit year, two-digit month, two-digit day — then a short description, then a sequence number. That is what the camera conventions already do, and it is why sorting by name works for them. The important part is the source: derive the date from the file’s embedded metadata, never from whatever the existing name says, and keep the original name in a log or a metadata field. A naming scheme is for finding things, not for recording them.
Why are some of my photos named with long strings of letters and numbers?
Those are content fingerprints — a value computed from the bytes of the file so that no two files can ever be given the same name. Fifty-seven files in this library are named that way, plus another 23 with a different prefix, and at 54 characters they are the longest names in it. A system that names files like this has guaranteed uniqueness and given up on the name meaning anything. They are not corrupted, and there is no date hidden in them to recover.
Do screenshots count as photos?
Your phone thinks so, and that is what decides it in practice. 6,325 files in this library are screenshots — the fourth-largest naming family, averaging 194 KB, spanning 2015 to 2025 — and they sit in the same folder, the same backup and the same export as the photographs. They are the usual reason a photo count is a few thousand higher than the number of pictures anyone remembers taking, and because they are small, they are also a poor target if you are trying to free up space.
If a filename and the photo’s metadata disagree, which is right?
The metadata, almost always, because it was written by the camera at the moment of capture and the name may have been written by anything that touched the file afterwards. Google states the principle in its own documentation: on download, “your operating system can assign a new timestamp to the file itself”, while the original remains “preserved in the metadata embedded within the files”. The exception is a name written by the camera itself at the same instant — those agreed with the metadata 99.2% of the time here.
How can I tell which of my photos are originals?
Three cheap checks, in order. Read the prefix: a camera convention with a full date and time is an original, a messaging or fingerprint name is not. Check the file size: in this library the originals average 1,356 KB and the received copies 152 KB. Then check whether the file still names a camera — 13,297 of the 13,314 messaging-named files name none at all, while almost all the camera-named ones do. Any two of those three agreeing is a reliable answer.