Hands-on guide
How to Create an M3U Playlist
You can create a basic M3U playlist with a plain-text editor. Start with a few authorized media locations, use the syntax expected by your player, save the file with a suitable encoding, and test one entry at a time.

The creation workflow at a glance
A basic playlist follows a simple sequence: create a plain-text file, add the extended header, pair each #EXTINF description with the media location on the following line, save using the expected extension and encoding, and test one entry at a time.
- Create the text file.
- Add #EXTM3U.
- Add an #EXTINF line for an item.
- Put that item's media location on the next line.
- Repeat for additional authorized items.
- Save and test the playlist in a compatible player.
2. Create a plain-text file
Use a plain-text editor rather than a word processor. Add #EXTM3U when using the extended playlist form, then place each item description immediately before its media location.
#EXTM3U
#EXTINF:-1,My first authorized item
file:///Users/you/Media/first-item.mp4
#EXTINF:-1,Licensed sample
https://media.example.org/authorized/licensed-sample.mp43. Understand each line
The header identifies the extended playlist. Each #EXTINF line describes the following item, and the next line contains the location that the player should open. The exact metadata syntax can vary between playlist conventions, so keep examples simple when learning.
4. Save using UTF-8
For new playlists, UTF-8 is a practical default when the target player supports it, especially when names contain accents or non-Latin characters. If the player documents a different requirement, follow that documentation.
- Use a plain-text editor.
- Choose UTF-8 when saving if supported.
- Use .m3u or .m3u8 according to the target player's documented expectations.
- Avoid smart quotes and formatting characters introduced by rich-text editors.
Validate the file before adding more entries
Before troubleshooting a large playlist, validate the smallest possible file: the expected header, one metadata line, and one media location. This isolates syntax and encoding problems from source availability.
If the one-item file works, add entries incrementally. When a new entry fails, you have a much smaller search area than when every item was added at once.
- Start with one authorized item.
- Confirm the saved filename and encoding.
- Open it in the target player.
- Add the next item only after the first works.
- Keep the last known-working version while expanding the playlist.
5. Test the playlist
Open the file in a compatible player and test one entry. If it works, add or test the next entry. When a single item fails, inspect its path or URL before changing the rest of the file.
Windows workflow
On Windows, create a new text file with a plain-text editor, paste the playlist, and save it with the required .m3u or .m3u8 extension. Be careful that the editor does not silently append .txt.
- Use Save As and choose the required extension.
- Select UTF-8 when the editor offers an encoding choice.
- Open the saved file in a compatible player and verify the filename in File Explorer.
macOS workflow
On macOS, use a plain-text editor that can save UTF-8. Save the file with the extension expected by your player, then open it through the player's documented playlist workflow.
Linux workflow
On Linux, any plain-text editor can create the file. Save it as UTF-8, use the appropriate extension, and test it in a compatible player. Command-line editors are also fine if you are comfortable checking the resulting text.
Common creation mistakes
Most beginner errors are simple: a rich-text editor adds formatting, the filename ends in .txt, a media location is mistyped, or an encoding mismatch changes characters. Fix the smallest problem indicated by the evidence rather than rewriting the entire playlist.
- Wrong extension such as playlist.m3u.txt.
- Missing media location after an item description.
- Invisible or smart characters copied from another application.
- Incorrect local path or URL.
- Encoding mismatch causing names to display incorrectly.
A repeatable create-and-test workflow
For a reliable playlist, treat creation and validation as separate steps. Start with the smallest authorized example, confirm that it works, then add entries incrementally so a later change can be isolated.
- Choose media locations you own or are authorized to access.
- Create the smallest valid playlist and confirm its structure.
- Test one entry in the target player before adding more.
- Add entries in small groups and keep the last known-working copy.
- If a remote source fails, diagnose the URL or media response separately from the playlist syntax.
Further reading
Sources and documentation
Quick answers
Common questions
Can I create an M3U playlist with Notepad?
Yes. A plain-text editor such as Notepad can create a basic M3U playlist. Save it with the required extension and an encoding supported by your player.
Should I save an M3U playlist as M3U or M3U8?
Use the extension expected by your target player or system. UTF-8 is a practical choice for new playlists when supported, and M3U8 explicitly identifies UTF-8 text.
Why does my M3U file open but not play anything?
Check the media locations first. A playlist can be syntactically readable while its files or URLs are unavailable, restricted, or unsupported by the player.
