macf is a command-line utility for converting MAC addresses into different formats. It can process a single MAC address or multiple MAC addresses from a file.
Pre-built binaries are available for Linux and macOS:
- Go to the Actions tab
- Click on the latest successful "Build" workflow run
- Download the artifact for your platform:
macf-linux-x86_64for Linux (x86_64)macf-macos-arm64for macOS (Apple Silicon ARM64)
- Extract the archive and make the binary executable:
chmod +x macf
When a release is published, download pre-built binaries from the Releases page:
macf-linux-x86_64.tar.gzfor Linux (x86_64)macf-macos-arm64.tar.gzfor macOS (Apple Silicon ARM64)
Extract and install:
tar -xzf macf-*.tar.gz
cd macf-*
chmod +x macf
sudo mv macf /usr/local/bin/
sudo mv macf.1 /usr/local/share/man/man1/To compile from source, you need GCC:
gcc -o macf main.cOr use the provided installation script:
./install.sh- Convert MAC addresses to various formats:
- Cisco format:
0000.0000.0000 - Dash-separated format:
00-00-00-00-00-00 - Colon-separated format:
00:00:00:00:00:00 - Raw format (no separators):
000000000000
- Cisco format:
- Supports single MAC address input or file-based input.
- Outputs results to standard output or a specified file.
- Verbose mode for detailed output.
macf [MAC_ADDRESS] FORMAT [-f FILE] [-v]