How to Auto-Organize Files by Type on Windows & Mac
Your Downloads folder has 847 files. PDFs, images, spreadsheets, zip archives, installers, text files, all mixed together in one flat list. You want them sorted: documents in one place, images in another, installers somewhere else. But doing it by hand would take an hour, and you'll need to do it again next month.
This guide covers every method for automatically sorting files by type, from the simplest built-in option (30 seconds) to AI-powered solutions that go beyond file extensions and organize by actual content.
The 30-Second Fix (Mac Only)
If you're on a Mac and your desktop is the problem, there's a built-in feature most people don't know about:
Right-click your desktop background, select "Use Stacks", then choose "Group Stacks By: Kind".
Immediately, every file on your desktop organizes into neat stacks grouped by type: Documents, Images, PDFs, Presentations, Screenshots, and so on. Click a stack to expand it and see the files inside.
This is the fastest possible solution for desktop clutter. The limitation is that it only works on the desktop, not in other folders. For your Downloads or Documents folder, you need one of the methods below.
Windows Methods
File Explorer grouping
Open any folder in File Explorer, right-click in empty space, select Group by > Type. Files organize into labeled groups by extension. This is a visual-only change. It doesn't move files. But it makes it much easier to select all files of one type and move them manually.
Power Automate Desktop (Free)
Create a flow that watches your Downloads folder and automatically moves files by extension:
- .pdf, .doc, .docx, .xlsx, .pptx go to Documents
- .jpg, .png, .gif, .svg, .webp go to Images
- .exe, .msi, .dmg go to Installers
- .zip, .rar, .7z go to Archives
- Everything else goes to Misc
Setup takes about 20 minutes. Once running, it sorts automatically in the background. Free, no third-party software required.
DropIt (Free)
A simpler alternative to Power Automate. Define file associations (which extensions go where), then either drag files onto DropIt's icon or let it monitor a folder. The interface is straightforward and setup takes about 10 minutes. See our comparison of auto file organizers for more details.
Mac Methods
Automator Folder Actions
Open Automator, create a new Folder Action, attach it to your Downloads folder, and add "Move Finder Items" actions with conditions based on file type. When a new file arrives in Downloads, Automator checks the extension and moves it to the appropriate folder.
This is free and built into macOS. The visual workflow builder is intuitive enough for non-programmers. The downside is that each condition requires separate setup, and complex rules get messy.
Hazel ($42)
Hazel's rule builder makes type-based sorting trivial. Create one rule per file type, assign a destination folder, and Hazel handles the rest. It also supports matching by name patterns, date ranges, and even text content inside certain file types.
Hazel is the most polished option for Mac users. For a full breakdown, see our guide to automatic file sorting.
Sorting by type is a start. Sorting by content is the goal.
Filect reads inside your files and organizes them by what they're about, not just what format they're in. A tax return and a restaurant menu don't end up in the same "PDF" folder.
Try Filect Free โWhy Sorting by Type Isn't Enough
Sorting by file type solves the visual chaos problem. Your folders look cleaner. But it creates a new problem: everything of the same type is lumped together.
Your "Documents" folder now contains:
- Tax returns from 2023
- A recipe for banana bread
- Your employment contract
- Meeting notes from a project that ended two years ago
- A short story you started writing and forgot about
All PDFs. All in the same folder. Finding the tax return means scrolling through everything else. You've gone from "messy Downloads folder" to "messy Documents folder." The problem moved; it didn't get solved.
This is the fundamental limitation of type-based sorting. File extensions tell you the format, not the content. For a broader analysis of this problem, see our article on file tagging vs folders.
Sorting by Content Instead
AI-powered file organization takes a completely different approach. Instead of looking at the file extension, it reads the text inside the document and categorizes based on meaning.
Here's what that looks like in practice:
| File | Extension | Type-Based Sort | AI Content Sort |
|---|---|---|---|
| Tax_Return_2024.pdf | Documents | Finance / Tax | |
| banana_bread.pdf | Documents | Recipes | |
| Q3_Revenue.xlsx | .xlsx | Spreadsheets | Finance / Reports |
| meeting_notes_aug.docx | .docx | Documents | Work / Meetings |
| scan_0047.pdf | Documents | Legal / Contracts |
The AI groups the tax return and the revenue spreadsheet together under Finance, even though they have different file extensions. The banana bread recipe goes to a completely different category. The scanned contract with a terrible filename still gets categorized correctly because the AI reads the actual text.
For a full technical explanation of how AI file organization works, see our complete guide to organizing files with AI.
Beyond file types. Organized by meaning.
10-day free trial. No credit card. Windows and Mac.
See Pricing โFrequently Asked Questions
How do I organize files by type automatically?
On Mac, right-click your desktop and enable "Use Stacks" grouped by Kind. For other folders, use Hazel or Automator. On Windows, use Power Automate Desktop or DropIt. For content-based organization beyond type, Filect uses AI.
Can I automatically separate PDFs from images and documents?
Yes. Any rule-based tool can sort by extension. Hazel (Mac) and DropIt (Windows) both handle this well. The limitation is that all PDFs go to the same place regardless of whether they're tax returns, recipes, or contracts.
What is the difference between sorting by type and sorting by content?
Sorting by type groups files by extension (all PDFs together). Sorting by content groups by meaning (all tax documents together, whether PDF, DOCX, or XLSX). Content-based sorting requires AI; type-based sorting uses simple rules.
Filect