How to Create a YouTube Playlist From a Text File
A plain .txt file of links is the simplest list there is. Here's how to turn it into a playlist without adding each video by hand.
Published 30 September 2026 · 7 min readText files are where lists of links end up. A note you kept while researching, a chat you exported, the output of a script, a list a friend pasted into an email and you saved. They all end up as lines of text, and then you hit the wall: YouTube's playlist editor wants each video added one at a time.
This guide shows what a text file needs to look like, what the manual alternatives cost you, and how to go from a .txt file to a finished playlist in one pass. It should be useful even if you never touch a tool, because most failures come from how the file is written.
What a good text file looks like
The rule is one video per line. Everything else is forgiving. The builder scans each line for a YouTube video link or a bare video ID and ignores the rest, so you don't have to clean the file first.
| Line in the file | What happens |
|---|---|
| https://www.youtube.com/watch?v=dQw4w9WgXcQ | Read as a video. |
| https://youtu.be/dQw4w9WgXcQ | Read as a video (short link). |
| https://www.youtube.com/shorts/aBcDeFgHiJk | Read as a video (Shorts link). |
| dQw4w9WgXcQ | Read as a video (bare 11-character ID). |
| Lecture 3 - https://youtu.be/dQw4w9WgXcQ | Read as a video. The label is ignored. |
| https://www.youtube.com/playlist?list=PL... | Skipped. It's a playlist link, not a video. |
| Remember to check the last one | Skipped. No video link on the line. |
Order is the file's order
Blank lines are ignored, and a repeat of the same video is kept in the list so you decide what to do with it: leave the repeats out or switch on the "allow duplicates" option when you build.
The manual ways, and where they break
| Method | What it does | Where it breaks |
|---|---|---|
| Save each video by hand | Open the link, click Save, pick the playlist. | Fine for five videos. Painful for fifty, and it's easy to skip or repeat one. |
| Add to queue | Builds a temporary queue you can play right away. | It isn't a saved playlist. Close the tab and it's gone unless you save it. |
| The watch_videos URL trick | A URL with video IDs separated by commas opens a temporary list you can save as a playlist. | Undocumented by YouTube, so it can stop working, and you have to hand-edit the IDs into a URL. |
All three treat your text file as something to read by eye. None of them can take the file itself. That's the gap a builder fills.
How to upload it and build the playlist
Check the file
Open the builder and upload
Review the list
Connect YouTube with write access
Choose the destination and confirm
A private playlist only opens for the right account
How MyFreshTools helps
What the tool does
Playlist Builder turns a list of YouTube links, Shorts links or video IDs into a real playlist. It accepts a pasted list or an uploaded file, builds a new playlist or adds to one you own, and keeps your order.
Who it's for
- Anyone whose list of links lives in a notes app, a chat export or a script's output.
- Teachers and course builders who keep a syllabus as a plain list.
- People who want to rebuild a trimmed version of a playlist they exported earlier.
How to use it
Upload the file (or paste the text), connect YouTube, choose a destination, confirm. Signed out, you see a short preview of your list and are taken to sign up, then brought back with your list restored.
Requirements and limits
- It needs a free account and a YouTube connection with edit (read + write) permission on the channel the playlist goes to.
- File uploads accept CSV, TSV, Excel (.xlsx / .xls), ODS, TXT, JSON and HTML, up to 5 MB and 300 links per file. The file is read in your browser and never uploaded — only the links reach the tool.
- The free plan builds as many videos as your free credits cover (2 videos per credit); the rest stay saved and can be added to the same playlist later. Paid plans build up to 200 videos per run.
- Cost is 1 credit per 2 videos actually added. Deleted or private videos are skipped and reported, and you are never charged for them.
- The destination must be a playlist you own. Liked videos, Watch Later and auto-generated Mixes can't be edited by any app.
- It uses public video data, so it doesn't check that you own the videos you add — only the destination playlist.
Where the text file comes from
- Notes and research. Links you dropped into a notes file while researching become one playlist you can play through.
- Chat and email exports. A long thread of "watch this" links, saved as text, turns into something you can actually press play on.
- Script output. If a script or a scraper writes links to a file, uploading it is quicker than wiring up the API yourself. See API vs online tool for bulk playlists for when to script it instead.
- A trimmed export. Export a playlist to text with the text export, delete the lines you don't want, and upload what's left.
If your list is in a spreadsheet instead, see creating a playlist from a CSV file. For a list you'd rather paste than upload, the paste-a-list guide covers it.
Common mistakes and fixes
| Symptom | Cause | Fix |
|---|---|---|
| The file loads 0 links | The lines hold titles or playlist links, not video links or IDs. | Put a video link or 11-character ID on each line. |
| Fewer links than expected | Some lines had no video link, or the file has more than 300 links. | Check the count shown after upload; split a long file into batches. |
| File type not supported | The file isn't .txt, .csv, .tsv, .xlsx, .xls, .ods, .json or .html. | Save it as plain text and upload again. |
| Some videos were skipped | They're deleted or private, so YouTube can't add them. | Check the skipped list at the end and replace or drop those links. |
| A word was mistaken for an ID | Bare IDs are only trusted when a whole line is exactly 11 valid characters. | Keep notes on the same line as a full link, or on their own line without an ID-like word. |
Frequently asked questions
No. The builder looks for YouTube video links on each line, so a line like "Lecture 3 - https://youtu.be/dQw4w9WgXcQ" still works and the label is ignored. A line that is only an 11-character video ID works too. Lines with no video link or ID are left out.
Both are picked up. If you'd rather keep one video per line so the order is obvious, split them before uploading.
Yes. Videos are added top to bottom, exactly as they appear in the file.
No. The file is read in your browser, and only the extracted video links are sent to the tool to be checked and built. The file itself never leaves your device.
A single upload uses up to 300 links, and a paid run adds up to 200 videos. For a longer list, split the file and build in batches, adding each batch to the same playlist.
Yes. A playlist exported to text carries a link on every line, so you can trim the lines you don't want and upload the result to build a new playlist from it.
The takeaway
A text file is the easiest list to turn into a playlist, because one video per line is all the tool needs. Arrange the lines in the order you want, upload the file, check the count, and open the result from the right account.