Text, files & data

Extract filenames and extensions

File path list cleaner

Turn a pasted block of Windows or Unix paths into a clean list of filenames, extensions, folders, or complete path details.

Free browser tool

Clean and extract parts of file paths

Paste one path per line. Quoted paths and mixed slash styles are accepted, and the output can be sorted or deduplicated without touching the files themselves.

Processed in your browser

Copy or download the result

No account. No signup.

How it works

How to extract filenames from paths

Each line is normalized for parsing, then divided into its directory, parent folder, filename, stem, and extension.

  1. Paste one path per line

    Use Windows backslashes, Unix forward slashes, quoted paths, or a mixture of all three.

  2. Choose the path part

    Return just the filename, stem, extension, folder, normalized path, or a table containing all details.

  3. Clean the list

    Optionally remove duplicates, compare without letter-case differences, or sort the result.

  4. Copy a list or table

    Plain modes return one value per line; All details returns separated columns for a spreadsheet.

Quick example

Extract filenames from mixed paths

The example returns three filenames from Windows and Unix-style paths.

Common questions

File path list cleaner FAQ

Does this tool rename or move my files?

No. It only processes path text that you paste. It cannot access, rename, upload, or move files on your device.

Can I mix Windows and Unix paths?

Yes. Backslashes are normalized internally for parsing, so both path styles can be used in the same list.

How are files with more than one dot handled?

The final dot separates the extension. For archive.backup.zip, the filename stem is archive.backup and the extension is zip.

Can I paste sensitive folder names?

Processing remains in your browser. Still, avoid saving or sharing a backup when the pasted paths contain information you do not want stored.