A simple Windows .bat script that automatically converts all .flac files in a folder to 320 kbps MP3s, preserving album artwork and metadata tags.
Perfect if you want to quickly change the format of your music files without losing any cover art, title, artist, or album info!
- Finds every
.flacfile in the current folder. - Converts it to
.mp3usingffmpegat 320 kbps. - Keeps all metadata and embedded cover art.
- Saves the new
.mp3in the same folder with the same name.
Example: song.flac β song.mp3.
- Windows
ffmpeginstalled and added to your systemPATH.
-
Download
ffmpeg- Go to ffmpeg.org/download.html.
- Under Windows, click Windows builds from gyan.dev or BtbN.
- Download a release build ZIP (e.g.
ffmpeg-release-essentials.zip).
-
Extract the ZIP
- Extract the archive to a folder, for example:
C:\ffmpeg - Make sure you see:
C:\ffmpeg\bin\ffmpeg.exe
- Extract the archive to a folder, for example:
-
Add
ffmpegto yourPATH- Click Start, search for Environment Variables, and open Edit the system environment variables.
- In the System Properties window, click Environment Variables....
- Under System variables, find and select
Path, then click Edit. - Click New and add:
C:\ffmpeg\bin - Click OK to close all windows.
-
Verify that it works
- Open a new Command Prompt (
cmd). - Type:
ffmpeg -version
- You should see version info instead of
'ffmpeg' is not recognized....
- Open a new Command Prompt (
- Place the
flactomp3.batfile in the folder containing your.flacfiles. - Double-click the
.batfile. - All
.flacfiles will be converted to.mp3files with the same name. - The original
.flacfiles will remain untouched.