Skip to content
โ† Guides

Export Your YouTube Music History with Google Takeout

ยท 6 min read ยท facts checked 11 November 2026

Google Takeout is the official way to download a copy of your YouTube watch history. Because YouTube Music uses the same history, the songs you played there come along in the same file. This guide covers the exact steps, the one format choice that matters, and what the file does and doesn't contain. Steps checked as of November 2026.

First: there is no separate YouTube Music history

Google's YouTube Music help is clear on this: watch history settings are shared between YouTube and YouTube Music, and if you pause history on YouTube, it is also paused on YouTube Music for the same account. So you don't export "YouTube Music history" on its own. Your music plays sit in the same YouTube watch history as your regular videos, and Takeout exports them together.

Step by step: export your watch history

Google recommends downloading and viewing Takeout exports on a desktop computer, not a phone. Then:

  1. Go to takeout.google.com and sign in with the Google account you use for YouTube. Every Google product that holds your data is selected automatically.
  2. Click Deselect all, scroll down, and tick YouTube and YouTube Music.
  3. Click All YouTube data included. In that window click Deselect all, tick only history, and click OK. This keeps the export small: no uploaded videos, no comments, no other data.
  4. Optional: click Multiple formats to see or change the file format for History (see the next section).
  5. Click Next step.
  6. Choose a delivery method: Send download link via email, or add the archive to Google Drive, Dropbox, Microsoft OneDrive or Box. An archive added to Drive counts toward your Google storage.
  7. Choose the export type: a one-time archive, or scheduled exports, which Google creates every 2 months for one year.
  8. Choose the file type. Google says .zip files open on almost any computer, while .tgz files may need extra software on Windows.
  9. Choose the maximum archive size. If your data is bigger than that size, Google splits it into several archives. Picking the 50 GB limit lowers the chance of a split.
  10. Click Create export.

HTML or JSON: the one choice that matters

Takeout can give you your YouTube history as HTML or as JSON. Google's developer documentation for Takeout activity data lists both formats. You switch it under Multiple formats, in the dropdown next to History. Guides that walk through that screen tell you to change the History entry from HTML to JSON, so HTML is what you get if you leave it alone.

  • HTML (watch-history.html) is a web page. You can open it in any browser and scroll through it or search it. People who move their history into other tools have reported that the HTML file held their complete history while their JSON export came out cut short.
  • JSON (watch-history.json) is easier for scripts. Each entry has the title, a timestamp, the link to the video and the channel name and link. Many open-source analysis scripts expect this format.

If you plan to import the file into TuneCraft, keep HTML. TuneCraft's Takeout import only accepts watch-history.html (it reads the video links in the page) and does not take the JSON file. If you need both formats, you can simply run two exports.

How long it takes, and how long the link lasts

Google says making the archive can take anywhere from a few minutes to a few days, depending on how much data your account holds, and that most people get the link the same day they ask for it. You get an email when it's ready. Then keep these limits in mind:

  • The archive expires in about 7 days. After that you have to create a new one.
  • Each archive can be downloaded 5 times. After that, you need to request another.
  • Changes you make after requesting the archive may not be in it.
  • Takeout can't export a chosen time period. You always get the whole history that is still stored.

Where the file is inside the ZIP

Unzip the archive and open the folders Takeout, then YouTube and YouTube Music, then history. That's where watch-history.html (or watch-history.json) lives. Google also puts a file called archive_browser.html in every archive, which explains the file formats and how to open them.

What the file contains

  • One entry for each video or song you started while signed in and with history on, with the date and time.
  • The title, a link to the video, and the channel. On an English-language account, titles start with the word "Watched". That word is translated on other languages, which can trip up scripts written for English.
  • YouTube Music plays, mixed in with regular videos. Many songs come from auto-generated artist channels, so the channel shows up as "Artist Name - Topic". Music scripts strip the " - Topic" part to get the artist.
  • In the JSON version, each entry also carries a product label, which some scripts use to skip plain YouTube entries and keep only the music.

One thing to expect: the history records when you started something, not how long you listened. A user who imported their YouTube Music history into ListenBrainz reported that it included tracks played for only a few seconds, plus duplicates.

What the file doesn't contain

  • Anything played while history was off. YouTube's help says videos you watch while history is turned off won't show up in your history. Since the setting is shared, that includes YouTube Music.
  • Anything you deleted. If you removed items, or set up auto-delete for your YouTube history, those plays are gone. Google adds that items still being deleted are not included in the archive.
  • Plays on other accounts. Takeout exports one Google account. Anything you played while signed out, or while signed in to another account, is not in this file.
  • Listening time. As noted above, you get start times, not durations.

Privacy notes

  • The file is a detailed log of what you watched and when. Treat it like any personal document, and delete the ZIP and the download email when you're done with them.
  • Downloading your data doesn't delete it from Google's servers. To delete history, use the history controls in My Activity or in YouTube, as described in YouTube's help.
  • On a work or school account, your Google Workspace administrator decides whether you can download data from each product.
  • Before you upload the file anywhere, check what that service keeps and whether you can delete it later. (In TuneCraft, Settings has a delete-all-data option.)

What you can do with your export

  • Just read it. Open watch-history.html in a browser and search it for an artist or a song you half remember.
  • Analyse it. The JSON version loads into scripts or a spreadsheet tool, so you can count your top channels or see how your listening changed over the years.
  • Turn it into a scrobble history. ListenBrainz's "Submitting data" page lists community scripts (ytm-extractor and YTMusic2listenbrainz.py) that send your YouTube Music watch history to ListenBrainz. If you're choosing between scrobble services, see Last.fm vs ListenBrainz in 2026.
  • Build a music library from it. TuneCraft is a free app that imports watch-history.html into one library where you tag songs with your own genres and moods, and smart playlists such as Top 50 and Heavy Rotation fill up from the plays it counts. "Play" opens the song on YouTube.
  • Keep a backup. Scheduled exports give you a fresh copy every 2 months for a year.

Keep in mind that a Takeout file is a snapshot. If you want your listening tracked from now on, a scrobbler is the better tool: Last.fm's own help suggests the Web Scrobbler browser extension for YouTube and YouTube Music. Shazam users can get their list out too; see how to export your Shazam history.

Sources

TuneCraft is a free music library on top of YouTube: bring in your YouTube playlists, Shazam list, Takeout history or Last.fm / ListenBrainz scrobbles, tag songs your way, and get smart playlists that refill themselves from your plays.

See how TuneCraft works

Related guides

PrivacyTerms