SPF Record Generator
🔒 In your browserBuild a valid SPF record with provider presets and a live lookup counter.
How it works
Build a valid SPF record for your domain — the DNS TXT record listing which servers may send email as you. Pick your providers, add any of your own sending IPs, choose how strict to be, then publish the result as a TXT record at your domain root.
v=spf1 a mx ~all
Publish exactly one SPF record per domain — multiple records make SPF fail entirely.
🔒 Runs in your browser: records, keys and headers are processed locally and never uploaded — including DKIM private keys, which never leave this device.
About the SPF Record Generator
This free SPF record generator builds a valid SPF record for your domain. Click the providers you send through — Google Workspace, Microsoft 365, SendGrid, Mailchimp and more — add any of your own sending IPs, choose how strictly to treat everyone else, and copy the finished record straight into DNS.
A live counter keeps you under SPF's hard limit of 10 DNS lookups, which is the most common way SPF records break.
How to publish it
- Create a TXT record at your domain root (the host is @ or blank).
- Paste the generated record as the value.
- Publish exactly one SPF record — a second one makes SPF fail entirely.
- Wait for DNS to propagate, then verify with the SPF Checker.
Frequently asked questions
Where do I put the SPF record?
As a TXT record at your domain root — host @ or blank, depending on your DNS provider. Not at a subdomain unless that subdomain sends mail.
What if I use several email providers?
Add an include: for each one. Watch the lookup counter: each include costs one of your ten, and nested includes count too.
Should I start with ~all or -all?
Start with ~all so unlisted senders are marked rather than rejected, confirm nothing legitimate is failing, then switch to -all.
Is my configuration uploaded?
No. The record is built entirely in your browser.