Skip to content
Aback Tools Logo

Directory Structure Comparator

Upload or paste two directory listings (or ZIP archives) to compare their file structure with our free online Directory Structure Comparator. The tool parses each input into a normalized file map, then compares them to categorize every file as Added, Removed, Changed, or Unchanged. Supports text listings with optional file sizes and direct ZIP archive parsing. Results are displayed in an interactive tabbed interface with color-coded status badges, summary statistics, and change rate percentage. All processing stays in your browser - no signup required.

Directory Structure Comparator

Upload or paste two directory listings (or ZIP archives) to compare their file structure side by side. Detects files added, removed, changed, and unchanged between the two inputs.

Directory A (Reference)

Directory B (Target)

Input Format Tips

  • Paste directory listings with one file per line - optionally with ,size or [size]
  • Upload a ZIP archive to automatically extract and list its file structure
  • Lines starting with #, ;, or // are treated as comments and ignored
  • Files are matched by name - size changes are shown as differences
  • All processing stays in your browser - nothing is uploaded to any server

Why Use Our Directory Structure Comparator?

Dual Input Methods

Paste directory listings as text or upload files (TXT, CSV, ZIP) for each input. Supports flexible formats: one file per line with optional size notation like "filename,1024" or "filename [1024]". Comments are supported for annotated listings.

Four-Category Results

Files are automatically categorized into Added, Removed, Changed, and Unchanged groups. Each category has its own tabbed view with color-coded status badges, file sizes, and change details - making it easy to focus on what matters.

Summary Statistics

Get an instant overview with total file counts per category, change rate percentage, and a high-level summary. The comparison summary tells you at a glance how many files changed, what type of changes occurred, and the overall scope.

100% Private & Local

All processing happens entirely within your browser. Your directory listings, uploaded files, and comparison results never leave your device. No data is transmitted, stored, or logged - safe for sensitive file inventories and security audits.

Common Use Cases for Directory Structure Comparator

Software Deployment Audit

Compare the file structure of a staging directory against production to verify that deployments include all expected files and no unintended changes. Detect missing assets, configuration drift, and unexpected files before they reach end users.

Backup Integrity Verification

Compare a directory listing of your current files against a backup manifest to ensure all important files are included in the backup. Detect missing or changed files that might indicate incomplete backups, corruption, or data loss.

Archive Content Comparison

Upload two ZIP archives to compare their internal file structures. Useful for verifying that an updated archive contains the correct files, detecting if files were added or removed between versions, and validating archive rebuilds.

Security Incident Investigation

Compare a known-good directory listing against a potentially compromised system to detect unauthorized file additions, deletions, or modifications. Quickly identify files that don't belong and prioritize investigation of changed critical system files.

Migration & Sync Verification

When migrating files between servers, cloud storage, or content management systems, compare the source and destination structures to verify completeness. Detect files that failed to transfer, were renamed, or had their contents changed during migration.

Release Package Validation

Compare release manifests against build outputs to ensure all expected artifacts are present with the correct sizes. Detect missing executables, changed resource files, or unexpected build artifacts before shipping a release.

Understanding Directory Structure Comparison

What is a Directory Structure Comparator?

A Directory Structure Comparator is a tool that analyzes two sets of file listings and identifies the differences between them. By comparing the file names, paths, and sizes from two directory snapshots - whether obtained from a directory listing, a ZIP archive, or a text manifest - the tool automatically categorizes every file into four categories: Added (files present in the second listing but not the first), Removed (files present in the first listing but not the second), Changed (files present in both but with different sizes), and Unchanged (files identical in both listings). This is invaluable for understanding what changed between two points in time, two environments, or two versions of a software release.

How Our Directory Structure Comparator Works

  1. Input Collection: Provide two sets of file listings - either by pasting text (one file per line, optionally with comma-separated sizes) or by uploading files. Supported formats include plain text (.txt), comma-separated values (.csv), and ZIP archives (which are automatically parsed to extract their internal file structure).
  2. Parsing & Normalization: Each input is parsed to build a normalized map of filenames with their sizes. ZIP archives are decompressed in-browser to list all stored files and their uncompressed sizes. Text inputs support flexible formatting - files can be listed with or without sizes, and comments (lines starting with #, ;, or //) are ignored.
  3. Comparison & Categorization: The two file maps are compared by filename. Files present only in the target listing are categorized as Added. Files present only in the reference are categorized as Removed. Files present in both but with different sizes are categorized as Changed. Files present in both with identical sizes are Unchanged. Results are displayed in an interactive tabbed interface with summary statistics.

What Gets Compared

  • File Names and Paths: The primary matching key. Files are identified by their full path/name as listed. Identical paths are matched; paths present in only one input are flagged as added or removed accordingly.
  • File Sizes: When size information is available (from ZIP archives, CSV listings, or bracket notation), the tool compares sizes to detect modified files. A difference in size strongly indicates that the file content has changed.
  • Structure Changes: The tool provides a comprehensive view of how the directory structure changed - not just individual files, but the overall pattern of additions, removals, and modifications. The summary statistics give you the big picture at a glance.

Privacy & Security

Your files and directory listings never leave your device. All parsing, comparison, and analysis is performed entirely within your browser using JavaScript. No data is transmitted to any server, stored in any database, or logged by any service. When you close or refresh the page, all uploaded files and comparison results are discarded. This makes the Directory Structure Comparator safe for analyzing sensitive file inventories, security audit data, and proprietary software releases.

Related Tools

Steganography Detector

Upload an image to detect potential hidden data using LSB (Least Significant Bit) steganography analysis. Analyzes pixel-level modifications, shows a heatmap of altered pixels, detects statistical anomalies, and extracts hidden text messages if found. Compatible with standard LSB encoding and the STEG magic header format. All processing happens locally in your browser - free online steganography detector, no signup required.

Image File Size Analyzer

Upload any image to see a detailed binary-level breakdown of what contributes to its file size - pixel data, compression overhead, metadata (EXIF/IPTC/XMP), color profiles (ICC), and structural headers. Get prioritized optimization tips with estimated savings for web performance, mobile app optimization, and storage reduction. Supports JPEG, PNG, GIF, WebP, BMP, TIFF, AVIF, and HEIC - all processing runs locally in your browser, no server upload required. Free online image file size analyzer.

File Magic Byte Detector

Upload any file to instantly detect its true file type by reading the magic bytes (file signature / header). The tool bypasses incorrect file extensions and reveals the real format. Shows hex dump with matching signature bytes highlighted, ASCII interpretation, MIME type, file category, and extension match analysis. Supports over 120 file signatures across 16 categories: images, audio, video, documents, archives, executables, fonts, certificates, disk images, and more. All processing runs locally in your browser - free online File Magic Byte Detector, no signup required.

Image Clone Detector

Detect copy-move forgeries in images using pixel-block matching. Upload any image to find cloned/copied regions, view heatmap overlays showing the location and intensity of detected clones, and get confidence scores with region details. Three sensitivity presets for different detection needs. 100% private browser-based processing - free online Image Clone Detector.

Frequently Asked Questions About Directory Structure Comparator

A Directory Structure Comparator is a tool that analyzes two sets of file listings - from pasted text, uploaded manifests, or ZIP archives - and identifies the differences between them. It works by parsing each input into a normalized map of filenames with sizes, then comparing the two maps to categorize every file as Added, Removed, Changed, or Unchanged. The results are displayed in an interactive tabbed interface with summary statistics.

The tool supports three input formats: (1) Plain text pasted directly into the textarea - one file per line, optionally with comma-separated or bracket-enclosed sizes (e.g., "file.txt,1024" or "file.txt [1024]"). (2) Uploaded text files (.txt) and comma-separated value files (.csv). (3) Uploaded ZIP archives (.zip) - these are automatically decompressed in your browser to extract the internal file structure. Lines starting with #, ;, or // are treated as comments and ignored.

The tool compares files by their name/path. If a file exists in both inputs but has a different size, it is categorized as Changed. Size comparison requires that at least one of the inputs provides size information. ZIP archives always include uncompressed sizes. For text listings, you can optionally include file sizes using comma or bracket notation. If no sizes are available, the tool will only detect Added and Removed files.

Absolutely. All processing happens entirely within your browser. Your directory listings, uploaded files (including ZIP archives), and comparison results never leave your device. No data is transmitted to any server, stored in any database, or logged by any service. When you close or refresh the page, all data is discarded. This makes the tool safe for analyzing sensitive file inventories and security audit data.

Yes. You can upload ZIP archives for either or both inputs. The tool will automatically decompress the ZIP file in your browser (using JavaScript's native archive parsing) and extract the list of stored files with their uncompressed sizes. This is particularly useful for comparing software release packages, backup archives, or any collection of files bundled into ZIP format.

Added files are present in the Target (B) listing but not in the Reference (A) listing - these are new files. Removed files are present in the Reference (A) listing but not in the Target (B) listing - these files were deleted. Changed files are present in both listings but have different sizes - their content likely changed. Unchanged files are present in both listings with the same size - these files are identical. The four categories give you a complete picture of what changed between the two states.

Since all processing happens locally in your browser, the limit depends on your device's available memory. Most modern browsers can handle ZIP archives up to several hundred megabytes. For very large archives, ensure sufficient RAM is available. The tool processes archives in chunks to minimize memory usage.

The change rate is calculated as: (Total Changed Files / Total Unique Files) × 100, where Total Changed Files includes Added, Removed, and Changed files, and Total Unique Files is the larger of the two input file counts. This percentage gives you a normalized measure of how much the directory structure changed between the two states.

Yes. The Directory Structure Comparator is an excellent tool for security incident investigation. By comparing a known-good file manifest against a current system listing, you can quickly detect unauthorized file additions (potential malware), unexpected deletions (possible data exfiltration), and changed system files (tampering). The browser-local processing ensures that sensitive evidence is never exposed to external servers.