---
title: "Free SPF Record Generator - Build Your SPF Record in 60 Seconds | AutoSPF"
description: "Generate a valid SPF TXT record by selecting your email providers and entering custom IPs. Shows the exact DNS record to publish, with live lookup counting and RFC 7208 compliance checking."
image: "https://autospf.com/images/og-default.png"
canonical: "https://autospf.com/tools/spf-record-generator/"
---

### Select your email providers

Google Workspace4LMicrosoft 3652LSendGrid5LMailchimp1LAmazon SES2LSalesforce2LHubSpot2LBrevo (Sendinblue)2LMailgun5LZoho Mail4LPostmark1LSparkPost1LMimecast (US)8LProofpoint3LFreshdesk / Freshworks7LZendesk2LIntercom2L

Custom IP addresses (0 lookups each)

One per line. IPv4 or IPv6, CIDR ranges supported.

Custom includes (\~1 lookup each + nesting)

One per line. "include:" prefix is added automatically if missing.

Policy qualifier

\-all

Hard fail (recommended)

Reject unauthorized senders

\~all

Soft fail (testing)

Accept but flag unauthorized

?all

Neutral

No policy assertion

Your SPF record:Copy

`v=spf1 -all`

DNS Lookups: 0/ 10 limit

Lookup counts are estimates including nested includes. Actual counts may vary as providers update infrastructure. Use the [SPF Checker](/tools/spf-checker/) to verify the exact count for your record after publishing.

## What Happens After You Generate Your SPF Record?

**1\. Publish it as a TXT record at your domain apex.** Log into your DNS provider (GoDaddy, Cloudflare, Namecheap, AWS Route 53, etc.), create a new TXT record with `@` as the host, and paste the generated SPF string as the value.

**2\. Verify it with our [free SPF checker](/tools/spf-checker/).** After DNS propagation (typically 5-60 minutes), run a check to confirm the record is published correctly and the lookup count is under 10.

**3\. Monitor it over time.** As you add new email services, the SPF record needs updating. Each new `include:` adds DNS lookups. When you approach the [10-lookup limit](/spf-too-many-dns-lookups/), use [AutoSPF](/) to flatten or switch to macros.

Provider Reference 

## DNS Lookup Cost by Provider

| Provider            | Include mechanism                  | Lookups |
| ------------------- | ---------------------------------- | ------- |
| Google Workspace    | include:\_spf.google.com           | 4       |
| Microsoft 365       | include:spf.protection.outlook.com | 2       |
| SendGrid            | include:sendgrid.net               | 5       |
| Mailchimp           | include:servers.mcsv.net           | 1       |
| Amazon SES          | include:amazonses.com              | 2       |
| Salesforce          | include:\_spf.salesforce.com       | 2       |
| HubSpot             | include:spf.hubspot.com            | 2       |
| Brevo               | include:spf.brevo.com              | 2       |
| Mailgun             | include:mailgun.org                | 5       |
| Zoho Mail           | include:zoho.com                   | 4       |
| Postmark            | include:spf.mtasv.net              | 1       |
| SparkPost           | include:sparkpostmail.com          | 1       |
| Custom IP (ip4/ip6) | ip4:x.x.x.x                        | 0       |

Lookup counts are approximate and may change when providers update their infrastructure. Use the [SPF checker](/tools/spf-checker/) for live counts.

## Generated a record that exceeds 10 lookups?

AutoSPF automatically flattens your includes and re-scans every 15 minutes. Enterprise SLAs, SSO/SAML, audit logs, and DNS rollback included.

[Start Free Trial→](https://app.autospf.com/login)[View Plans & Pricing](/pricing/)

Rated 5/5 on G2 · Trusted since 2018 

##  What Our Customers Say 

### "AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"

> It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change. 

 PJ 

Peter J.

 President · Small-Business (50 or fewer emp.) 

### "Helped us go beyond capacity"

> AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example. 

 VU 

Verified User

 Financial Services · Mid-Market (51-1000 emp.) 

[Read our reviews on G2 ](https://www.g2.com/products/autospf/reviews)

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138897474","https://www.linkedin.com/company/autospf","https://x.com/autospf01","https://www.facebook.com/autospf","https://github.com/duocircle","https://www.g2.com/products/autospf/reviews"],"aggregateRating":{"@type":"AggregateRating","ratingValue":"4.6","reviewCount":"28","bestRating":"5","worstRating":"1","url":"https://www.g2.com/products/autospf/reviews"},"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://autospf.com/contact-us/"},"knowsAbout":["SPF Record Flattening","Sender Policy Framework","Email Authentication","DNS Management","DMARC","DKIM","Email Deliverability","SPF Lookup Limits"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"AutoSPF","url":"https://autospf.com","description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","publisher":{"@type":"Organization","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}}
```

```json
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is an SPF record generator?","acceptedAnswer":{"@type":"Answer","text":"An SPF record generator builds a valid SPF TXT record string by letting you select your email providers and enter custom IP addresses. It outputs the correct syntax (starting with v=spf1, listing mechanisms, ending with a qualifier) so you can copy it directly into your DNS configuration."}},{"@type":"Question","name":"Is this SPF generator free?","acceptedAnswer":{"@type":"Answer","text":"Yes - completely free, no signup required. The generator builds the record client-side in your browser. Nothing is sent to any server."}},{"@type":"Question","name":"How do I know which include to use for my email provider?","acceptedAnswer":{"@type":"Answer","text":"Each email provider publishes a specific include mechanism. Common ones: Google Workspace uses include:_spf.google.com (4 lookups), Microsoft 365 uses include:spf.protection.outlook.com (2 lookups), SendGrid uses include:sendgrid.net (5 lookups). This generator handles the lookup automatically when you select a provider."}},{"@type":"Question","name":"What is the difference between -all and ~all?","acceptedAnswer":{"@type":"Answer","text":"-all (hard fail) instructs receiving servers to reject emails from unauthorized senders. ~all (soft fail) instructs them to accept but flag the email. Use ~all during initial testing, then switch to -all once you have confirmed all legitimate senders are in the record."}}]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://autospf.com/"},{"@type":"ListItem","position":2,"name":"Tools","item":"https://autospf.com/tools/"},{"@type":"ListItem","position":3,"name":"SPF Record Generator","item":"https://autospf.com/tools/spf-record-generator/"}]}
```

```json
{"@context":"https://schema.org","@type":"Product","name":"AutoSPF","url":"https://autospf.com","aggregateRating":{"@type":"AggregateRating","ratingValue":5,"reviewCount":21,"bestRating":5,"worstRating":1},"review":[{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Peter J.","jobTitle":"President"},"datePublished":"2026-03-10","reviewBody":"It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF \"flattens\" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.","name":"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}},{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Verified User","jobTitle":"Financial Services"},"datePublished":"2025-07-31","reviewBody":"AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.","name":"Helped us go beyond capacity","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}}]}
```
