What Is an M3U File? Format, Opening, Adding
Short answer: an M3U file is a plain text file that lists media streams. IPTV lists use extended M3U: the first line is #EXTM3U, and each entry has an #EXTINF line with a name and usually a logo and group, then the address. M3U8 is the same format in UTF-8. In Bear IPTV, add one by link: Sources, Add playlist, M3U.
Bear IPTV is an IPTV player app for smart TVs, streaming sticks and phones. It plays your own M3U or Xtream Codes playlist and does not sell or supply channels.
Status on 26-11-2026: live on Fire TV (Fire OS and Vega OS), on Fire tablets (Amazon Appstore), on iPhone, iPad and Apple TV (App Store, including the EU) and on Google Play (phone, tablet and Android TV). In review: LG and Samsung.
What is an M3U file?
An M3U file is a text file with a list. Each entry in the list points to a media stream by its address. The file holds no video or sound itself, only addresses and a few labels. M3U files end in .m3u or .m3u8, and you can read one in any plain text editor.
M3U began as a playlist format for audio players. Many players read it today, including IPTV players. There is no formal standard for it: it is a format that everyone copies.
The file is only a list. Someone has to run the servers that the addresses point to. That is your provider. Bear IPTV is the player: it reads your list and plays what the addresses lead to. It does not supply lists or streams.
What does the M3U file format look like?
An extended M3U file has three kinds of lines. The example below uses invented names and example.com addresses. It is not a working list.
| Line | What it does |
|---|---|
#EXTM3U url-tvg="http://example.com/guide.xml" | The first line of the file. It marks an extended M3U file. The optional url-tvg value is the address of the TV guide file. |
#EXTINF:-1 tvg-id="demo.one" tvg-logo="http://example.com/logos/demo-one.png" group-title="Demo group",Demo One | Describes one entry. The -1 means no fixed length, which is normal for a live stream. After the last comma comes the name that the app shows. |
http://example.com/streams/demo-one.m3u8 | The stream address of that entry, on the line right after the #EXTINF line. |
A real list repeats the second and third line once for every entry. What the labels mean:
- tvg-id is an ID that ties the entry to its listing in the TV guide. Bear IPTV matches guide and entry on this ID first and then on the name.
- tvg-logo is the address of a small picture that the app shows as the logo.
- group-title is the name of the group, like a folder. Entries with the same value land in the same group. An entry without one is filed under "Uncategorized" in Bear IPTV.
- url-tvg sits on the first line. Some lists write x-tvg-url instead. Bear IPTV uses this address for the guide when you have not set one yet. How to set your own is in the guide to the EPG URL.
What is the difference between M3U, M3U8 and Xtream Codes?
M3U and M3U8 are the same list format. The difference is the text encoding. A file ending in .m3u8 must be UTF-8. A .m3u file may use the local encoding of the computer that made it. In practice the two are used as one format.
The name M3U8 has a second use. Apple built its HTTP Live Streaming (HLS) on the same format, and an HLS playlist usually ends in .m3u8 too. So a link ending in .m3u8 can be a list of many entries or the playlist of one single stream. The text inside tells you which: HLS playlists contain tags that start with #EXT-X-, and an ordinary list of entries usually does not.
| M3U | M3U8 | Xtream Codes | |
|---|---|---|---|
| What it is | A text list of stream addresses | The same list, saved as UTF-8 | A login to the server of your provider |
| What you get | A file or a link | A file or a link | Server address, username and password |
| In Bear IPTV | Button "M3U", field "M3U URL" | The same field | Button "Xtream", fields "Server URL", "Username" and "Password" |
The app reads the lines of the text and does not test the extension, so .m3u and .m3u8 lists are added in the same way. Some M3U links are really Xtream logins in disguise, and Bear IPTV can then switch to the usually faster Xtream side. That is explained in the difference between M3U and Xtream Codes.
What is an M3U URL (an IPTV playlist URL), and how is it different from an M3U file?
An M3U URL, also called a playlist URL, is a web address that leads to the M3U text. Many providers give you an address and no file. If you open the address in a browser, you see or download the same text that a file would hold.
Bear IPTV takes the address. The field "M3U URL" accepts only a link that starts with http:// or https://. A file that sits only on your computer has no such link, so it cannot be added as it is.
How do I open an M3U file?
- To read it: open it in a plain text editor. Do not use a word processor, which can change the quotes and add formatting.
- To play it on a computer: VLC supports M3U. Choose Media, then Open File, and pick the file. For a link, choose Media, then Open Network Stream, paste the address and press Play.
- To use it on a TV or phone: add it to an IPTV player, which reads the list and plays the entries (what an IPTV player does on a smart TV). Bear IPTV is one; what to look for in others is in the checklist for choosing an IPTV app.
Open only files you trust. M3U handling has caused security problems in media players before, so do not open a list from a source you do not know.
How do I add an M3U playlist in Bear IPTV?
On Fire TV (Fire OS and Vega OS) you add the M3U link on the TV itself, with the remote, and you need no account. If you use a Fire TV Stick, IPTV players for Fire TV and Firestick compares the players in the Amazon Appstore.
- Open Bear IPTV. On the home screen, open "Sources".
- Choose "Add playlist".
- In the form, choose the button "M3U". If you came from the banner or the start screen, you first choose the card "M3U link".
- Fill in "M3U URL" with the link from your provider. "Name (optional)" can stay empty: the app then uses the host name of the link.
- Press "Save".
If the link does not start with http:// or https://, the app says "Enter a link that starts with http:// or https://." Typing a long link with a remote is slow. The app itself suggests using the Fire TV app on your phone as a keyboard.
The other devices use almost the same form. On Android TV, choose "Add manually" under Sources. On an iPhone, iPad or Android phone, open More, then Sources, tap the plus button, choose "M3U" and fill in "M3U playlist URL". On Apple TV, choose "Enter details manually", or later "Add manually" under Sources, and fill in "M3U URL". All steps per device are in How to add an M3U playlist or Xtream Codes login.
After you save, the app loads the list. It builds the groups from group-title and shows the logos from tvg-logo. Menu names can differ slightly between app versions.
Why does my M3U file or link not work?
These are the usual mistakes. The list is our own checklist, not a measurement of how often each one happens.
- The link has expired or was switched off. A provider can stop a link when the subscription ends or when it changes the address. Open the link in a browser on a computer. An error page or an empty answer points to the link or the provider, not to the app.
- http or https. Use the address exactly as your provider wrote it. A server that answers on http often does not answer on https, and the other way round.
- Wrong characters. A space inside the link, a line break from copying, or curly quotes made by a word processor all break a list. Bear IPTV reads values such as tvg-id only inside straight double quotes. It removes spaces at the start and the end of what you type, but not inside the link.
- The wrong text encoding. A list saved in an old local encoding can show broken letters. Save the file as UTF-8. Bear IPTV reads the list as UTF-8.
- It is not a list. A link ending in .m3u8 can also lead to the playlist of one single stream. Both kinds of file start with #EXTM3U, so the first line does not tell them apart. Look further down: a stream playlist has tags that start with #EXT-X-, and a list of entries has #EXTINF lines, each followed by an address.
- The provider allows only a limited number of streams at a time. If another device is playing, the app says your provider allows a limited number of connections.
A very large list can be hundreds of megabytes and takes longer to load the first time. More about messages and fixes is in why a playlist will not load.
Which M3U playlists can I use?
Use only playlists that you are allowed to use: from your own provider, or a list you made yourself for content you have the right to play. Bear IPTV does not sell, supply or recommend lists, and this page does not link to any, nor does it give a working example. You are responsible for the source you add; Is IPTV legal? explains the difference between a player and a provider.
Questions and answers
What is an M3U file?
An M3U file is a plain text list of media streams. The extended form, which IPTV lists use, starts with the line #EXTM3U, and each entry has an #EXTINF line with a name and usually a logo and a group, followed by the stream address. The file holds no video itself.
What is the difference between M3U and M3U8?
Both are the same list format. An M3U8 file is saved as UTF-8, while an M3U file may use the local encoding of the computer. A link ending in .m3u8 can also be an HLS stream playlist and not a list of entries. Bear IPTV reads the text and does not test the extension.
How do I open an M3U file on my TV?
You do not open it on the TV like a video. You add it to an IPTV player. In Bear IPTV on Fire TV, open Sources, choose Add playlist, then M3U, enter the link in M3U URL and press Save. The app takes a link that starts with http:// or https://, not a file from your computer.
Is an M3U file the same as Xtream Codes?
No. An M3U playlist is one list, as a file or a link. Xtream Codes is a login with a server address, a username and a password, and the app then asks the server for live streams, films and series folder by folder. Your provider decides which of the two you get.
What is an M3U playlist URL for IPTV?
An M3U playlist URL is a web address that leads to your M3U list. Many IPTV providers give you only this address and no file. In Bear IPTV you paste it into the field "M3U URL", and the link must start with http:// or https://. The app then loads the list from that address.
Does Bear IPTV give me an M3U file or a playlist?
No. Bear IPTV is a player and does not sell or supply playlists, channels or streams. You add the M3U link or Xtream login from your own provider, and you use only lists you are allowed to use. Until you add one, the app shows sample content in demo mode.
