⚡
usefultools.dev
:80

Random Port Generator

NOVO

Random port generator for TCP and UDP: pick unique port numbers from your own range, skipping well-known, registered and common dev ports. Free, in your browser.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

Skip these ports
⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

Default
Range 1024–65535, skip dev ports
64,480 ports in the pool
Dynamic
Skip registered ports
16,384 dynamic ports (49152–65535)
Range 8000–8100, skip dev ports
98 ports (8000, 8080 and 8081 removed)
Quantity 5, sorted
Five unique ports, e.g. 2388, 3646, 16086, 31146, 40122
📖

Visão geral

A random port generator picks port numbers for TCP or UDP services, containers, test servers and firewall rules without you having to guess. Choose a minimum and maximum, decide which parts of the port space to avoid, and ask for between 1 and 50 numbers at once.

You can skip the well-known range (0–1023), the registered range (1024–49151) or a built-in list of ports that databases and dev servers usually claim, such as 3000, 3306, 5432, 6379 and 8080. Extra ports or ranges can be added by hand.

Numbers come from the browser’s cryptographic generator with rejection sampling, so every allowed port is equally likely and results never repeat. Nothing is sent anywhere. The tool cannot see which ports are free on your machine, so check a pick with your OS before binding it.

Por que usar esta ferramenta?

  • Unique ports in one click, up to 50
  • Avoids well-known and common dev ports
  • Uniform crypto randomness, no modulo bias
  • Shows how many ports remain in the pool
  • Runs locally, nothing is uploaded
⭐

Recursos

🎲

Unbiased randomness

Uses crypto.getRandomValues with rejection sampling so each port has the same chance.

🚫

Skip ranges

Exclude well-known, registered or a list of 32 common service ports.

✍️

Custom exclusions

Type extra ports or ranges such as 8081 or 9000-9010 to avoid.

🔢

Unique batches

Generate 1–50 distinct ports, optionally sorted ascending.

🏷️

Port class label

Each result is tagged Well-known, Registered or Dynamic.

📋

Copy one or all

Copy a single port or the whole list, one per line.

🛠️

Como usar

1

Set the range

Enter Min port and Max port, 1024 and 65535 by default.

2

Choose what to skip

Tick the well-known, registered or dev-port options and add custom ports.

3

Pick a quantity

Set Quantity from 1 to 50 and press Generate.

4

Copy the result

Use Copy on one port or Copy all for the full list.

🤔

Perguntas frequentes