Network

Port Range Expander

Expand port ranges like 8000-8003 into individual ports, or collapse a list of ports into compact ranges. Great for firewall rules.

Last reviewed by the Radiatus Cloud team

Expand ranges such as 8000-8003 into individual ports, or collapse a list into ranges.

Need this monitored 24/7?

Radiatus delivers managed cloud & network operations.

Discuss managed ops

Expand and collapse port lists

Firewall rules, load balancers and scanning tools often need ports written either as an explicit list or as compact ranges. This tool converts between the two. Expanding turns a mixed input like "80, 443, 8000-8003" into the full list of individual ports, while collapsing takes a long list of ports and merges consecutive runs into ranges such as 8000-8003, producing the shortest readable representation. Duplicate ports are removed and everything is sorted.

Both directions are useful: some systems require every port listed explicitly, while others accept and prefer ranges for brevity.

Why port list conversion helps

Writing firewall and security-group rules by hand is error-prone when ports are scattered or span wide ranges. Expanding a range lets you verify exactly which ports a rule covers, while collapsing a list keeps configuration compact and readable. Converting between the forms also helps when moving rules between systems that use different conventions.

Ports are validated against the valid range of 0 to 65535, so out-of-range numbers are ignored. All processing happens locally in your browser, so your port lists are never uploaded.

Related tools

  • Port Scanner — Check which common ports respond on a host and understand what each exposed service means. Scan only systems you are authorised to test.
  • DNS Misconfiguration — Analyze DNS records (TXT, SPF) for security gaps.
  • TLS Compat Tester — Check client-server compatibility for TLS versions.
  • Firewall Rule Risk — Evaluate firewall rules for over-permissive exposure.

Frequently Asked Questions

What input formats are accepted?

A mix of single ports and ranges separated by commas, spaces or new lines, such as "22, 80, 8000-8010". Order does not matter.

Does it remove duplicates?

Yes. When expanding or collapsing, duplicate ports are merged and the output is sorted in ascending order.

What does collapsing do?

It merges consecutive ports into ranges, turning a long list like 8000, 8001, 8002 into 8000-8002 for a compact, readable result.

What port range is valid?

Ports from 0 to 65535 are accepted. Numbers outside this range are ignored, since they are not valid TCP or UDP ports.

Why collapse ports into ranges?

Compact ranges make firewall and security-group rules shorter and easier to read, and some systems prefer or require range notation.

Privacy & Security

Everything runs in your browser; nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Enter ports and ranges, then expand them to a full list or collapse a list into ranges.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.