How to sort files into folders automatically

Moving hundreds of files into folders by hand takes an afternoon. This is how to do it in about a minute, on Windows, Mac or Linux, without installing a program.

What your computer can and cannot do by itself

File Explorer on Windows and Finder on a Mac can group files by type or date, but that only changes the view. The files all stay loose in the same folder. To put each file into a folder of its own kind you either drag them yourself, write a script, or use a tool.

The quick way: FileSort

FileSort is a free web page that sorts the files in a folder into subfolders. It runs in your browser, so nothing is uploaded and there is nothing to install.

  1. Open FileSort and click Select folder.
  2. Pick the folder with the loose files and allow access when the browser asks.
  3. Choose the rule: File type, Extension or Month.
  4. Look through the list. It shows every folder that will be made and which files go into it.
  5. Press Sort files.

Sort a folder now, free

Which rule to choose

RuleResultUse it for
File typeImages, Documents, Videos, Audio, Archives...Mixed folders such as Downloads or Desktop
Extensionjpg, png, pdf, docx, zip...When you need each format kept separate
Month2026-11, 2026-10, 2026-09...Photos, scans, invoices, anything filed by time

The full list of which file ending goes into which folder is on the file types page.

Is it safe?

Which browsers work

Chrome and Edge on a computer sort the folder itself. Firefox, Safari and phones cannot change files on disk, so there FileSort gives you a sorted copy of the folder as a .zip file to download instead.

Common questions

Can I sort files in subfolders too?

Yes. Switch on "Include subfolders" and files inside subfolders are pulled out and sorted as well.

Does it work with thousands of files?

Yes. A few thousand files take seconds in Chrome or Edge, because the files are moved rather than copied.

Related guides