Comfy File Sorter is a powerful, fast, and beautiful local gallery manager for your generations (Stable Diffusion / ComfyUI). It is designed for convenient viewing, sorting, and managing thousands of images and videos.
| Gallery Interface | View Mode |
|---|---|
![]() |
![]() |
- β‘ Lightning-Fast Gallery: Display thousands of files without lag. Supports both images and videos.
- π Smart Search: Instantly search not only by filenames but also by prompts (positive/negative), models, and seeds!
- π Metadata Reading: Full support for ComfyUI Workflows and standard PNG Info.
- β€οΈ Favorites: Mark your best generations and filter them with a single click.
- π Immersive Mode: Full-screen image viewing with slideshow capability.
- π File Operations:
- Quick copy to the "Selected" folder.
- Delete (to Recycle Bin or permanently).
- Open file location in Explorer.
- π¦ File Merger: A built-in utility to collect files from multiple folders into one with smart sequential renaming.
- π¨ Theming & Localization: Light/Dark theme. Supports English and Russian languages.
The application is completely portable.
- Simply download the latest release.
- Run the
run.batfile.
Requires Python 3.10+.
-
Clone the repository:
git clone https://github.com/Stamir36/ComfyFileSorter.git cd ComfyFileSorter -
Install dependencies:
pip install -r requirements.txt
-
Run the server:
python app.py
The browser will open automatically at http://127.0.0.1:7865.
Upon the first launch, the program will create the necessary folder structure. You can change the folder paths directly in the program interface ("Settings" button).
π ComfyFileSorter/
βββ π run.bat # Launch file
βββ π output/ # Place images here (or specify your ComfyUI output path)
βββ π copies/ # Files are saved here when clicking the "Copy" button
You can change the folder paths directly in the program interface ("Settings" button).
| Key | Action |
|---|---|
β / β |
Previous / Next image |
F |
Toggle Immersive Mode |
Delete |
Delete current file |
Esc |
Close viewer |
- Built with Flask and Tailwind CSS.
- Icons by Heroicons.
Author: Stamir Version: 1.0.0 License: MIT License
Link to my Civitai profile: Civitai




