How to Shuffle Photos in a Folder? (2026)

Oct 5, 2026 | Photography Tutorials

How to shuffle photos in a folder? Want a quick way to make slideshows, uploads, or digital frames show images in random order?

This guide walks you through simple, safe steps for Windows, Mac, and third‑party apps. You’ll get easy tricks, a ready PowerShell script, and Automator/Terminal tips for Mac.

I also cover the best viewers that shuffle for you, how to build a randomized slideshow, and when to rename versus just play in random order. Screenshots, copyable scripts, and a pros/cons checklist are included so you can pick the right method.

Always work on a copy to protect originals and metadata, and I’ll show how to save a mapping file so changes are reversible. Ready to learn how to shuffle photos in a folder the smart way? Let’s dive in.

How to shuffle photos in a folder (Windows) — practical, step‑by‑step methods

how to shuffle photos in a folder

If you are wondering how to shuffle photos in a folder on Windows, the short answer is that File Explorer has no random sort. You either change filenames so Name sort appears random, create a shuffled copy, or use a viewer that shuffles at slideshow time.

For a tiny set, you can use a simple File Explorer trick. Select files in a random order by holding Ctrl and clicking each photo in the mixed order you want, then Cut and Paste into a new folder so Windows writes them in that sequence.

This selection‑order trick is quick because it uses no tools and leaves metadata alone. But it is slow for big folders, easy to misclick, and it does not survive if some devices re‑sort by name or date, so use it only for small sets.

For reliable and repeatable shuffling, PowerShell is the best Windows option. You can copy images into a new folder with random numeric prefixes, or rename in place with reversible prefixes so sorting by Name yields a shuffled order.

Here is a safe, copyable script that preserves extensions, writes a CSV mapping for reversal, and defaults to creating a randomized copy. Always test on a small copy of your folder before running it on your originals.

# PowerShell: shuffle photos by copying (default) or renaming with numeric prefixes
# Usage:
#   Right‑click Start > Windows Terminal (Admin), paste and edit the two paths, press Enter.
#   Set -RenameInPlace to rename in the source folder instead of copying.
param(
  [string]$Source = "C:PhotosINPUT",
  [string]$Destination = "C:PhotosINPUT_shuffled",
  [switch]$RenameInPlace,
  [int]$Seed = 0
)

if (-not (Test-Path -LiteralPath $Source)) { Write-Error "Source folder not found."; exit 1 }

# Gather only files (no subfolders)
$files = Get-ChildItem -LiteralPath $Source -File
if ($files.Count -eq 0) { Write-Error "No files found in source folder."; exit 1 }

# Seed for reproducible shuffle; generates one if not supplied
if ($Seed -eq 0) { $Seed = Get-Random }
$rng = [System.Random]::new($Seed)
$shuffled = $files | Sort-Object { $rng.Next() }

if ($RenameInPlace) {
  $mapPath = Join-Path $Source "rename-map.csv"
  $map = @()
  $i = 1
  foreach ($f in $shuffled) {
    $prefix = "{0:0000}" -f $i
    $newName = "$prefix" + "_" + $f.BaseName + $f.Extension
    Rename-Item -LiteralPath $f.FullName -NewName $newName -ErrorAction Stop
    $map += [pscustomobject]@{ Original = $f.Name; New = $newName }
    $i++
  }
  $map | Export-Csv -Path $mapPath -NoTypeInformation -Encoding UTF8
  Write-Host "Done. Mapping saved to $mapPath"
}
else {
  New-Item -ItemType Directory -Path $Destination -Force | Out-Null
  $mapPath = Join-Path $Destination "copy-map.csv"
  $map = @()
  $i = 1
  foreach ($f in $shuffled) {
    $prefix = "{0:0000}" -f $i
    $newName = "$prefix" + "_" + $f.Name
    Copy-Item -LiteralPath $f.FullName -Destination (Join-Path $Destination $newName) -ErrorAction Stop
    $map += [pscustomobject]@{ Original = $f.Name; New = $newName }
    $i++
  }
  $map | Export-Csv -Path $mapPath -NoTypeInformation -Encoding UTF8
  Write-Host "Done. Shuffled copies created at $Destination. Mapping saved to $mapPath"
}

To use it, open Windows Terminal as admin, paste the script, edit the Source and Destination paths, and press Enter. Sorting the new folder by Name now gives you a randomized order that stays consistent, and the CSV file lets you undo or audit changes later.

Screenshot ideas to include here are clear and simple. Show File Explorer before and after sorting by Name, the PowerShell window while the script runs, and the contents of the shuffled copy with 0001_, 0002_ prefixes visible.

Command Prompt batch files can rename, but they lack an easy, safe randomizer and can break on Unicode filenames. PowerShell is more controllable, keeps extensions intact, and makes logging to CSV trivial for reversibility and auditing.

If you prefer a walk‑through of these Windows steps, try this concise step-by-step guide that mirrors the approach. It shows why name prefixes are more reliable than modified date tricks with modern viewers and frames.

In short, manual selection is okay for a dozen shots, PowerShell is best for folders of any size, and viewers are ideal when you do not want to touch filenames at all. Choose based on speed, safety, and whether you need a permanent order or just a slideshow.

How to shuffle photos in a folder (Mac) — Apple Photos, Finder and workable workarounds

On macOS, Photos does not provide a persistent “random” sort for an album or folder. You can, however, create an album, click the three dots, choose Slideshow, and depending on your macOS version you may see a Shuffle or Random option that shuffles during playback only.

If you need filenames that stay random outside Photos, export the album to a new Finder folder and shuffle by renaming. The safest approach is to create a shuffled copy instead of touching originals, so you can return to the album and export again later if needed.

Automator makes this quick even for beginners. Create a new workflow that takes a folder as input, adds a “Run Shell Script” action using Python, and prefixes 0001_, 0002_, and so on in a randomized sequence; run it on a duplicate folder to test first.

If you are comfortable in Terminal, you can do the same in just a minute. Use a short Python snippet to shuffle all files and write a CSV map so you know exactly what changed and can undo it if needed.

For viewing without renaming, XnView MP and nomacs both play shuffled slideshows and respect subfolders. XnView MP is cross‑platform and fast on big RAW folders, while nomacs is open‑source and lightweight, and both are good choices when you only need playback.

Good visuals for this section are the Photos slideshow settings with the Shuffle toggle visible, an Automator workflow window showing “Run Shell Script,” and a Terminal window with the command ready to run. Short captions beneath each screenshot help readers know what to click.

Third‑party viewers and tools that do the shuffling for you (best apps & how to use them)

Viewers are the easiest answer when you want to see a random order without changing any filenames. They are quick to set up, reversible, and most can include subfolders so you can point at one top‑level album and press play.

IrfanView on Windows is tiny, fast, and perfect for one‑click slideshows. Open IrfanView, press W or choose File then Slideshow, add your folder, tick Random order, choose Include subfolders if you need it, and click Play; arrow keys and Space control navigation smoothly.

FastStone Image Viewer offers a similar workflow with a full‑screen viewer that feels great for events. Open the folder in FastStone, choose Create then Slideshow Builder for a saved show or press Enter in the viewer and select the Shuffle or Random option in settings to start.

XnView MP is my cross‑platform pick when I am shuffling tens of thousands of images. Open the folder, switch to Viewer, enable Slideshow, and turn on Random with recursive subfolders; it handles mixed file types well and runs on Windows, Mac, and Linux with the same interface.

VLC is a fun wildcard that many forget can handle image playlists. Drag the folder into VLC, open the Playlist view, click the Shuffle icon, and start playback; it is not as photo‑focused but works across platforms and is good for mixed media displays.

If you need a screensaver or a networked photo display, Emby, Plex, and ArtSaver are worth a look. They can shuffle albums across devices, though library scanning and caching add overhead, so they are best when you want a shared living‑room stream or signage.

All these tools are safe if you only use them for viewing. Download from the official sites only, avoid bundled installers, and keep them updated for codec and RAW support when cameras change.

For visuals, capture each app’s shuffle checkbox and include subfolders toggle, plus a short caption. One clear screenshot of IrfanView’s Slideshow window, one of XnView MP’s options, and one VLC playlist with the Shuffle icon highlighted will help readers find the right buttons fast.

In practice, viewers win for speed and safety because nothing about your files changes. Renaming is still useful for devices that only obey filename order, like many simple digital frames, so pick the approach that matches your final destination.

Create a randomized slideshow (Windows 10 vs Windows 11) — best workflows

Most people do not need to rename at all; they just want a slideshow that feels fresh each time. Windows 10 and Windows 11 Photos apps are limited here, so third‑party viewers remain the fastest way to get a true shuffle without touching files.

On Windows 11, the built‑in Photos app does not offer a persistent Shuffle slideshow setting at the time of writing. If you need a quick visual of how to get a shuffled playback today, this short Windows 11 tutorial shows practical workarounds using external viewers.

IrfanView and FastStone are the most reliable workflows for full‑screen shows. Create a slideshow, check Random order, include subfolders if needed, then save a reusable .exe or project file so you can run the same show at events with one double‑click.

VLC can also do it by adding a folder to the playlist, enabling Shuffle in the Playlist view, and starting playback. For formal events, PowerPoint or Keynote works too: import images, use a small macro or add‑in to shuffle slide order, and present from your laptop with full control.

When you work with huge folders or 4K displays, pre‑generate smaller JPEGs in a copy folder for smoother playback. This reduces disk thrashing, speeds up decoding, and makes remote drives behave much better during continuous slideshows.

Safety, automation tips and troubleshooting (must‑have advice)

Always work on a copy before you rename or script anything, and keep your originals in a safe place. Renaming changes only filenames and will not strip EXIF, but copying with some tools can alter metadata, so stick to operating system copy commands or trusted viewers.

Reversibility matters, so keep the CSV map your script creates. A tiny sample looks like this and makes undo simple if you ever need to restore names later.

Original,New
IMG_0001.JPG,0001_IMG_0001.JPG
IMG_0421.JPG,0002_IMG_0421.JPG

Choose a viewer when you need a one‑time show; choose renaming when a device only respects filename order, like some digital frames. If your slideshow still sorts by date, change the sort column to Name or tell the viewer to use playlist order, and consider these helpful shuffle slideshow tips if behavior seems odd.

Large folders can feel slow on spinning drives or network shares, so test a smaller sample first. If you hit duplicate name errors while renaming, the prefix approach with 0001_, 0002_, and so on avoids collisions and keeps the order clean across apps.

For a quick set of recommendations, casual users should use a viewer with Random order and never rename. Event organizers should create a saved IrfanView or FastStone slideshow so it is repeatable. Pro photographers should script a shuffled copy with PowerShell, archive the CSV map, and retain originals untouched.

Finally, remember the core idea behind how to shuffle photos in a folder is to match the method to your goal. If you only need a random show tonight, use a viewer; if you need a lasting order tomorrow on a picky frame, rename with a map and test on a copy.

What People Ask Most

What is the easiest way to learn how to shuffle photos in a folder?

Open the folder in a photo viewer or file manager that has a “shuffle” or “randomize” option and try that feature to rearrange the display order.

Can shuffling photos in a folder change my original file names or locations?

No, most shuffle tools only change the display order and do not rename or move files unless you explicitly save a new order.

Will shuffling photos affect the order when I upload them to social media or print them?

Sometimes uploads and print services use the saved file order, so if you want the shuffled order to stick, export or save the new sequence first.

Can I shuffle photos across multiple subfolders at once?

Many programs only shuffle within a single folder, but some apps let you import images from multiple folders into one gallery to shuffle them together.

Is there a way to undo shuffling if I don’t like the new order?

Yes, you can usually close and reopen the folder or use the app’s sort options to revert to name, date, or a saved manual order.

Why would I want to shuffle photos in a folder?

Shuffling helps create random slideshows, avoid selection bias when picking favorites, and preview a varied set for sharing or editing.

Are there common mistakes beginners make when trying to shuffle photos in a folder?

Beginners often assume shuffle permanently reorders files, so always check whether the app only changes the view and back up important photos before making permanent changes.

Final Thoughts on how to shuffle photos in a folder

If you only needed to shuffle 270 photos for a simple slideshow, you saw there’s no built‑in Random sort in File Explorer — but you can get the effect by randomizing names/dates, making a shuffled copy, or using a viewer that shuffles at play time. This guide walked through a quick manual trick, a dependable PowerShell script, Mac workarounds, and viewers so you can choose speed, safety, or reversibility.

One thing to watch: bulk renames or exports can strip EXIF or timestamps, so it’s smartest to test on duplicates and save a CSV map to undo changes; viewers avoid that risk but won’t change file order permanently. Casual users will prefer a shuffle-capable viewer, event hosts will likely want a saved shuffled folder or numbered prefixes, and photographers will value scripted, reversible renames that preserve metadata.

Between the step‑by‑step options, screenshots and copyable PowerShell example, you now have practical, repeatable choices that match different needs. A small trial run will leave you ready to present genuinely random slides with confidence and calm.

Disclaimer: "As an Amazon Associate I earn from qualifying purchases."

Stacy WItten

Stacy WItten

Owner, Writer & Photographer

Stacy Witten, owner and creative force behind LensesPro, delivers expertly crafted content with precision and professional insight. Her extensive background in writing and photography guarantees quality and trust in every review and tutorial.

 Tutorials

 Tutorials

 Tutorials

 Tutorials

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *