Master output formats and create professional scan reports
1 / 3
NMAP Output Formats and Options
NMAP provides multiple output formats to suit different needs, from human-readable reports to machine-parseable data for automated processing and integration with other tools.
Standard Output Formats
-oN
Normal Output
Human-readable format, same as terminal output
Best for: Reports, documentation, manual review
nmap -oN scan_results.txt target
-oX
XML Output
Structured XML format for parsing and automation
Best for: Tool integration, databases, web applications
nmap -oX scan_results.xml target
-oG
Greppable Output
One line per host, easy to parse with grep/awk
Best for: Shell scripting, quick analysis, filtering
nmap -oG scan_results.gnmap target
-oS
Script Kiddie
Deprecated "leet" format (rarely used)
Best for: Legacy support only
nmap -oS scan_results.leet target
All Formats Output (-oA):
nmap -oA comprehensive_scan target
Creates three files: comprehensive_scan.nmap, comprehensive_scan.xml, comprehensive_scan.gnmap
Most convenient option for comprehensive documentation