TCP/UDP Port Range Generator - Free Online Tool

AdSense Placeholder
Slot: header_tool

TCP/UDP Port Range Generator

Build and Compress Port Lists for Firewall Rules

The result will appear here

AdSense Placeholder
Slot: tool_mid_article

Understanding Port Lists for Firewalls

Firewall Rule Prep

Build the exact port list a firewall or security group rule needs, then compress it into the fewest ranges.

Automatic Compression

Consecutive individual ports are automatically merged into compact ranges for cleaner rule definitions.

Common Bundles

Start from a pre-built bundle for web, email, database, or remote access ports and customize from there.

Client-Side Only

All generation happens locally in your browser — no data is ever sent to a server.

Singles, Ranges, and Compression

This tool accepts a comma-separated mix of single ports (443) and ranges (8000-8005), validates and deduplicates them, then shows both the full expanded list and a compressed range notation — useful for confirming an intended port list translates to the minimal rule set a firewall configuration actually needs.

Key Takeaways

  • Mixed Input Format: Combine individual ports and ranges freely in a single comma-separated list.
  • Automatic Deduplication: Overlapping entries are merged so the final list has no duplicates.
  • Client-Side Only: All generation happens locally in your browser — no data is ever sent to a server.
AdSense Placeholder
Slot: footer_leaderboard