Tested tool guide
Tested browser tools
Checked August 16, 2026
What SPF Record Generator does, with a checked example
This tool assembles an SPF TXT record from the pieces of your mail setup: your domain, the IPs of your own mail servers, and include: entries for third-party senders like Google Workspace or your marketing service. It orders the mechanisms, appends the required terminating 'all' mechanism, and returns a publish-ready DNS value. The thing users get wrong most often: SPF authenticates the envelope sender, not the address shown in the From line, so a correct record alone does not stop the spoofing users actually see.
Worked example
A concrete input and expected output from the current implementation.
Input
domain: example.com, mail server IP: 203.0.113.10, provider: Google Workspace
->
Expected output
v=spf1 include:_spf.google.com ip4:203.0.113.10 -all
Each entered sender becomes a mechanism in the record: the Google Workspace include, the single documentation-range IP, and -all to reject everything not listed. The ip4 mechanism costs no DNS lookups; the include costs one of the ten-lookup budget.