BastosConvert

Audio & video conversion explained: formats, codecs, quality

Audio and video files trip people up because the words are slippery: MP4, H.264, codec, container, bitrate, lossy. Get the mental model right and the choices become obvious — which format to export, why a file won't play, and how to keep quality high without bloating the size. This guide walks through the ideas that matter, the formats you'll actually meet, and clear picks for common situations, in plain language.

Containers vs codecs: the idea to understand first

The single most useful thing to grasp is that a media file has two layers. The container is the wrapper — mp4, mkv, webm, mov for video, or the file that holds an mp3 or aac stream for audio. It bundles the streams together with metadata: how they're timed, what language the audio is, chapters, subtitles, cover art. The codec is what does the real work of compression: it's the algorithm that turns raw, enormous audio and video into something small enough to store and stream.

These two layers are largely independent. The same H.264 video can live inside an mp4 or an mkv container; the same mp4 container can hold H.264 or the newer H.265. That's why simply renaming a file's extension almost never fixes playback: the extension is the container, but the thing a player chokes on is usually the codec inside. A real converter has to inspect both layers, then either re-wrap the streams into a new container (fast and lossless) or re-encode them to a codec the target supports.

Lossy vs lossless: the other core distinction

Every format is either lossy or lossless, and the difference drives most quality decisions. Lossy codecs permanently throw away parts of the signal that human perception is least sensitive to — quiet frequencies masked by louder ones, fine detail the eye glosses over — in exchange for dramatically smaller files. MP3, AAC, Opus, H.264 and VP9 are all lossy. The discarded data is gone for good, and re-encoding a lossy file again and again slowly degrades it.

Lossless codecs compress without discarding anything: decompress the file and you get back exactly what went in. WAV (uncompressed) and FLAC (compressed but lossless) are the audio examples; they sound identical to the master at the cost of much larger files. There's no lossless video format in everyday web use — video is simply too large — but the principle is the same. The practical rule: use lossless when you're editing, mastering or archiving and quality is non-negotiable; use lossy when you're delivering to listeners and viewers who care about small, fast files.

Video containers you'll meet

MP4 is the universal video default, almost always carrying H.264 video and AAC audio. It plays essentially everywhere and is the format to export when you don't control where a video will end up.

WebM is the open web container, built around the VP9 (or AV1) codec with Opus audio. It's royalty-free and smaller than MP4 at similar quality, which makes it excellent for self-hosted background videos and HTML5 players on sites you own.

MOV is Apple's QuickTime container and the native output of iPhones and many cameras. It often holds the very same H.264 stream as an MP4, but it's less universally accepted by web tools — so it's a frequent source you'll want to convert to MP4.

MKV (Matroska) is a flexible open container that can hold almost any codec plus multiple audio tracks, subtitles and chapters. It's popular for archived films and screen recordings, but browsers barely support it, so it's commonly converted to MP4 for sharing. AVI, finally, is a 1990s legacy container: large, dated and best converted to something modern.

Video codecs, briefly

H.264 (AVC) is the workhorse. It has been hardware-accelerated in phones, laptops, TVs and browsers for well over a decade, so it decodes smoothly on modest devices and is accepted by every upload form and editor. When compatibility matters, H.264 wins.

H.265 (HEVC) and VP9 are the efficient middle generation — they reach the same visual quality as H.264 at roughly 30–50% lower bitrate, so smaller files. VP9 is royalty-free and the web's choice inside WebM; H.265 compresses similarly but carries licensing baggage and patchier browser support. AV1 is the newest, most efficient codec of all, but it's slower to encode and still building out hardware support. The trade is always the same: newer codecs give smaller files at the cost of broader compatibility.

Audio formats you'll meet

MP3 is the universal lossy audio format — it plays on virtually everything and is the safe choice for sharing and podcasts. AAC (usually in an M4A file) is a newer lossy codec that sounds better than MP3 at the same bitrate and is the default across Apple devices and most video soundtracks.

Opus is the modern efficiency champion for audio: it stays clear at very low bitrates where MP3 turns rough, which makes it ideal for streaming, voice notes and bandwidth-limited apps. OGG (Vorbis) is an older royalty-free lossy format still common in games and open-source software.

On the lossless side, WAV stores uncompressed PCM audio — exactly what editing software and studios expect, at the cost of large files. FLAC compresses that same lossless audio to roughly half the size with no quality loss, which makes it the go-to for archiving a music library at full fidelity.

Quality vs size: bitrate is the dial

For lossy audio and video, bitrate is the main control over quality and size — it's how many bits per second the codec spends describing the content. Higher bitrate means more detail and a bigger file. For audio, 128 kbps MP3 is fine for speech and casual listening, 192 kbps is a solid middle ground, and 256–320 kbps is effectively transparent for music. Newer codecs are more efficient: Opus and AAC sound as good at a lower bitrate than MP3 needs.

For video, the right bitrate depends on resolution and how much motion there is: fast, detailed footage needs more bits than a static talking head at the same resolution. As a rough guide, 1080p web video with H.264 looks good around 6–10 Mbps, and 720p is comfortable at 3–5 Mbps. Because lossy encoding discards detail, every re-encode softens the result a little — so where a converter can copy a stream unchanged instead of re-encoding, it should, and this one does.

Quick comparison

FormatKindTypeBest For
MP4 (H.264)VideoLossyUniversal playback and sharing
WebM (VP9)VideoLossyModern web, smaller self-hosted video
MKVVideoLossyArchives, multi-track, subtitles
MP3AudioLossyUniversal audio, podcasts
AAC / M4AAudioLossyApple devices, video soundtracks
OpusAudioLossyStreaming, voice, low bandwidth
FLACAudioLosslessArchiving, hi-fi music
WAVAudioLosslessEditing, production masters
Showing 18 of 8
1 / 1

Which should you use? Practical picks

• A video that needs to play anywhere — MP4 with H.264 and AAC. The safe, boring, correct default.

• A lighter video on your own website — WebM (VP9), which is smaller and royalty-free with wide modern-browser reach.

• A phone MOV an editor or site won't accept — convert it to MP4 and it goes through.

• Audio to share or upload widely — MP3, the safest bet across players, cars and websites.

• Editing or mastering audio — WAV; archiving a music library at full fidelity — FLAC.

• Streaming, voice notes or bandwidth-limited apps — Opus, which stays clear where MP3 gets rough.

• A short, silent loop for a README or issue — a GIF; anything longer or in colour — an MP4.

A note on re-encoding and quality

Converting to a lossless format never degrades the audio. Converting to a lossy format re-encodes it, and while a single high-quality conversion is clean, repeatedly re-saving a lossy file compounds the damage — a lossy source converted to another lossy format stacks two rounds of loss. The good habit mirrors the image world: keep a lossless master (WAV, FLAC, or the original video) of anything you'll edit repeatedly, and export a lossy delivery copy only at the final step. When you do need to move a file between formats, a converter with sensible defaults — and one that copies streams verbatim whenever it can — does the job in a single clean pass.

Convert audio and video

Ready to change a format? Every tool below runs in the cloud over an encrypted connection, with files auto-deleted right after conversion — no signup, no watermark.

Open the video converter →Open the audio converter →GIF to MP4 →Video to GIF →

Frequently asked

What's the difference between a container and a codec?

A container (mp4, mkv, webm, mp3 file) is the wrapper that holds the streams and metadata. A codec (H.264, VP9, AAC, Opus) is the algorithm that compresses the actual audio or video. One container can hold different codecs, which is why renaming a file rarely fixes playback.

What does lossy vs lossless mean?

Lossy formats permanently discard detail the ear or eye is least likely to notice, to make small files (MP3, AAC, H.264). Lossless formats compress without discarding anything, so they're identical to the source but larger (WAV, FLAC).

Which video format is most compatible?

MP4 with H.264 video and AAC audio. It plays on virtually every phone, browser, TV and editor, which makes it the safe default whenever you're unsure where a file will end up.

Which audio format should I use?

MP3 for universal compatibility, FLAC or WAV for lossless archiving and editing, and Opus for streaming or voice where efficiency at low bitrates matters.

Does converting lose quality?

Converting to a lossless format doesn't. Converting to a lossy format re-encodes and loses a little detail; a single high-quality conversion is clean, but repeatedly re-encoding a lossy file compounds the loss.

What controls file size?

Mostly bitrate — how many bits per second the codec spends. Higher bitrate means better quality and a bigger file. Resolution, length and codec efficiency also matter for video.

How do I actually convert a file?

Use the free audio or video converter — drop your file, pick the target format, and download the result. No signup, files auto-deleted after conversion.

← Back to tools