Language: EN
Currency: USD
Free Trial

IPTV guides

How to Make M3U File Playlists for IPTV: Steps and Example

Portrait of Evans George FranklinBy Evans George Franklin · Reviewed by the usiptvsubscription.com editorial team
Published · 4 min read

Short answer

To make an M3U file, open a plain-text editor, type #EXTM3U on the first line, then add two lines per channel: an #EXTINF line with the channel name and the stream address below it. Save the file in UTF-8 with the .m3u8 extension, then open it in a player that reads M3U playlists.

Contents
How to make M3U file playlists: a text editor with the #EXTM3U header and two IPTV entries, usiptvsubscription.com

Learning how to make M3U file playlists is simpler than it looks. An M3U file is a plain-text playlist that lists media addresses, so any text editor can create one. This guide shows how to create an M3U file for IPTV line by line, with an example, the guide tags players read, and the mistakes that stop a file from loading.

Do you need to make an M3U file for IPTV?

Often, no. An M3U link is a web address that returns the playlist; if you have an IPTV subscription, your provider gives you one, and it is better than a file you build yourself.

A link is reloaded by your player, so new or moved channels reach you on their own. A file you save is a frozen copy that never changes. Our M3U playlist guide explains the difference.

Making your own file is useful when you want a short list of specific streams, or when you want to understand what your player reads. The format is not limited to television: the Library of Congress’s description of the MP3 format notes that m3u files contain playlists, and that each playlist format works well with some players and not with others.

How to make M3U file playlists in 5 steps

How to make an M3U file in a text editor
#EXTM3U              ← first line
#EXTINF:-1,Example News 1  ← name
http://example.com/news1.m3u8   ← stream
#EXTINF:-1,Example Movies 1
http://example.com/movies1.m3u8
  1. #EXTM3UAlways the first line
  2. #EXTINF lineThe channel name
  3. Stream URLOn the next line
  1. Open a plain-text editor. On Windows, Notepad works. On a Mac, TextEdit works once you choose Format > Make Plain Text, as Apple’s TextEdit guide describes.
  2. Type the header. The first line must be #EXTM3U.
  3. Add one entry per channel. Each entry has two lines: an #EXTINF line with the name, then the stream address on the next line.
  4. Save in UTF-8 with the .m3u8 extension. If your editor offers an encoding option when you save, choose UTF-8. TextEdit saves plain text as .txt, so rename the file afterward.
  5. Open the file in your player and check that each channel plays.

M3U file example for IPTV

Here is a complete file with two channels. The addresses use example.com, a domain reserved for examples, so replace them with real stream addresses you are allowed to use.

#EXTM3U
#EXTINF:-1 tvg-id="news1" tvg-logo="https://example.com/logos/news1.png" group-title="News",Example News 1
https://example.com/live/news1.m3u8
#EXTINF:-1 tvg-id="movies1" group-title="Movies",Example Movies 1
https://example.com/live/movies1.m3u8

Each channel takes exactly two lines, and the order matters: information first, address second.

Ready to compare plans?Compare our Standard and VIP plans

What each line means

Extended M3U is the version of the format that adds information lines, such as channel names and logos, above each address. The M3U article on Wikipedia documents its directives and the tags IPTV players use:

Part What it does
#EXTM3U File header; must be the first line
#EXTINF:-1 Starts an entry; -1 means a live stream with no fixed length
tvg-id Channel ID that TV guide data can match (see our EPG guide below)
tvg-logo Address of the channel logo image
group-title Puts the channel in a group, such as News
Text after the comma The channel name shown in your player
Next line The stream address itself

The same structure appears in RFC 8216, the August 2017 RFC that describes HTTP Live Streaming, where a playlist starts with #EXTM3U and lists media addresses line by line. If your channels need a TV guide, our EPG guide explains how tvg-id connects to guide data.

How to create an M3U file from a URL

To turn a single stream URL into an M3U file, use the same template with one entry: the header, one #EXTINF line and the URL. Wikipedia names a single-entry playlist pointing to a stream on the internet as a common use of the format.

If the URL you have is already a playlist link from your provider, don’t convert it. Paste it into your player instead; our page on the IPTV playlist URL shows where.

Free M3U editors and online makers

You don’t need special software. Any plain-text editor is a free M3U editor, because the file is only text.

Online M3U playlist makers and generators exist too. They produce the same text you would type by hand, so check the result before you use it, and don’t paste a private playlist link into a site you don’t trust: anyone who has that link can open your channels.

Common mistakes that stop an M3U file from loading

  1. The header isn’t on line 1. #EXTM3U must be the very first line, so put nothing above it.
  2. The file is saved as rich text. Players expect plain text, and a rich-text file adds formatting codes around your lines.
  3. The extension is wrong. A file named playlist.m3u8.txt won’t be recognized; check that file extensions are visible.
  4. Lines are out of order. Each #EXTINF line must sit directly above its address.
  5. The line breaks don’t suit the device. Wikipedia notes that some devices only accept CR LF line breaks, the Windows style.
  6. The comma is missing. The channel name goes after a comma, at the end of the #EXTINF line.

Want a working playlist without building one? Our IPTV free trial gives you an M3U link and an Xtream Codes login for 24 hours on one screen, ready to add to TiviMate or another player. Questions about a playlist from our service go to our support by email through the contact page.

Checked on by Evans George Franklin. Sources: Wikipedia, M3U; RFC 8216; Apple TextEdit User Guide; Library of Congress.

M3U file questions

How do I get my M3U URL?

From your IPTV provider. With our service, it is in the Account active email you receive after you order or start a trial. Our page on the IPTV playlist URL explains where to paste it.

What is the difference between .m3u and .m3u8?

The content is the same kind of list. According to the M3U article on Wikipedia, the .m3u8 extension marks a file encoded in UTF-8, while .m3u is used for the computer’s local default encoding.

Do I need #EXTM3U at the top?

For an extended M3U file, yes. Wikipedia lists #EXTM3U as the required header of the extended format, on the first line, before the #EXTINF lines that carry channel names and guide tags.

Compare the two plans

3 months, 1 screen. Nothing renews automatically.

Plan type
  • Card, Apple Pay, Google Pay or crypto
  • Refund if it doesn’t work (email us within 48 hours)
  • Login by email in under 5 minutes
Portrait of Evans George Franklin

About the author

Evans George Franklin is the founder of usiptvsubscription.com.

With our editorial team, he checks every guide against official sources before it goes live.

Questions?

Pick a topic. Each answer links to the right page.

Start a free trial

24 hours on one screen, no card needed.

Request your trial

Buy a plan

Plans from $30 for 3 months, 1 to 5 screens, no auto-renewal.

Compare plans and prices

Renew my subscription

The time you buy is added to your current end date, and you keep your login.

How to renew

Install on my device

Pick your device, then the app, then follow the steps.

Open the setup guide

Become a reseller

Credit packs from 120 credits, 1 credit = 1 month on 1 screen.

See the reseller program

Another question

Write to us: contact form or support@usiptvsubscription.com.

Support is by email only.

Quick answers
Start a free trial

24 hours on one screen, no card needed.

Request your trial

Buy a plan

Plans from $30 for 3 months, 1 to 5 screens, no auto-renewal.

Compare plans and prices

Renew my subscription

The time you buy is added to your current end date, and you keep your login.

How to renew

Install on my device

Pick your device, then the app, then follow the steps.

Open the setup guide

Become a reseller

Credit packs from 120 credits, 1 credit = 1 month on 1 screen.

See the reseller program

Another question

Write to us: contact form or support@usiptvsubscription.com.

Support is by email only.

Questions? Quick answers

Pick a topic. Each answer links to the right page.

Start a free trial

24 hours on one screen, no card needed.

Request your trial

Buy a plan

Plans from $30 for 3 months, 1 to 5 screens, no auto-renewal.

Compare plans and prices

Renew my subscription

The time you buy is added to your current end date, and you keep your login.

How to renew

Install on my device

Pick your device, then the app, then follow the steps.

Open the setup guide

Become a reseller

Credit packs from 120 credits, 1 credit = 1 month on 1 screen.

See the reseller program

Another question

Write to us: contact form or support@usiptvsubscription.com.

Support is by email only.