100% Client-Side • No Server Uploads • Private

Empty Folder Finder

Detect, inspect, and organize empty directories and ghost folder chains. Scan local directories, upload folder trees, or paste hierarchies entirely in your browser without uploading files.

Click to Select a Local Directory

Or drag and drop an entire folder here. The browser reads directory metadata in memory to locate empty folders.

No folders or files are uploaded to any server. Local directories remain 100% untouched.
Upload Folder Structure File

Upload an exported .txt ASCII tree, .json directory hierarchy, or raw path list.

Supports Unicode/ASCII characters (ā”œā”€ā”€, └──, │) and tab or space indentations.
Project with Abandoned Cache & Build Folders

A realistic project directory with empty build artifacts, unused temp directories, and abandoned logs.

Photo Archive with Empty Subfolders

A photo library directory with empty monthly folders and unsorted empty albums.

Deeply Nested Ghost Directory Chain

A deep directory branch containing only nested empty directories that become empty.

Directly Empty
0
Becomes Empty
0
Total Empty Candidates
0
Total Folders Scanned
0
0 visible
(0 selected for cleanup)
Status Folder Name & Relative Path Depth Direct Contents Action
Root Folder Hierarchy (Empty folders highlighted)
Automated Directory Cleanup Scripts

Generate ready-to-run shell scripts to safely delete selected empty directories on your computer.

Safe Execution Guarantee: Scripts delete directories in reverse depth order (deepest leaf folders first). This ensures empty subdirectories are removed before their parent folders, preventing permission or "directory not empty" errors.
Review script contents before running in your terminal.

Frequently Asked Questions & Guide

The analysis engine recursively inspects the entire directory hierarchy in your browser. It distinguishes between "Directly Empty" folders (which contain zero files and zero subfolders) and "Folders That Become Empty" (which contain no files themselves, and all their descendant subfolders are also empty). When the subfolders are pruned, the parent directory becomes completely empty.

No. For your security and peace of mind, web browsers do not have permission to delete files or folders directly on your device. This tool generates a safe audit report and automated cleanup scripts (PowerShell for Windows, Bash for macOS/Linux) that you can review and run on your computer.

Operating systems sometimes generate invisible metadata files (such as .DS_Store on macOS or Thumbs.db/desktop.ini on Windows) that make an otherwise unused directory appear "non-empty". The tool options allow you to view the exact contents so you can clean up ghost folders easily.

No. All folder scanning, path parsing, hierarchy building, and script generation happen 100% locally inside your web browser using HTML5 File APIs and JavaScript memory. Your files and folder names are never transmitted over the internet or stored on our servers.

In standard Unix and Windows shells, a directory cannot be deleted with basic commands if it still contains subdirectories. By deleting the deepest leaf empty folders first and moving upwards toward parent directories, all empty folders can be safely removed without errors.