Spinlore

Home / Guides

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.

I have my zipSee a sample report

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

  1. Unzip the download first. Work from the unzipped folder.
  2. Select Data > Get Data > From File > From JSON, pick one Streaming_History_Audio file and select Open.
  3. 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.
  4. Set ts to Text. Power Query may guess a type for it. Click the small type icon at the left of the ts header and choose Text, so the formulas below work the same for everyone.
  5. 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.

ColumnWhat it isWhat to do with it
tsWhen the stream ended, in UTCTurn into a date and time, then shift to your time zone
ms_playedHow long it played, in millisecondsDivide by 60,000 for minutes
master_metadata_track_nameThe songKeep. Empty on podcast rows, so filter those out for music
master_metadata_album_artist_nameThe artist (not the album artist, despite the name)Keep
master_metadata_album_album_nameThe albumKeep
skipped, shuffleTrue or false flagsOptional. 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, platformYour IP address, country and deviceDelete. 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 columnFormulaWhat it gives you
minutes=[@ms_played]/60000Minutes 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/24Your 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.

A row for each year from 2018 to 2026 showing that year's most-played artist and song
The PivotTable most people build first, already done: the #1 artist and song of every year. From the sample report of a made-up listener.

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:

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:

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.