DEV Community

Wincent Balin
Wincent Balin

Posted on • Originally published at on


How to convert a batch of wav files to mp3 files

If you do not want to convert .wav files to MP3 format by hand and you have only Windows prompt on your hands, together with a ffmpeg.exe (look here), the command to run is

for %f in (*.wav) do ( ffmpeg -i "%f" -q:a 2 "%~nf.mp3" )
Enter fullscreen mode Exit fullscreen mode

The parameter -q:a 2 stands for variable bitrate; it is a standard FFMPEG parameter. You may use other FFMPEG parameters as well.

Look here for further Windows command-line improvements.

Top comments (1)

awise777 profile image

You can also use online service: