Skip to content

Extract Audio (MP3) From a Video on Windows Free

Extract audio as MP3 from a video free on Windows using WSL and FFmpeg. Pull the soundtrack losslessly or as MP3, batch a whole folder, all offline with no uploads.

MGMCSA Guru Team June 24, 2026 3 min read
A WSL terminal extracting an MP3 audio track from a video file with FFmpeg on Windows

You want the audio from a video — a recorded talk, a song from a clip, the narration off a screen recording — as a standalone MP3. The “video to MP3” sites do it, but they want you to upload the file and often cap length or stamp the output. For a long lecture recording or anything private, that’s a hassle you don’t need.

FFmpeg in WSL extracts the audio locally, for free, in one command. Convert it to MP3, or copy it out losslessly in its original format. Nothing gets uploaded.

No WSL yet? See the WSL install guide.

Install FFmpeg

sudo apt update && sudo apt install -y ffmpeg

Confirm:

ffmpeg -version

Extract audio as MP3

This drops the video and encodes the audio to MP3:

ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 192k output.mp3
  • -vn means “no video” — only the audio is kept.
  • -c:a libmp3lame is the MP3 encoder.
  • -b:a 192k sets the audio bitrate.

That’s the whole job. input.mp4 is untouched; output.mp3 holds the soundtrack.

Choosing MP3 quality

You can set a constant bitrate or let FFmpeg vary it for better quality-per-size:

ffmpeg -i input.mp4 -vn -c:a libmp3lame -q:a 2 output.mp3

-q:a 2 is a high-quality variable bitrate setting (lower number = higher quality).

MP3 quality settings

-b:a 128k Smaller files, fine for speech
-b:a 192k Good general quality
-b:a 320k Maximum MP3 bitrate, near-transparent
-q:a 2 High-quality VBR, smaller than 320k CBR
-q:a 0 Highest-quality VBR

Extract losslessly (keep the original format)

If you don’t specifically need MP3, copying the audio stream out is instant and loses nothing. First check what the audio actually is:

ffprobe input.mp4

If it reports AAC (common in MP4), copy it into an .m4a with no re-encoding:

ffmpeg -i input.mp4 -vn -c:a copy output.m4a

-c:a copy repackages the existing audio unchanged. Use this when you want the best possible quality and don’t need the MP3 format specifically.

Batch a whole folder

Turn every MP4 in a folder into a matching MP3:

mkdir -p audio
for f in *.mp4; do ffmpeg -i "$f" -vn -c:a libmp3lame -b:a 192k "audio/${f%.mp4}.mp3"; done

The MP3s land in audio/ and the videos stay in place. Change *.mp4 to *.mkv or *.mov for other formats.

Wrapping up

Extracting audio on Windows is one FFmpeg command: ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 192k output.mp3 for MP3, or -c:a copy to lift the original track losslessly. Set the bitrate to match the source rather than inflating it, and use a loop to clear a whole folder.

It’s free, it batches, and it runs in WSL — so your recordings never get uploaded. The same FFmpeg install also compresses video and converts MOV/MKV to MP4.

Frequently asked questions

How do I pull the audio out of a video as MP3?

FFmpeg can extract and convert the audio track in one command: drop the video stream, encode the audio to MP3, and write a .mp3 file. The original video is left untouched.

Can I extract the audio without re-encoding it?

Yes, if you keep the original format. Using -c:a copy with a matching extension copies the audio stream exactly with no quality loss — for example, copying an AAC track to an .m4a file. Converting to MP3 specifically requires re-encoding.

What MP3 quality should I use?

For a constant bitrate, 192k is a good general choice and 320k is near-transparent. For variable bitrate, -q:a 2 gives high quality at a smaller size. Remember you can't add quality the source video's audio never had.

Is my video uploaded anywhere?

No. FFmpeg runs locally in WSL, so the file stays on your machine. That's the reason to extract audio offline instead of using a website, especially for recordings you don't want to share.

How do I extract audio from many videos at once?

Use a short loop that runs FFmpeg on each video and writes a matching MP3. The loop in this guide turns a folder of videos into a folder of MP3s in one pass, keeping the originals.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.