Skip to content
Mailwel
Theme

IP range to CIDR

Enter the first and last address of a range to get the fewest CIDR blocks that cover exactly that range. Switch to many ranges to convert a list.

Convert
Try:

CIDR blocks

Example: type your own range above.

Blocks7the fewest that cover it exactly
Addresses91
192.0.2.10/31
192.0.2.12/30
192.0.2.16/28
192.0.2.32/27
192.0.2.64/27
192.0.2.96/30
192.0.2.100/32

Each block

first and last address, and size
BlockFirstLastAddresses
192.0.2.10/31192.0.2.10192.0.2.112
192.0.2.12/30192.0.2.12192.0.2.154
192.0.2.16/28192.0.2.16192.0.2.3116
192.0.2.32/27192.0.2.32192.0.2.6332
192.0.2.64/27192.0.2.64192.0.2.9532
192.0.2.96/30192.0.2.96192.0.2.994
192.0.2.100/32192.0.2.100192.0.2.1001
  • Block
    192.0.2.10/31
    First
    192.0.2.10
    Last
    192.0.2.11
    Addresses
    2
  • Block
    192.0.2.12/30
    First
    192.0.2.12
    Last
    192.0.2.15
    Addresses
    4
  • Block
    192.0.2.16/28
    First
    192.0.2.16
    Last
    192.0.2.31
    Addresses
    16
  • Block
    192.0.2.32/27
    First
    192.0.2.32
    Last
    192.0.2.63
    Addresses
    32
  • Block
    192.0.2.64/27
    First
    192.0.2.64
    Last
    192.0.2.95
    Addresses
    32
  • Block
    192.0.2.96/30
    First
    192.0.2.96
    Last
    192.0.2.99
    Addresses
    4
  • Block
    192.0.2.100/32
    First
    192.0.2.100
    Last
    192.0.2.100
    Addresses
    1