Export YouTube Playlist to YAML
Paste a playlist link to download its videos as a YAML file, ready to drop into a static site's data folder or read from a script.
How to export a YouTube playlist to YAML
- 01
Paste the playlist link
Copy the link of any public or unlisted playlist and press Export. Every video is read, however long the playlist is.
- 02
YAML is already ticked
Pick the keys each video holds: title, video ID, durations, views, likes, description, tags and more.
- 03
Download
Press Download to get a .yaml file, or tick more formats to get them together in a ZIP.
How the YAML is structured
The file has a playlist mapping with the playlist's id, title, channel, url, videoCount and exportedAt, and a videos list with one mapping per video in playlist order, using the same camelCase keys as the JSON export.
Every string is double-quoted and escaped, so titles starting with a colon, a dash or words like yes and no are never misread. Numbers stay numbers, tags are lists and missing values are null.
Frequently asked questions
How do I use it with Jekyll or Hugo?
Save the file in _data in Jekyll or data in Hugo, then loop over site.data.<name>.videos in Jekyll or .Site.Data.<name>.videos in Hugo, using the file name without .yaml.
Is the YAML the same as the JSON export?
It holds the same data with the same keys and types; only the syntax differs. Pick whichever your tools read.
Which YAML version does it follow?
It's valid YAML 1.1 and 1.2, so PyYAML, ruamel.yaml, js-yaml, Ruby's Psych and Go's yaml packages all read it.
Is there a limit on playlist length?
No. Playlists with thousands of videos are read in full, page by page, and you can export only a range with the From and To video numbers.
Export a YouTube playlist to other formats
More YouTube tools
Playlist Length Calculator
Total duration of any playlist at any speed, for all or part of it.
Playlist Study Planner
Turn a playlist into a day-by-day schedule with a finish date.
Course Progress Tracker
Track your progress across several YouTube courses, saved in your browser.
Export YouTube Playlist to Excel
Export a playlist to Excel, CSV, JSON, Word, SQLite, M3U and 7 more formats.
Playlist Health Check
Find private, deleted and repeated videos, and see where viewers drop off.
Playlist Analyzer
Views, likes, engagement, top videos and channels in a playlist.
Playlist Link Extractor
Copy every video link in a playlist as a list, TXT or CSV.
Playlist Title Extractor
List every video title in a playlist, numbered or plain.
Video Stats & Tag Extractor
Views, likes, engagement rate, tags and details for any video.
Watch Time Calculator
Paste any videos to see how long they take to watch, at any speed.
Description Extractor
Copy a video's full description with its links, emails and hashtags.
Region Restriction Checker
See which countries a video is blocked in or limited to.
Channel Stats Checker
Subscribers, views, best upload days and how recent videos perform.
Channel Compare
Two channels side by side on subscribers, upload rate and views.
Channel Analyzer
Views, watch time, engagement and top videos across all uploads.
Export YouTube Channel Videos
Export every upload on a channel to Excel, CSV, JSON and 10 more formats.
Channel Video Link Extractor
Copy the link of every upload, Short or live stream on a channel.
Channel Title Extractor
List the titles of a channel's uploads, Shorts or live streams.
Channel Playlist Extractor
List every public playlist on a channel with links and video counts.
Channel Keywords Extractor
See the keywords a channel added to its settings.
Channel Banner & Logo Downloader
Download a channel's banner and profile picture in every size.
Thumbnail Downloader
Download any video's thumbnail in full HD and every other size.
Channel ID Finder
Find the channel ID, uploads playlist and RSS feed of any channel.
Comment Picker
Pick random winners from a video's comments for a giveaway.
Comment Search
Search a video's comments by keyword and sort by likes or replies.
Transcript Downloader
Turn a video's transcript into clean text, notes or SRT and VTT subtitles.
Embed Code Generator
Embed code for any video, with a start and end time and player options.
Subscribe Link Generator
A link and QR code that open a channel with the subscribe prompt.
Title and Description Checker
Check title and description length and preview the search result.
Chapter Timestamp Formatter
Clean up video timestamps and check they'll show as chapters.