Extract Music File Metadata with Excel Power Query
Question details
Create a table of music files from multiple folders and extract available artist, song, and album information.

- Product
- Microsoft Excel Power Query
- Device & OS
- Windows
- Scenario
- The user wants to collect music file details from folders and transform them into a single table.
- Observed behavior
- Power Query lists available file and folder properties, but does not automatically import custom music columns displayed in Windows Explorer.
Identify a parent folder containing the music folders you want to query, and check how song, artist, and album names are organized in file names and paths. The extraction steps depend on consistent naming patterns.
Build a music file list from a parent folder in Power Query
Use this approach to combine file listings from subfolders and extract details already present in file names or folder paths.
The Folder connector lists files and available file system properties; it does not reproduce the columns configured in Windows Explorer. Music-specific tags such as track length may require another tool.
In Excel, select Data > Get Data > From File > From Folder. Choose the parent music folder, then select Transform Data to open Power Query Editor.
Use the filter on the Extension column to keep the file types you need, such as .mp3, .flac, or .wav. The folder listing includes files in subfolders.
If file names follow a pattern such as “song - artist,” select the Name column and use Transform > Split Column > By Delimiter. Remove the file extension as needed, and rename the resulting columns.
Select the Folder Path column and use Transform > Split Column > By Delimiter or Extract options to isolate the album folder, if your folder structure stores albums consistently.
Select unwanted columns and choose Home > Remove Columns. Check the results, then select Home > Close & Load to create the table in Excel.

Import music tags exported by a metadata tool
Use an exported metadata table when the information you need is stored in music tags rather than in file names or folder paths.
Organize exported music metadata in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheet files. Open an exported music metadata table, organize its columns, and move between compatible Office formats; WPS does not fix Excel Power Query's metadata limitations.

Frequently Asked Questions
Why are my Windows Explorer music columns missing in Power Query?
The Power Query Folder connector returns available file and folder properties, not the custom column display configured in Windows Explorer. Extract details from names and paths or import an exported metadata table.
Does the Folder connector include music files in subfolders?
Yes. Select Data > Get Data > From File > From Folder and choose the parent folder. The resulting listing includes files in its subfolders, which you can filter by extension.
Can Power Query extract track length from music files?
Track length is not necessarily available in the Folder connector's file properties. A dedicated metadata tool or suitable custom connector may be needed to retrieve it.
How can I separate the song and artist from a file name?
In Power Query Editor, select the Name column and choose Transform > Split Column > By Delimiter. Use the separator in your file names, such as “ - ”, and remove the extension if needed.




