CIDR Calculator:
Check and Break Down IP Ranges for SPF

An SPF record with ip4:203.0.113.0/16 authorizes every address in that range, whether your organization controls all of it or not. Most teams add a CIDR block to a DNS record without checking exactly what it includes, and an overly broad range widens the pool of servers that can send email on your domain’s behalf.

Use our tool to get a CIDR block's full breakdown, see every IP in a range, or check whether a specific IP falls inside it.

Use CIDR calculator

What Is Sendmarc’s CIDR Calculator?

Sendmarc's CIDR calculator returns a CIDR block's full breakdown, including its netmask, bitmask, host, broadcast, and block size, lists every individual IP in a range, and checks whether a specific IP falls inside a given range.

IT and network administrators use it to check a range before adding it to a DNS record. Email and security teams use it to confirm a mechanism in an SPF record isn't wider than the servers it's meant to authorize.

Sendmarc CIDR calculator

CIDR range

203.0.113.0/24

CIDR base203.0.113.0
Netmask255.255.255.0
Broadcast203.0.113.255
Block size256
First IP203.0.113.0
Last IP203.0.113.255

What Is CIDR Notation?

CIDR notation writes an IP address range in a compact format that combines an IP address with a prefix length. For example, 203.0.113.0/24 consists of:

  • An IP address: 203.0.113.0
  • A slash and prefix length: /24

In CIDR, an IP address has two parts: the network address, which identifies the subnet, and the host identifier, which points to a specific device on that subnet. CIDR notation is used in routing, firewall rules, cloud networking, and email authentication, and a CIDR calculator removes the manual work of converting between notation and address ranges.

Why CIDR Accuracy Matters

An SPF record is only as tight as the ranges inside it. A CIDR block that’s wider than your actual infrastructure authorizes servers you don’t control to send email that appears to come from your domain.

Checking a range before it goes into DNS also reduces rework. Teams that add a CIDR block without verifying its size often discover months later that it covers far more addresses than intended, usually during an SPF cleanup.

Common Use Cases

  • SPF authorization scoping. Check what a proposed ip4 or ip6 range actually includes before publishing it.
  • Post-acquisition audits. Verify inherited SPF ranges from a merged or acquired domain aren’t broader than the servers the new team controls.

What Sendmarc’s CIDR Calculator Shows You

The calculator works in three ways.

IP-in-range check

Enter a specific IP address alongside a CIDR range. The calculator confirms whether that IP falls within it.
203.0.113.57In range

CIDR range · 203.0.113.0/24

CIDR to IP range

Enter an IP address and prefix length, for example, 203.0.113.0/24. The calculator returns:
  • CIDR range
  • CIDR base
  • Netmask
  • Bitmask
  • Host
  • Broadcast
  • Block size
  • First IP
  • Last IP
CIDR base203.0.113.0
Netmask255.255.255.0
Broadcast203.0.113.255
Block size256
First IP203.0.113.0
Last IP203.0.113.255

Full IP list

Enter an IP address and prefix length to get a full list of every individual IP address within that range.
203.0.113.0
203.0.113.1
203.0.113.2
203.0.113.0 – 203.0.113.255256 IPs

How to Use Sendmarc’s CIDR Calculator

  1. Choose your intent. Select whether you're converting a CIDR block to its IP range, getting a full list of IPs, or checking whether a specific IP falls inside a given range.
  2. Enter your input. Type in the IP address and prefix length, the CIDR, or the first and last IP address, depending on your intent.
  3. Run the calculation. The calculator returns the result for whichever direction you selected.
  4. Review the output. Check the full breakdown, IP list, or match result.
  5. Update your SPF record. Add the confirmed range using the correct mechanism, and remove any range that's broader than necessary.

Run a CIDR block through the calculator before it goes into a DNS record, not after an SPF cleanup surfaces it as a problem.

Use Sendmarc’s CIDR calculator

CIDR Calculator FAQs

What is CIDR notation?

CIDR notation is a compact way of writing an IP address range by combining an IP address with a prefix length, such as 203.0.113.0/24.

What is the best CIDR range for an SPF record?

The best CIDR range for an SPF record is the one that matches your actual email-sending infrastructure. A range that’s wider than the servers you control authorizes addresses you don’t manage, which increases the number of unauthorized senders your domain has to account for.

Does the Sendmarc CIDR calculator support IPv6?

The Sendmarc CIDR calculator is built for IPv4 address ranges. IPv6 planning uses the same CIDR concepts, but requires a dedicated IPv6 tool.

Why would a CIDR range be too broad for SPF?

A CIDR range is too broad for SPF when it includes IP addresses beyond the servers actually sending email for your domain, often because a range was chosen for convenience rather than checked against real infrastructure. Every address inside that range is authorized to send on your domain’s behalf, whether it’s a legitimate sender or not.

Can a CIDR calculator help with the SPF DNS lookup limit?

A CIDR calculator doesn’t reduce DNS lookups directly, since ip4 and ip6 mechanisms with CIDR notation don’t count toward the 10-lookup limit. It helps indirectly by making IP ranges precise enough that fewer separate mechanisms are needed to cover your senders.

Is Sendmarc’s CIDR calculator free to use?

Yes. Sendmarc’s CIDR calculator is a free tool, and no account is required to use it.