YouTube audio and video conversion starts from what YouTube serves to a player, not from what the creator made. Every upload is re-encoded into a set of compressed streams, and a converter picks from that set. It then either repackages a stream or encodes it again, depending on the file you asked for.
This article follows both routes, to MP3 and to MP4, and shows where quality is kept and where it is spent. To use either route, start from the YouTube downloader.
What a converter receives from YouTube
For each video YouTube keeps several versions of the picture, from 144p up to the highest resolution uploaded, and a few versions of the sound. The picture is encoded with H.264, VP9 or AV1. The sound is encoded with AAC or Opus, at roughly 128 to 160 kbps for most videos. The two are compared in YouTube Opus vs AAC.
Apart from one low-resolution version that carries both, sound and picture are separate streams. The YouTube player fetches one of each and plays them in step, which lets it change picture quality mid-video without interrupting the audio. A converter is offered the same menu. It has to choose a stream, or a pair of streams, before anything else can happen.
Codec, container and stream
Three terms describe everything that follows, and they are often mixed up:
- Codec: the method used to compress sound or picture. AAC, Opus and MP3 are audio codecs. H.264, VP9 and AV1 are video codecs.
- Container: the file format that wraps one or more compressed streams. MP4 and WebM are containers. An MP4 normally holds H.264 video with AAC audio.
- Stream: one continuous track of compressed sound or picture inside a container.
Two operations follow from this. Remuxing moves a stream into a different container without touching its contents, so it is fast and loses nothing. Transcoding decodes a stream and compresses it again with another codec, which takes longer and, with lossy codecs, always costs some quality. MP3 is unusual in being a codec and a file format at once: an .mp3 file can hold no other kind of audio. The page on digital audio basics defines codec and container in more detail.
The MP3 route: one stream, encoded again
For an MP3 the picture is ignored. The service fetches an audio stream, decodes the AAC or Opus data to raw samples and passes those to an MP3 encoder. Neither source codec can be stored in an .mp3 file, so this is always a transcode. By the end the audio has been through lossy compression at least twice. Each step is followed in the five stages of a video to MP3 conversion.
The bitrate shown in the download options belongs to that final encode. It controls the size of your file and how much new loss the MP3 encoder adds, and it says nothing about the stream the file was made from. A four-minute song at 192 kbps comes to about 5.8 MB, whatever the video looked like. To start a conversion from a link, use the YouTube to MP3 converter.
The MP4 route: two streams joined
An MP4 needs both sound and picture. When the service picks an H.264 video stream and an AAC audio stream, both already suit the MP4 container and can be joined by remuxing. Nothing is re-encoded, so the file matches what YouTube streams at that resolution.
The limits appear at the top end. H.264 versions usually stop at 1080p. Higher resolutions are served in VP9 or AV1, which some older phones, televisions and editing programs cannot play. A service can then pass the stream on as it is or transcode the picture to H.264, which is slow and costs some sharpness. This is one reason the resolutions listed for a video vary. The YouTube to MP4 converter covers the practical side. What the finished file holds, and why a device may refuse it, is the subject of MP4 files from MP3Juice.
MP3 or MP4: how the two files compare
The table compares the two files on five points.
| Point | MP3 | MP4 |
|---|---|---|
| Contains | Sound only | Picture and sound |
| How it is made | Audio decoded and encoded again | Streams usually joined without re-encoding |
| Four-minute file | About 4 to 10 MB | Often tens of megabytes at 720p or above |
| Plays on | Almost any phone, computer or car stereo | Phones, computers and most televisions |
| Suits | Music, talks and offline listening | Music videos, tutorials, anything visual |
One detail is easy to miss. The sound inside an MP4 is normally the AAC stream itself, untouched, which puts it one generation closer to the source than an MP3 of the same video. For listening alone, the MP3 is a fraction of the size. Where the picture carries the meaning, as in a dance video or a tutorial, take the MP4. The choice is worked through case by case in MP3 or MP4.
The source sets the ceiling
No conversion can improve on the stream it starts from. An MP3 saved at 320 kbps from a stream of 128 kbps takes more space and sounds the same. The picture follows the same rule: a video uploaded at 480p has no 1080p version to fetch. How the audio stream is made is described in how YouTube compresses audio.
The chain reaches further back than YouTube. A creator who uploaded a quiet phone recording, a clipped mix or a copy of a copy has fixed those flaws into every stream. Choosing the right upload, ideally the artist's official one, improves the result more than any format or bitrate setting. The Play button on each MP3Juice result lets you listen before you choose.
Limits of YouTube audio and video conversion
Audio jobs are small: one stream of a few megabytes and a quick encode. Video jobs move far more data, and a transcode of the picture can take many times longer than a remux. Queueing at the conversion service and the speed of your own connection add to both.
Some videos cannot be converted whatever you try. Private, age-restricted and region-blocked videos, live streams and very long videos commonly fail, because the service cannot obtain a usable stream. A live stream has no finished file until the broadcast ends and YouTube has processed the recording. Retrying does not change any of this, though a different upload of the same material may work. Each case is explained in why some YouTube videos will not convert.
Convert only material you made yourself, have a licence or permission for, or that is in the public domain or under an open licence. The rules differ by country.
