SPF Record Generator
Build an SPF record from an IP range, an include entry and an ending policy.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
SPF Record Generator
How to use this tool
- Enter your values in the fields above.
- Press Generate to see the result.
- Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.
Worked example
Domain example.com with ip4 192.0.2.0/24, include _spf.example.com and -all gives the full record shown in the result.
What this tool does not do / Limits
This only formats the record you describe. It does not publish it, and it does not check the record currently published for a domain.
Frequently asked questions
Does this publish my record?
No. Copy the result and add it as a TXT record where your domain DNS is managed.
What does -all mean?
It tells receivers that senders not listed in the record are not authorised for your domain.
Related tools
JSON Studio
Format, validate, minify, query and compare JSON in your browser, with precise line-and-column errors.
LiveRegex Tester
Test patterns against sample text with match highlighting, capture groups and a safe one-second timeout.
LiveSecurity Header and DNS Checker
Check HSTS, CSP and other security headers, TLS details, and DNS/email authentication records (SPF, DKIM, DMARC).
Live