Tutorial January 15, 2026 5 min read

How to Organize Your Desktop Icons by File Type

Stop manually sorting files. Set up automatic rules once and let RuleDock keep your desktop organized forever.

If you're like most Windows users, your desktop is a dumping ground. Screenshots, downloads, documents, and random files pile up until you can barely find anything. Sound familiar?

The traditional solution is to manually drag files into folders. But that takes time, and you have to do it over and over again. Every new download, every screenshot, every saved file—it all ends up on the desktop.

There's a better way: automatic file sorting by type.

The Problem with Manual Organization

Most of us have tried to keep our desktops clean at some point. We create folders, drag files into them, and feel satisfied for about... 24 hours. Then the chaos returns.

The fundamental problem is that organizing requires ongoing effort:

Before you know it, you have 50 icons scattered across your screen.

The Solution: Rule-Based Sorting

What if your desktop could sort files automatically? That's exactly what RuleDock does.

Here's the concept:

  1. You create "fences" (visual containers) on your desktop
  2. You define rules for each fence (e.g., "put all .png files here")
  3. RuleDock automatically moves matching icons into the right fences

Set it up once, and your desktop stays organized forever.

Step-by-Step: Organizing by File Type

Step 1: Install RuleDock

Download RuleDock from the download page and install it. It takes about 30 seconds.

Step 2: Create Your Fences

Right-click on your desktop and select RuleDock → Create Fence. Draw a rectangle and name it based on the file type it will hold:

Step 3: Set Up Sorting Rules

Open RuleDock settings and go to Rules. Create rules for each fence:

Rule: Images Fence
Type: Extension
Pattern: in ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.bmp']
Target: Images
Priority: 10
Rule: Documents Fence
Type: Extension
Pattern: in ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.pptx', '.txt']
Target: Documents
Priority: 10
Rule: Downloads Fence
Type: Extension
Pattern: in ['.exe', '.msi', '.zip', '.rar', '.7z']
Target: Downloads
Priority: 10

Step 4: Test Your Rules

Take a screenshot or download a file. Watch as RuleDock automatically moves the new icon into the correct fence. Magic!

Advanced: Using DSL Expressions

Simple extension matching works great, but sometimes you need more control. RuleDock's DSL lets you combine conditions:

Sort work documents only from Work folder
ext in ['.docx', '.xlsx'] and path contains 'Work'
Sort screenshots (specific naming pattern)
ext == '.png' and name contains 'Screenshot'

Check out our DSL Reference for more advanced examples.

Recommended Fence Setup

Here's a setup that works well for most users:

Fence Extensions Position
📷 Images .png, .jpg, .gif, .webp, .psd, .ai Top-left
📄 Documents .pdf, .doc, .docx, .xls, .xlsx, .pptx, .txt Top-center
Downloads .exe, .msi, .zip, .rar, .7z, .dmg Top-right
🎵 Media .mp3, .mp4, .avi, .mkv, .wav Bottom-left
💻 Code .js, .ts, .py, .cs, .java, .cpp, .h Bottom-center
🔗 Shortcuts .lnk (or leave unsorted) Bottom-right

Tips for Success

What About Files That Don't Match Any Rule?

Files that don't match any rule stay on the regular desktop. This is intentional—you might have one-off files that don't belong in any category.

If you want a "catch-all" fence for miscellaneous files, you can create one with a very low priority rule that matches everything:

Catch-all rule (lowest priority)
Type: Expression
Pattern: ext != ''  # Match anything with an extension
Target: Miscellaneous
Priority: 1

Conclusion

Organizing your desktop by file type doesn't have to be a chore. With RuleDock, you set up rules once and let the software do the work.

No more manual sorting. No more cluttered desktop. Just a clean, organized workspace that stays that way.

Ready to Organize Your Desktop?

Download RuleDock and set up your first sorting rule in minutes.

Download RuleDock Free

Related Articles