SPF Record Generator
- Free forever
- No sign-up
- Runs in your browser
Build a correct SPF record for your domain: tick your email services, add your servers, and copy the DNS record.
About SPF Record Generator
Builds one valid SPF record from ticks and boxes: common senders such as Google Workspace, Microsoft 365, Zoho, Mailchimp, SendGrid, Amazon SES and Salesforce, your own MX and website servers, extra IP ranges and include domains. It counts DNS lookups as you go, warns when nothing is chosen or the record grows past 255 characters, and shows exactly which TXT name and value to publish.
How to use SPF Record Generator
- Type your domain, then tick each email service that sends as you, like Google Workspace or Microsoft 365.
- Tick your own mail servers (MX) or website server (A) if they send email, and add any other IPs or include domains.
- Choose what Email from anywhere else should get: soft fail (~all), fail (-all) or neutral (?all).
- Click Copy and add the record as a TXT record at @ in your DNS, replacing any old SPF record.
How your data is handled
Everything is built in your browser. The domain, IP addresses and services you enter aren't sent anywhere, and the page doesn't read or change your DNS.
Limits and accuracy
- The lookup count covers only what you add; each include can hide more lookups, so test the published record.
- Provider include values are the common published ones; check your provider's help page, as some give customers their own.
- It makes a new record rather than editing your current one, so add every sender you still use before publishing.
Questions and answers
Should I use ~all or -all?
Start with ~all (soft fail) while you check that every service that sends as you is listed. Once you're sure, switch to -all so receivers reject email from anywhere else. Never use +all.
Can I have more than one SPF record?
No. A domain must publish exactly one SPF record, so replace your old one rather than adding a second. If you use several services, tick them all here to combine them in one record.
What is the 10 DNS lookup limit?
SPF allows at most 10 DNS lookups. The generator counts each include, a and mx you add, but includes can hide more lookups of their own, so test the published record with the SPF checker.
Do I need to sign up or install anything?
No. SPF Record Generator for Email runs from this website with no account, no app and no download. The only limit is a short per-minute cap on checks, to stop abuse.
Does it work for Google Workspace and Microsoft 365?
Yes. Tick your sending services and the record is built with the right include, such as include:_spf.google.com or include:spf.protection.outlook.com, ending in ~all or -all as you choose.