Documentation

    Table of Content
    • 3D File Formats
      • 3D File Formats
      • 3D2
      • 3DS
      • 3MF
      • AMF
      • ASE
      • DAE
      • DRC
      • FBX
      • GLB
      • GLTF
      • JRXML
      • JT
      • OBJ
      • PLY
      • PRC
      • RVM
      • STEP
      • U3D
      • VRML
      • X
      • X3D
    • Audio File Formats
      • Audio File Formats
      • AAC
      • FLAC
      • M3U
      • MID
      • MKA
      • MP3
      • OGG
      • RA
      • SDT
      • STAP
      • WAV
    • CAD File Formats
      • CAD File Formats
      • CF2
      • DC3
      • DGN
      • DWF
      • DWFX
      • DWG
      • DWT
      • DXF
      • HPGL
      • IFC
      • IGES
      • IGS
      • JVSG
      • NWC
      • NWD
      • NWF
      • PAT
      • PHJ
      • PLT
      • PSM
      • PSS
      • RVT
      • STL
    • Compression File Formats
      • Compression File Formats
      • 7Z
      • ARC
      • ARJ
      • BZ2
      • DAA
      • GZ
      • RAR
      • TAR
      • ZIM
      • ZIP
    • Database
      • Database File Formats
      • ACCDB
      • ACCDE
      • ACCDT
      • ACCFT
      • BAK
      • BCP
      • DDL
      • DTSX
      • LDF
      • MDB
      • MDF
      • MYI
      • NDF
      • NSF
      • SQL
      • SQLITE
    • EBook File Formats
      • EBook File Formats
      • AZW
      • AZW3
      • EPUB
      • FB2
      • KFX
      • LRF
      • LRS
      • LRX
      • MOBI
      • TR
    • Email File Formats
      • Email File Formats
      • EDB
      • EML
      • EMLX
      • ICS
      • MBOX
      • MSG
      • OFT
      • OST
      • PST
      • TNEF
      • VCF - Virtual Contact File
    • Font
      • Font File Formats
      • CFF
      • CFF2
      • EOT
      • FNT
      • FON
      • JFPROJ
      • OTF
      • PFA
      • PFB
      • PFM
      • SFD
      • TTF
      • WOFF
    • GIS File Formats
      • GIS File Formats
      • E00
      • FileGDB
      • GeoJSON
      • GML
      • GPX
      • KML
      • KMZ
      • OSM
      • SHP
    • Image File Formats
      • Image File Formats
      • APNG
      • AVIF
      • BMP
      • CDR
      • CMX
      • DCM
      • DIB
      • DICOM
      • DJVU
      • DNG
      • EMF
      • EMZ
      • EXIF
      • GIF
      • ICO
      • J2K
      • JP2
      • JPEG
      • JXR
      • ODG
      • OTG
      • PNG
      • PSB
      • PSD
      • SVGZ
      • TGA
      • TIFF
      • VDX
      • VSD
      • VSDM
      • VSDX
      • VSS
      • VSSM
      • VSSX
      • VST
      • VSTM
      • VSTX
      • VSX
      • VTX
      • WEBP
      • WMF
      • WMZ
    • Note Taking File Formats
      • Note Taking File Formats
      • ONE
      • ONETOC2
    • Page Description Language
      • Page Description Language
      • CGM
      • EPS
      • PCL
      • PS
      • SVG
      • SWF
      • TEX
      • XPS
      • XSLFO
    • PDF
      • PDF
      • PDF/A
      • PDF/E
      • PDF/UA
      • PDF/VT
      • PDF/X
    • Presentation File Formats
      • Presentation File Formats
      • ODP
      • OTP
      • POT
      • POTM
      • POTX
      • PPS
      • PPSM
      • PPSX
      • PPT
      • PPTM
      • PPTX
    • Programming
      • Programming
      • C
      • Class
      • CPP
      • CS
      • CSPROJ
      • Dart
      • H
      • JAR
      • Java
      • KT
      • MF
      • PDB
      • PHP
      • PY
      • SH
      • SLN
      • SWIFT
      • TOML
      • VB
      • VBPROJ
      • VCXPROJ
      • YAML
    • Project Management File Formats
      • Project Management File Formats
      • MPP
      • MPT
      • MPX
      • XER
    • Spreadsheet File Formats
      • Spreadsheet File Formats
      • CSV
      • DIF
      • ODS
      • OTS
      • TSV
      • XLAM
      • XLM
      • XLS
      • XLSB
      • XLSM
      • XLSX
      • XLT
      • XLTM
      • XLTX
    • Video File Formats
      • Video File Formats
      • 3G2
      • 3GP
      • AVI
      • F4V
      • FLV
      • M4V
      • MKV
      • MOV
      • MP4
      • RM
      • RMVB
      • RV
      • SRT
      • VOB
      • WMV
      • Xvid
    • Web File Formats
      • Web File Formats
      • ASP
      • ASPX
      • CHM
      • CSS
      • HTM
      • HTML
      • JS
      • JSON
      • MHTML
      • Sass
      • SCSS
      • VDW
      • XAML
      • XHTML
      • XML
      • XOML
      • XSLT
    • Word Processing File Formats
      • Word Processing File Formats
      • DOC
      • DOCM
      • DOCX
      • DOT
      • DOTM
      • DOTX
      • MD
      • ODT
      • OTT
      • RTF
      • TXT

    What's on this Page

      • What is a M3U file?
      • M3U File Format
        • Extended M3U
        • HLS M3U
      • M3U Example
      • How to Open M3U Files
      • References
    1. Home
    2. Audio File Formats
    3. M3U

    What is a M3U file?

    M3U (MP3 URL) is an audio playlist file stored with the .m3u extension. M3U is not an actual audio file, it just points to audio and sometimes video files. M3U was developed to be used with Winplay3 software by Fraunhofer. It is also supported by various media players and software.

    M3U File Format

    There is no official specification for the M3U file format, it is a de-facto standard. M3U is a plain text file that uses the .m3u extension if the text is encoded in the local system’s default non-Unicode encoding or with the .m3u8 extension if the text is UTF-8 encoded. Each entry in the M3U file can be one of the following:

    • Absolute path to the file
    • File path relative to the M3U file.
    • URL

    Extended M3U

    In the extended M3U, additional directives are introduced that begin with “#” and end with a colon(:) if they have parameters. Given below is a list of directives for extended M3U.

    • #EXTM3U - It is the file header indicating Extended M3U and must be first line of the file.
    • #EXTENC: - Text encoding. It must be the 2nd line of the file.
    • #EXTINF: - Used for track information and other additional properties.
    • #PLAYLIST: - The title of the playlist
    • #EXTGRP: - Begin name grouping
    • #EXTALB: - Album information
    • #EXTART: - Album artist
    • #EXTGENRE - Album Genre
    • #EXTM3A - Single file playlist for album tracks or chapters.
    • #EXTBYT: - File size in bytes.
    • #EXTBIN: - Binary data follows.
    • #EXTIMG: - Logo, Cover or other images.

    HLS M3U

    HLS (HTTP Live Streaming) was created by Apple to stream audio and radio to iOS devices. It is based on the UTF-8 encoded extended M3U. It was standardized as RFC 8216 in 2017 by IETF. The tags for the HLS playlist begin with “#EXT-X-". Given below is a list of tags for HLS

    • EXT-X-VERSION - Indicates the compatibility version of the file based on the media and its server.
    • #EXT-X-START: - Indicates the preferred starting point for the playlist.
    • #EXT-X-PLAYLIST-TYPE: - Provides the type of playlist (EVENT or VOD).
    • #EXT-X-TARGETDURATION: - It specifies the maximum Segment duration.
    • #EXT-X-MEDIA-SEQUENCE: - It indicates the Media Sequence Number.
    • #EXT-X-INDEPENDENT-SEGMENTS - It indicates that all media samples are independent and can be decoded without other segments.
    • #EXT-X-MEDIA: - It is used to relate Media Playlists that contain alternative Renditions of the same content.
    • #EXT-X-STREAM-INF: - It specifies a Variant Stream that is a part of the Renditions.
    • #EXT-X-BYTERANGE: - Indicates that the Media Segment is a sub-range of the resource identified by its URI.
    • #EXT-X-DISCONTINUITY - Indicates discontinuity between the preceding and following media segments.
    • #EXT-X-DISCONTINUITY-SEQUENCE: - It allows synchronization between different renditions of the same Variant Stream or different Variant Streams.
    • #EXT-X-KEY: - Specifies how to decrypt Media Segments.
    • #EXT-X-MAP: - Specifies how to obtain Media Initialization Section. It is required to parse the applicable Media Segments.
    • #EXT-X-PROGRAM-DATE-TIME: - It associates the first sample of the Media Segment with an absolute date and/or time.
    • #EXT-X-DATERANGE: - It associates a Data Range.
    • #EXT-X-I-FRAMES-ONLY - Indicates that each Media Segment in the Playlist describes a single I-frame.
    • EXT-X-I-FRAME-STREAM-INF - It indicates that the playlist file contains I-frames of Multimedia presentation.
    • #EXT-X-SESSION-DATA: - It allows arbitrary session data to be carried in a Master Playlist.
    • #EXT-X-SESSION-KEY: - It allows for encryption keys. The client can preload these keys without reading the playlist first.
    • #EXT-X-ENDLIST - It indicates that no more Media Segments will be added to the file.

    The following is the list of Internet media types used by M3U:

    • application/vnd.apple.mpegurl: It is the only registered media type (registered in 2009) for M3U that is used to refer to the playlists in HLS applications.
    • The following Internet media types are used by non-HLS applications.
      • application/mpegurl
      • application/x-mpegurl
      • audio/mpegurl
      • audio/x-mpegurl

    M3U Example

    This is an example of the M3U file.

    #EXTM3U
     
    #EXTINF:111, Sample artist name - Sample track title
    C:\Music\SampleMusic.mp3
     
    #EXTINF:222,Example Artist name - Example track title
    C:\Music\ExampleMusic.mp3
    

    How to Open M3U Files

    M3U files can be opened using the following applications:

    • VLC media player
    • MPlayer
    • Microsoft Windows Media Player
    • Media Player Classic
    • iTunes
    • QuickTime Player

    References

    • M3U - Wikipedia
    • HTTP Live Streaming

    See Also

    • Xvid File Format
    • RA File Format
    • RV File Format
    • AVIF File Format
    • F4V File Format