Tooling

File Organizer

A Python CLI that sorts a messy folder into subfolders by file type. This page runs the real algorithm: the same categorization, --dry-run preview, collision-safe renaming, and undo. Try the built-in sample, or pick a real folder and it will actually organize it.

Python C++ CLI File System Access API Zero dependencies

How it works

01

Extension to category

Each extension maps to one of six buckets (Images, Documents, Audio, Video, Archives, Code). Unknown extensions go to Other instead of getting skipped.

02

Collision-safe renaming

If the destination name is taken, the file becomes report_1.pdf, then report_2.pdf. Nothing is ever silently overwritten.

03

Dry run, then undo

--dry-run prints every planned move without touching a file. Real moves get logged as they happen, and undo replays that log backwards.

SandboxThe folder below is a made-up sample. In this mode nothing on your computer is read or touched. To organize your own files, use Choose a real folder below.

Folder~/Downloads
organize.py

Sample mode: flip on Dry run and hit Organize to preview, or Add new downloads (drops in a name that's already taken) then Organize to see collision-safe renaming. Real mode: click Choose a real folder, grant access, preview with Dry run, then turn it off to actually sort your files. Requires Chrome or Edge, and a normal folder like Downloads (browsers block drive roots and system folders).