afconvert
macOS audio file format converter
TLDR
Convert audio file to AAC
SYNOPSIS
afconvert [-f file-format] [-d data-format] [-b bit-rate] input output
DESCRIPTION
afconvert is a macOS command-line tool for converting between audio file formats. It supports all audio formats handled by Core Audio, including WAV, AIFF, MP3, AAC, ALAC, CAF, and more.
The tool provides access to Apple's audio codecs and can perform sample rate conversion, bit depth conversion, and channel remapping along with format conversion.
PARAMETERS
-f format
Output file format: m4af, WAVE, AIFF, caff, etc.-d format
Audio data format: aac, alac, BEI16, LEF32, etc.-b rate
Bit rate in bits per second for compressed formats-s rate
Sample rate for output file-c channels
Number of output channels-q quality
Encoder quality (0-127, higher is better)-v
Verbose output-h
Display available formats and help
CAVEATS
This tool is macOS-only. Some format conversions may be lossy. AAC encoding quality varies with bit rate settings. Not all format combinations are valid.
HISTORY
afconvert has been part of macOS since Mac OS X, providing command-line access to the same audio conversion capabilities used by iTunes and other Apple applications.
