Words & files

Keep the part you need

Get names and folders from file paths

Turn full file paths into a simple list of file names, file types, or folder names.

Free browser tool

Choose which part of each path to keep

Paste one file path per line. Your files are never opened or changed.

Processed in your browser

Copy or download the result

No account. No signup.

Transformation examples

What each file-path result means

One path can produce several useful values. The final dot in the filename marks the extension.

What each file-path result means
Pasted pathResult choiceOutput
C:\Reports\July Summary.pdfFile name with its typeJuly Summary.pdf
C:\Reports\July Summary.pdfFile name without its typeJuly Summary
/home/jake/archive.backup.zipFile type onlyzip
/home/jake/archive.backup.zipClosest folder namejake
assets\images\logo.svgCleaned full pathassets/images/logo.svg

This is a path-text parser, not a file-system or URL validator. It does not expand environment variables, resolve . and .. segments, decode URLs, or verify that a file exists.

Optional guide Learn more about this tool Open the full explanation and detailed steps.

How to extract filenames from paths

Each pasted line is trimmed, surrounding quote marks are removed, backslashes are normalized for parsing, and the text is divided into its folder, parent, filename, stem, and final extension.

  1. Paste one path per line

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

  2. Choose the exact part you need

    Keep the filename, the name without its final extension, the extension, the closest folder, the full folder, a normalized path, or all details.

  3. Check path text, then export

    Sort or remove duplicate results if needed. The parser reads pasted path text; it does not check whether any file actually exists.

Quick example

Extract filenames from mixed paths

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

Common questions

Get names from file paths 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 to forward slashes for parsing, so Windows and Unix-style paths 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 stays in your browser. Do not save or share a backup file if the pasted paths contain information you want to keep private.