How to Automatically Organise Your Downloads Folder in Windows 10 and 11 – Free BAT File
Is your Windows Downloads folder full of hundreds of files? Do you struggle to find an important PDF, photograph, document or downloaded video?
You are not alone. Many computer users download files every day, but rarely organise them. Over time, the Downloads folder becomes a mixture of documents, images, videos, ZIP files, software installers and other items.
Finding one particular file can become frustrating.
But what if you could organise all these files automatically without installing any additional software?
In this guide, we will show you how to use a simple, free Windows BAT file to organise your Downloads folder into separate folders according to file type.
You do not need programming knowledge to use it. Just download the file, run it and follow the instructions.
1. Why Should You Organise Your Downloads Folder?
Whenever you download something from a browser, Windows usually saves it in the Downloads folder by default.
For example, you might download:
PDF bills and bank statements
Word documents and Excel spreadsheets
Photographs and screenshots
MP4 videos
MP3 music files
ZIP and RAR archives
Software installation files
Programming scripts and source code
When everything stays in one location, finding a particular file becomes difficult.
Organising your Downloads folder makes it easier to locate files, manage documents and maintain a cleaner computer workspace.
2. What Is a BAT File?
A BAT file is a Windows batch file containing a series of commands that Windows can execute.
Instead of manually performing repetitive tasks, you can use a BAT file to automate them.
For example, a BAT file can help you:
Create folders automatically.
Move files between folders.
Rename files.
Perform repetitive computer tasks.
Organise files according to their extensions.
Our free Downloads Organiser uses Windows PowerShell commands through a batch file to sort files into suitable folders.
3. Download the Free Windows Downloads Organiser
We have prepared a free BAT file that can organise files directly inside your Windows Downloads folder.
======================
@echo off
setlocal
title Organise Downloads Folder
set "DOWNLOADS=%USERPROFILE%\Downloads"
echo.
echo This will organise files in:
echo %DOWNLOADS%
echo.
echo Files will be moved into folders by file type.
echo Existing files will NOT be overwritten.
echo.
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$root = $env:USERPROFILE + '\Downloads';" ^
"$map = @{};" ^
"foreach ($e in '.jpg','.jpeg','.png','.gif','.bmp','.webp','.tif','.tiff','.svg','.heic','.ico') { $map[$e] = 'Images' };" ^
"foreach ($e in '.mp4','.mkv','.mov','.avi','.wmv','.flv','.webm','.m4v','.3gp') { $map[$e] = 'Videos' };" ^
"foreach ($e in '.mp3','.wav','.aac','.m4a','.flac','.ogg','.wma','.mid','.midi') { $map[$e] = 'Audio' };" ^
"foreach ($e in '.pdf') { $map[$e] = 'PDFs' };" ^
"foreach ($e in '.doc','.docx','.rtf','.odt','.txt','.md') { $map[$e] = 'Documents' };" ^
"foreach ($e in '.xls','.xlsx','.xlsm','.csv','.ods') { $map[$e] = 'Spreadsheets' };" ^
"foreach ($e in '.ppt','.pptx','.pps','.ppsx','.odp') { $map[$e] = 'Presentations' };" ^
"foreach ($e in '.zip','.rar','.7z','.tar','.gz','.bz2','.xz') { $map[$e] = 'Archives' };" ^
"foreach ($e in '.exe','.msi','.msix','.appx','.iso') { $map[$e] = 'Installers' };" ^
"foreach ($e in '.html','.htm','.css','.js','.ts','.tsx','.jsx','.py','.java','.c','.cpp','.h','.json','.xml','.yml','.yaml','.sql','.php','.bat','.ps1','.sh') { $map[$e] = 'Code' };" ^
"foreach ($e in '.lnk','.url') { $map[$e] = 'Shortcuts' };" ^
"$files = Get-ChildItem -LiteralPath $root -File -ErrorAction Stop;" ^
"if (-not $files) { Write-Host 'No files found in Downloads.'; exit };" ^
"$plan = foreach ($f in $files) { $ext = $f.Extension.ToLowerInvariant(); $folder = if ($map.ContainsKey($ext)) { $map[$ext] } else { 'Other' }; [PSCustomObject]@{ File=$f.Name; Folder=$folder } };" ^
"Write-Host 'Planned organisation:' -ForegroundColor Cyan;" ^
"$plan | Group-Object Folder | Sort-Object Name | ForEach-Object { Write-Host (' ' + $_.Name + ': ' + $_.Count + ' file(s)') };" ^
"Write-Host '';" ^
"$answer = Read-Host 'Type YES to move these files, or press Enter to cancel';" ^
"if ($answer -cne 'YES') { Write-Host 'Cancelled. No files were moved.'; exit };" ^
"$moved = 0;" ^
"foreach ($f in $files) { $ext = $f.Extension.ToLowerInvariant(); $folder = if ($map.ContainsKey($ext)) { $map[$ext] } else { 'Other' }; $destDir = Join-Path $root $folder; New-Item -ItemType Directory -Path $destDir -Force | Out-Null; $dest = Join-Path $destDir $f.Name; if (Test-Path -LiteralPath $dest) { $base = [IO.Path]::GetFileNameWithoutExtension($f.Name); $extension = $f.Extension; $i = 1; do { $dest = Join-Path $destDir ($base + ' (' + $i + ')' + $extension); $i++ } while (Test-Path -LiteralPath $dest) }; Move-Item -LiteralPath $f.FullName -Destination $dest; $moved++ };" ^
"Write-Host ('Finished. Moved ' + $moved + ' file(s).') -ForegroundColor Green;"
echo.
echo Press any key to close this window.
pause >nul
endlocal
Save above code in txt file and give File name: Organise_Downloads.bat
Requirements:
Windows 10 or Windows 11
A standard Windows user account
No additional software installation
Internet connection only for downloading the file
The script asks for confirmation before moving anything. It does not intentionally delete files or overwrite files with duplicate names.
4. Which Folders Will the BAT File Create?
The script checks the file extension and moves each file into a suitable folder.
| Folder Name | File Types |
|---|---|
| Images | JPG, JPEG, PNG, GIF, WEBP, BMP |
| Videos | MP4, MKV, AVI, MOV, WEBM |
| Audio | MP3, WAV, AAC, FLAC, M4A |
| PDFs | |
| Documents | DOC, DOCX, TXT, RTF, MD |
| Spreadsheets | XLS, XLSX, CSV, ODS |
| Presentations | PPT, PPTX, PPS |
| Archives | ZIP, RAR, 7Z, TAR, GZ |
| Installers | EXE, MSI, ISO |
| Code | HTML, CSS, JS, Python, SQL, JSON, XML |
| Shortcuts | LNK, URL |
| Other | Unrecognised file types |
The folders are created automatically when needed.
5. How to Run the BAT File in Windows 10 or 11
Follow these simple steps.
Step 1: Download the BAT File
Download Organise_Downloads.bat to your computer.
Save it somewhere easy to find, such as your Desktop.
Step 2: Double-Click the File
Locate the downloaded BAT file and double-click it.
A Command Prompt window will open.
Step 3: Review the File Organisation Plan
The script checks the files in your Downloads folder and displays how many files will go into each category.
Review the planned organisation before continuing.
Step 4: Confirm the Operation
The script asks:
Type YES to move these files, or press Enter to cancel.
Type YES and press Enter to start organising.
If you do not want to proceed, simply press Enter without typing YES.
Step 5: Check Your Downloads Folder
Once the operation is complete, open your Downloads folder.
You should now see separate folders such as Images, Videos, PDFs, Documents, Audio and Archives.
Your files will be organised inside these folders.
6. Is This BAT File Safe to Use?
A BAT file can execute commands on your computer, so you should never run scripts from unknown or untrusted sources without checking them.
Our script includes several precautions:
It asks for confirmation before moving files.
It does not intentionally delete files.
It avoids overwriting existing files.
It renames duplicate destinations by adding a number.
It processes files directly inside Downloads, not files already inside existing subfolders.
Important: Always keep a backup of important documents before running any file-management script. Review the script before executing it if you are comfortable reading Windows commands.
7. Will It Organise Files Inside Existing Subfolders?
No. This version only processes files directly inside the main Downloads folder.
For example, if you already have a folder called Personal Documents inside Downloads, the script will leave that folder and its contents untouched.
This helps prevent unexpected changes to your existing folder structure.
8. Do I Need Programming Knowledge?
No.
You do not need to know Python, SQL, JavaScript or any other programming language to use this tool.
The script performs the file organisation automatically after you confirm the operation.
Even beginners can use it by following the instructions in this article.
9. Can I Run This BAT File Again?
Yes.
You can run the script again whenever your Downloads folder becomes cluttered.
It will organise the files currently present directly inside the Downloads folder. Existing category folders will be reused.
10. Frequently Asked Questions
Q1. Does this BAT file work on Windows 11?
Yes. It is designed for Windows 10 and Windows 11 computers with PowerShell available.
Q2. Will the script delete my downloaded files?
No. Its purpose is to move files into appropriate folders, not delete them.
Q3. Does it overwrite files with the same name?
No. If a file with the same name already exists in the destination folder, the script adds a number to the new filename.
Q4. Do I need to install any software?
No additional software is required. The script uses built-in Windows capabilities.
Q5. Can I customise the folders?
Yes. Someone familiar with PowerShell can edit the script to add more file extensions or change folder names. Always keep a backup before modifying it.
Conclusion
A cluttered Downloads folder can waste time and make everyday computer work frustrating. Fortunately, you do not need expensive software to organise it.
With our free Windows Downloads Organiser BAT file, you can sort common file types into separate folders in just a few steps.
Download the script, review its instructions and organise your Downloads folder.
Keep your computer organised and spend less time searching for files!
Disclaimer: This tool is provided free for personal use. Always review scripts from the internet before running them and maintain backups of important files.
Focus Keyword: Organise Downloads Folder Windows 11
Secondary Keywords: Windows Downloads folder organiser, automatically organise files, free BAT file for Windows, organise files by type, Windows 10 file management.


0 Comments