# Organize files into folders by file type

> Sort a messy folder such as Downloads into Images, Documents, Video, and other subfolders with File Organizer in S.A.K. Utility. Preview the moves first.

Source: https://sakutility.com/wiki/organize-files-by-type
Applies to: S.A.K. Utility (SAK), a free portable Windows toolkit
Updated: 2026-11-01

To sort a messy folder into subfolders by file type, use File Organizer in S.A.K. Utility: open the **File Management** tab, choose the **File Organizer** sub-tab, pick a folder, and click **Organize Files**. It moves each file into a folder named after its category, such as `Images` or `Documents`, inside the folder you picked. You can preview the result first.

![File Organizer with a folder chosen, the Category Mapping table, and the Preview and Organize Files buttons](https://sakutility.com/screenshots/wiki/file_organizer_main.webp?v=50ae882692)

*File Organizer*

## When to use this

Use this when a Downloads folder or desktop has filled up with hundreds of mixed files and you want them sorted without doing it by hand.

## What you need

A folder on a regular Windows drive that you can write to. It does not need administrator rights unless the folder itself is protected. Close any program that has one of those files open.

## Steps

1. Open the **File Management** tab.
2. Choose the **File Organizer** sub-tab.
3. Click **Browse...** and choose the folder.
4. Look over **Category Mapping**. To change it, click a cell and type, or use **Add Category** and **Remove Selected**.
5. Click **Preview**. It moves nothing.
6. Read **Preview Results**, which shows how many files go to each category and how many have a name clash, then click **OK**.

![The Preview Results window listing the number of files for each category](https://sakutility.com/screenshots/wiki/file_organizer_preview_results.webp?v=6f118736e9)

*Check the plan before anything moves*

7. Click **OK** on the **Preview Complete** message.
8. To change what happens when a name clashes, click **Settings**, choose a **Collision Strategy:**, then click **OK**.

![The File Organizer Settings dialog with the collision strategy and create subdirectories options](https://sakutility.com/screenshots/wiki/file_organizer_settings.webp?v=38e05848af)

*How to handle a name that is already there*

9. Click **Organize Files**.
10. Read the **Confirm Organization** box, then click **Yes**.

![A Confirm Organization box saying how many files will move, the collision strategy, and that the operation cannot be automatically undone](https://sakutility.com/screenshots/wiki/file_organizer_confirm.webp?v=f7f7b1bc76)

*The last check before files move*

11. Wait for the **Organization Complete** message, then click **OK**.

## How it works

File Organizer looks only at the files directly inside the folder you chose. It leaves subfolders and their contents alone. For each file it takes the extension, the part of the name after the dot, and looks for it in **Category Mapping**. If it finds it, the file moves to a folder with that category's name. If it does not, the file stays where it is.

The default categories are:

- **Archives:** zip, rar, 7z, tar, gz, bz2, xz, iso
- **Audio:** mp3, wav, flac, aac, ogg, m4a, wma, opus
- **Code:** cpp, h, py, js, ts, java, cs, html, css, json, xml, yaml, yml
- **Documents:** pdf, doc, docx, txt, rtf, odt, xls, xlsx, ppt, pptx, csv
- **Executables:** exe, msi, bat, cmd, ps1, sh
- **Fonts:** ttf, otf, woff, woff2, eot
- **Images:** jpg, jpeg, png, gif, bmp, svg, webp, ico, tiff, raw
- **Video:** mp4, avi, mkv, mov, wmv, flv, webm, m4v

### If a file with that name is already there

**Collision Strategy:** decides what happens:

- **Rename** is the default. It keeps both, and adds a number to the moved file, such as `photo_1.jpg`.
- **Skip** leaves the file where it is.
- **Overwrite** replaces the file already in the category folder. The replaced file is gone.

## Good to know

> **There is no undo.** S.A.K. Utility cannot put the files back for you. The moved files are all still there, sorted into the new subfolders, unless you chose **Overwrite**. File Explorer's undo does not cover this tool.

- **Type extensions without the dot.** Write `jpg`, not `.jpg`, and separate them with commas. An entry with a dot does not match anything.
- **A file that will not move does not stop the rest.** If a file cannot be moved, for example because it is open in another program, it stays where it is and the others carry on. **Organization Finished With Errors** then shows how many moved and lists each file left behind, with the reason. Close the program and run it again to move those.
- **Your changes are not saved.** Custom categories and settings last until you close S.A.K. Utility. **Reset to Defaults** puts the default categories back.
- **Leave Create Subdirectories ticked.** If you untick **Create Subdirectories**, each category folder must already exist, or the run fails.
- **Regular Windows drives only.** The target list at the top can show Mac and Linux disks, but File Organizer will not move files on them.

## Related guides

- [Find duplicate files](https://sakutility.com/wiki/find-duplicate-files)
- [Browse files in a dual-pane file manager](https://sakutility.com/wiki/file-explorer)
- [Search inside files, ZIPs, and photo metadata](https://sakutility.com/wiki/advanced-file-search)
