Back to Tools

SPF Record Generator

Generate a valid SPF record for your domain. Select your email providers, add custom IPs, and get a properly formatted TXT record ready to add to your DNS.

SPF Record Generator

Build a valid SPF record for your domain in seconds

Marks unauthorized emails as suspicious but may still deliver

v=spf1 ~all

Add this as a TXT record for your domain in your DNS settings

How to add this record

  1. Log into your DNS provider (Cloudflare, Namecheap, etc.)
  2. Navigate to DNS settings for your domain
  3. Add a new TXT record
  4. Set the host/name to @ (root domain)
  5. Paste the generated SPF record as the value
  6. Save and allow up to 48 hours for propagation

About this tool

SPF records tell receiving mail servers which IPs and services are authorized to send email for your domain. This generator simplifies the process by letting you select your email providers from a list and automatically formatting the record. After generating your SPF record, verify it with our SPF record checker, then complete your authentication setup with DKIM and a DMARC policy. Use our DNS propagation checker to confirm your changes are live.

Frequently Asked Questions