Visit the official Nmap Download Page and navigate to the Mac OS X Binaries section.
Double-click the downloaded file to open the disk image. Inside, you will see a package file (usually nmap- .mpkg ).
Download the latest stable .dmg file (e.g., nmap- .dmg ).
The installer will guide you through adding Nmap, Ncat, Ndiff, and the Zenmap GUI to your system. Option 2: Using Homebrew (Best for Developers)
The most straightforward way for most users is to use the official executable installer provided by the Nmap project.
Nmap (Network Mapper) is a cornerstone tool for network security and discovery. While it originated on Linux, it has robust, official support for macOS. Whether you are a security professional or a curious home user, here is how to download and install Nmap on your Mac.