MP3 to MP4 With Square Album Art: Side Bars
Square cover art in an MP3 to MP4 video gets bars on both sides. See the exact math, the bar color, and how to avoid the bars entirely.
What Happens to a Square Cover in the Video
Short answer: a square cover is shrunk to fit the height of a 1280x720 frame and centered, so you get a bar on the left and right. In pixeltools' MP3 to MP4 tool the output is always 1280x720, whichever picture you give it. The picture is scaled to the largest size that fits inside that frame without stretching, then placed in the middle. A 1:1 cover is limited by the 720 pixel height, so it becomes 720x720 and the remaining 560 pixels of width are split into two bars of 280 pixels. Nothing is cropped and nothing is distorted. If you wanted the cover to fill the whole frame, this tool will not do that, and the sections below explain what to do instead.
What Color Are the Bars?
The bars are a dark slate blue, hex #0f172a, not pure black. The tool paints the whole 1280x720 frame with that color first, then draws your picture on top. The same color is the entire background when you give no picture at all, so a video made without a cover is a plain dark slate frame. You cannot change the bar color in the tool today. That matters if your cover has a pure black edge, because the edge and the bars will be slightly different shades. It also matters for light covers: a cover with a dark slate border will blend into the bars and look smaller than it is.
The Math for Other Cover Shapes
The scale factor is the smaller of 1280 divided by the picture width and 720 divided by the picture height. For a square cover that is always the height ratio. A 1080x1350 portrait cover (4:5) becomes 576x720 with 352 pixel bars on each side. A 1080x1920 vertical picture becomes 405x720, with bars of roughly 437 pixels each, so the picture fills only about a third of the frame. A 16:9 picture such as 1920x1080 fits exactly with no bars. One detail most guides skip: the scale factor is not capped at 1, so a small cover is enlarged. A 500x500 image is scaled up by 1.44 to 720x720, which will look soft. Start from a cover of at least 720 pixels on its short side.
How to Avoid the Bars
The cleanest fix is to give the tool a picture that already is 16:9. Open your square cover in an editor, make a 1280x720 canvas, place the cover in the middle and fill the sides with a color or a blurred, enlarged copy of the cover. Then use that file as the picture. Because the picture already matches the frame, it fits exactly and no bars appear. A blurred copy usually looks better than flat bars, and a flat color that matches the cover's dominant tone looks intentional. The [1920x1080 aspect ratio guide](/blog/1920x1080-aspect-ratio) explains the 16:9 proportions if you need to check your canvas. Keeping the cover square and accepting the bars is also a legitimate choice for music uploads.
Does It Use the Art Already Inside the MP3?
No. The tool does not read the cover embedded in the audio file's tags. The picture comes only from the image you add in the picture step, and if you add none, you get the plain dark frame. This surprises people who expect a tagged MP3 to carry its artwork into the video. To use the embedded art, export it from your music player or tag editor as a JPG or PNG first (more on tags in [why album art goes missing after converting](/blog/album-art-missing-after-converting-audio)), then add it as the picture. The accepted picture types are JPG, PNG, WebP, GIF and AVIF. The conversion itself runs in your browser through ffmpeg, so the audio and the cover are not uploaded anywhere.
Using the Waveform With a Square Cover
The optional waveform is a white band 160 pixels tall, drawn across the full 1280 pixel width, with its bottom edge 60 pixels above the bottom of the frame. That puts it between roughly y=500 and y=660 of the 720 pixel frame. With a square cover the band therefore crosses the lower part of the artwork and runs out onto both bars. White on a bright or pale cover can disappear where it overlaps the art, while it stays clearly visible on the dark bars. If your cover is light in its lower third, either skip the waveform or edit the cover so its bottom area is darker before you add it.
Output Settings You Should Know
The video is H.264 at 25 frames per second with AAC audio at 192 kbps, encoded with the still image tuning so repeated frames cost very little. The audio is re-encoded, not copied. That means the audio track alone is about 1.4 MB per minute, whatever the source MP3's bitrate was, so a 128 kbps MP3 comes out with a larger audio track and a 320 kbps one with a smaller track. The output ends when the audio ends. MP4 and MOV are both available, and the input file limit is 2 GB. For what a bitrate number means, see [what is bitrate](/blog/what-is-bitrate).
Frequently asked questions
Try it on PixelTools — free, no upload needed