Short answer
To number photos in a folder, select them and rename them all at once: F2 in Windows File Explorer, or Rename › Format in the Mac Finder. Both number the files in the order the folder happens to be sorted, and Windows adds no leading zeros, so choose the order first and make sure 10 cannot land before 2.
Use PicOrder. Its free rename tool lets you put the photos in the order you want first — drag them, or sort by the date each was taken — then downloads them named 01, 02, 03. It runs in your browser on any computer or phone, and nothing is uploaded. Try it free in your browser →
Why numbering a folder goes wrong
You have forty photos of a house, a project or a trip, and you want them numbered 1 to 40 so whoever opens the folder sees them in sequence. Both Windows and macOS can number a whole folder in one go. They get two things wrong.
The order is not yours. The numbers follow however the folder is sorted at that moment — by name, by date modified, by size. Neither system lets you say “this one first, that one second” before numbering. If the camera names are out of step with the order you want, the numbers will be too.
The zeros are missing. Windows produces Photo (1) to Photo (40) with no leading zeros. That looks fine in File Explorer, which sorts numbers by value, but plenty of other places sort names character by character and put Photo (10) before Photo (2).
Windows: number photos with F2
The quickest way, and built into File Explorer on Windows 10 and 11:
- Open the folder and sort it the way you want the numbers to run, with Sort in the toolbar.
- Select all the photos with Ctrl+A.
- Press F2, type a name such as
Kitchen, and press Enter.
You get Kitchen (1).jpg, Kitchen (2).jpg and so on. There is no option for the format, the starting number or leading zeros. If the folder mixes photos and videos, Windows can number each file type as its own series, so rename one type at a time. Try it on a copy of the folder first: the result depends on how the folder is sorted when you start.
Windows: 01, 02 with PowerRename
For leading zeros and a format you choose, Microsoft’s free PowerToys includes PowerRename:
- Install PowerToys and make sure PowerRename is switched on in its settings.
- Select the photos, right-click and choose Rename with PowerRename. On Windows 11 it may be under Show more options.
- Tick Use regular expressions and type
.+in Search for. - In Replace with, type
Kitchen_${padding=2;start=1}, tick Enumerate items, and set it to apply to the filename only. - Check the preview list, which shows the new name of every file, then click Apply.
That gives Kitchen_01.jpg, Kitchen_02.jpg… Leave out start=1 and the count begins at zero. Use padding=3 for a hundred photos or more.
Mac: number photos in Finder
- Open the folder and sort the window the way you want the numbers to run, from View › Sort By.
- Select the photos with Command-A, then Control-click one of them and choose Rename.
- In the pop-up menu choose Format, then Name and Index (1, 2, 3) or Name and Counter (with leading zeros).
- Choose whether the number goes after or before the name, type the name in Custom Format, and enter the number to start at.
- Check the example name the window shows, then click Rename.
The steps are from Apple’s Mac User Guide. The counter’s number of zeros is fixed, so if you need exactly 01 or 001, the example tells you whether you will get it.
iPhone and Android
Neither phone can do this with its own apps. On iPhone, the Files app renames one file at a time (touch and hold, then Rename), and the Photos app cannot rename at all. On Android, Files by Google also renames one file at a time. iPhone’s Shortcuts app does have a Rename File action, so a shortcut can rename a batch, but it will not let you set the order either.
The simple way on either phone is a browser tool: open PicOrder’s rename tool, choose the photos from your library, put them in order and download. The zip lands in Files on iPhone and in Downloads on Android.
Choose the order, then number
The step every built-in method skips is the one that matters: deciding the order. The rename tool makes it the first step.
- Sort by date taken. It reads the date the camera stored in each JPEG, so a shoot comes out in the order it happened, whatever the filenames say. Photos without that date fall back to the date modified.
- Or set it by hand. Drag any photo up or down, or use the arrows.
- Pick the format.
01_original-name,Kitchen_01, or just01, starting from any number. - Zeros are automatic. Two digits up to 99, three from 100, so the order holds in every app.
The photos themselves are not changed: same files, same quality, same camera data. Only the names change, and each file’s date is set two seconds after the one before, so anything that sorts by date sorts them your way too. It is free with no limit, and the photos never leave your device.
Why 01 and not 1
Many apps sort names one character at a time, left to right. 10 starts with 1, which comes before 2, so photo 10 lands between photo 1 and photo 2. Windows File Explorer is an exception — it compares the numbers by value — which is why a folder can look right on your PC and wrong on someone else’s phone, TV or website. Giving every number the same width fixes it everywhere: 01 to 99, or 001 once you pass 99.
If the photos are going to WhatsApp
Numbered filenames are perfect for a folder, a shared drive or an email attachment. They do not survive a chat. WhatsApp gives every photo it sends a name of its own — on Android they are saved as something like IMG-20261014-WA0001.jpg, dated when they arrived — so the numbers you set are gone. The batch then shows up in whatever order the chat decides.
For anything sent through a messaging app, the number has to be in the picture itself. PicOrder stamps it on each photo in the order you choose, and it also names the files in sequence, so the order is kept in the image and the folder alike. Free for up to 10 photos at a time. The full story is in why photos arrive out of order.
Common questions
How do I number all the photos in a folder at once?
On Windows, select them all, press F2, type a name and press Enter: they become Name (1), Name (2) and so on. On a Mac, select them, Control-click, choose Rename, then Format. Neither lets you choose the order: they follow the way the folder is sorted. To set the order yourself, use PicOrder’s free rename tool in your browser.
Why does photo 10 come before photo 2?
Because many apps sort names character by character, and 1 comes before 2. Windows File Explorer sorts numbers by value, so it looks right there, but many other apps, phones and websites do not. Leading zeros fix it everywhere: 01, 02 … 10.
Can I rename several photos at once on iPhone or Android?
Not with the built-in apps. The Files app on iPhone and Files by Google on Android rename one file at a time. A free browser tool such as PicOrder’s renamer does a whole batch on the phone, without uploading anything.
Do the new names survive WhatsApp?
No. WhatsApp gives every photo it sends a name of its own, so the numbers in the filenames are gone when the photos arrive. To keep the order in a chat, put the number into the picture itself, which is what PicOrder does.