CIDR // ALLOWEDIPS

WireGuard Calc IP

Turn a list of addresses into the smallest set of prefixes that covers exactly them. Runs entirely in your browser — nothing is uploaded.

Paste addresses, subnets, or both — separated by spaces, commas or new lines. Bare addresses are treated as host routes.


    

Use this for the AllowedIPs line of a peer. Fewer prefixes is usually better — a contiguous run of hosts collapses into one entry.