Spotify JSON to Excel: how to open your listening history
Your Spotify data comes as JSON files, and Excel can read them directly: Data > Get Data > From File > From JSON, and Power Query turns the list of plays into a table. Google Sheets doesn't list JSON among the files it imports, so go through Excel or a CSV. Then two conversions make the numbers readable: milliseconds into minutes, and UTC into your own time.
What you're opening
Spotify says you'll get “several files in JSON format” inside a ZIP. In the Extended streaming history, the plays sit in files named like Streaming_History_Audio_2021.json or Streaming_History_Audio_2019-2021_1.json. Each file is one long list, with one entry per stream: when it ended, how long it played, the song, the artist, the album and a handful of flags. What's in your Spotify data export goes through every file in the zip.
Just want a look? Unzip the download and drag a file onto a browser window, or open it in any text editor. It's plain text, a little cluttered with brackets and quotes. For sorting, counting and charts, you want a table.
Sources: Spotify Support: Understanding your data; Spotify Support: Data rights and privacy choices (the ZIP); file names from the Takeout Day guide.
Into Excel with Power Query
- Unzip the download first. Work from the unzipped folder.
- Select Data > Get Data > From File > From JSON, pick one
Streaming_History_Audiofile and select Open. - Check the table in the Power Query editor. Power Query usually flattens the list into rows and columns by itself; Microsoft calls this automatic table detection. If you see a single column of “Record” entries instead, convert it to a table and expand the records into columns.
- Set
tsto Text. Power Query may guess a type for it. Click the small type icon at the left of thetsheader and choose Text, so the formulas below work the same for everyone. - Remove what you don't need (see the next section), then select Close & Load.
All years at once: select Data > Get Data > From File > From Folder and point it at the unzipped folder of plays (in our export it was called Spotify Extended Streaming History). Keep only the Streaming_History_Audio files in the list (the video files and the Read Me PDF sit in the same folder), then combine them into one table. Microsoft's Power Query documentation points to this folder route for importing several JSON files at once.
These menu names come from Microsoft's Windows instructions. Excel for Mac has its own article, and its menus may differ.
Sources: Microsoft Support: Import data from data sources (Power Query); Microsoft Learn: Power Query JSON connector (accessed December 5, 2026).
The columns worth keeping
Your rows carry fields such as these. Names can differ a little between exports and Spotify's documentation. The fields guide explains every one.
| Column | What it is | What to do with it |
|---|---|---|
ts | When the stream ended, in UTC | Turn into a date and time, then shift to your time zone |
ms_played | How long it played, in milliseconds | Divide by 60,000 for minutes |
master_metadata_track_name | The song | Keep. Empty on podcast rows, so filter those out for music |
master_metadata_album_artist_name | The artist (not the album artist, despite the name) | Keep |
master_metadata_album_album_name | The album | Keep |
skipped, shuffle | True or false flags | Optional. In an export we checked, skipped wasn't filled in for older years; a short ms_played is a steadier sign of a skip |
ip_addr (or ip_addr_decrypted), conn_country, platform | Your IP address, country and device | Delete. They say nothing about music and a lot about you |
Sources: ReadMeFirst_ExtendedStreamingHistory.pdf (inside Spotify's export); Spotify Support: Understanding your data.
Five columns that make it readable
Power Query loads your plays as an Excel table, so you can add columns that fill themselves down. Type each formula in the first empty column next to the table and give the column the name shown:
| New column | Formula | What it gives you |
|---|---|---|
| minutes | =[@ms_played]/60000 | Minutes played |
| utc | =DATEVALUE(LEFT([@ts],10))+TIMEVALUE(MID([@ts],12,8)) | A real date and time (format the column as date and time) |
| local | =[@utc]-8/24 | Your time. This example is Los Angeles in winter (UTC−8); use your own offset |
| play | =IF([@ms_played]>=30000,1,0) | 1 for a play of 30 seconds or more, 0 for a skip |
| year | =YEAR([@local]) | The year, in your time zone |
Why the play column? The export lists every stream, even ones that lasted two seconds, while Spotify counts a stream for artists once a song plays for at least 30 seconds. Counting raw rows overstates your plays. How Spotify counts a stream explains the rule.
A fixed offset is close but not exact: many places change clocks twice a year, so plays around those weeks can be an hour off. For a date-by-date look that gets this right, see Spotify listening history by date.
Now insert a PivotTable: artist in Rows, year in Columns, sum of play in Values. Sort by any year's column and the top row is your most-played artist of that year. Swap in sum of minutes (divided by 60) for hours.
Source for the 30-second rule: Spotify for Artists: How your streams are counted.
Google Sheets and CSV
Google Sheets imports spreadsheet and text files (.xlsx, .csv, .tsv, .txt and a few more) through File > Import. JSON isn't on its list. Two ways in:
- Via Excel. Do the Power Query steps above, save the workbook as .xlsx or the sheet as CSV, and import that.
- Via a JSON-to-CSV converter. Many exist. The rows of your history include your IP address and country, so prefer a converter that runs on your own computer over a website that receives a copy of the file.
Once imported, the same formulas work with cell references instead of column names: =B2/60000 for minutes, and so on. Sheets has pivot tables too.
Source: Google Docs Editors Help: Import data sets in Google Sheets (accessed December 5, 2026).
Or skip the spreadsheet
If what you really want is the answers, upload the zip as it came. Spinlore unzips it, applies the 30-second rule, moves every timestamp to your time zone and does the counting. The free preview shows your all-time hours, plays, artists and songs. The Full report ($1.99 USD, one time) adds every year's #1, weekly charts, a calendar of every day and these downloads:
- top.csv: your top 25 artists and top 25 songs of all time, with play counts.
- recommendations.csv: every suggested artist, with the reason and a song to start with.
- taste-report.json: the whole report as data, including minutes for every day and the top 10 of every week.
To be clear about the limit: these are the report's results, not a cleaned copy of your raw play log. If you want every row in a spreadsheet, the steps above are the way. Your zip is deleted right after processing, always within 24 hours (what happens to your file). Two common questions each have their own guide: how many hours you've spent on Spotify and how many times you've played a song.
Questions
How do I open a Spotify JSON file?
Any web browser or text editor opens it, because it's plain text. To get a table, load it into Excel through Data, Get Data, From File, From JSON.
Can I convert Spotify JSON to CSV?
Yes. Load it into Excel and save the sheet as CSV, or use a JSON-to-CSV converter. Prefer one that runs on your own computer, because the rows include your IP address.
How do I convert ms_played to minutes?
Divide by 60,000. For hours, divide by 3,600,000.
Why are the times in my Spotify data a few hours off?
The ts column is in UTC and marks when each song ended. Shift it by your own offset from UTC, for example 8 hours back for Los Angeles in winter.
Can Google Sheets open Spotify JSON files?
Not directly. Google Sheets imports spreadsheet and text formats such as .xlsx and .csv, and JSON isn't on its list, so convert the file first.
Your turn
Every spin tells a story. Read yours.
Have your zip? Your free preview is a minute away. Still waiting on Spotify? Leave your email below and we'll remind you.
We email you the steps now and reminders 7 and 21 days later, then delete your address. Details.