Filename Tidy: a tool for cleaning up dates in filenames

Paul Wilkinson

2025-03-08

My preferred way to write a calendar date is “Year-Month-Day”, e.g. “2006-12-31”. This is the ISO 8601 extended format, which has a number of advantages, one of them being that it sorts nicely when using lexicogrpahic sort.

Many files that I download or generate (bank statements, bills, screenshots) have a date in the filename by default. I started cataloguing the filenames, and I found a wide variety of different date representations in the filename. They are frequently nothing close to ISO 8601.

I wanted a tool that searched for anything in the filename that looks a bit like a date and converted it to ISO 8601, but I couldn’t find anything, so I wrote my own. I tidied it up to try and make it easier to use, and the result is Filename Tidy for Windows.

A screenshot of Filename Tidy's batch rename screen.

In addition to date and time manipulation, you can also do a find-and-replace rename step, as is common in other bulk-rename utilities.

I’m considering some future directions that Filename Tidy could take:

If you’re interested in any of these, let me know.


Questions or comments can be sent to [email protected]