SPF record generator
Tick the services that send email for your domain, add any extra IPs and copy one SPF TXT record, with a live count of DNS lookups. Everything runs in your browser, so nothing you type is sent anywhere.
Tick at least one sender, or add an IP address or include, to build the record.
How to add the record
- Log in to your DNS host (the company where your domain's DNS is managed, such as your registrar or Cloudflare).
- Add a TXT record with the host
@and the value from the generator above. If a record starting withv=spf1already exists, edit that one instead of adding a second. - Wait for DNS to update (usually minutes, up to 48 hours), then check your live record or run the email deliverability checker.
FAQ
What is an SPF record?
An SPF record is a TXT record on your root domain that starts with v=spf1. It lists the servers and services allowed to send email for your domain, so receiving mail servers can spot mail from anyone else.
Can I have two SPF records?
No. A domain can have only one SPF record. If there are two, receivers treat SPF as broken and it fails. Merge every include and IP into a single v=spf1 record instead of adding a second one.
What is the 10 lookup limit?
Checking an SPF record may use at most 10 DNS lookups. Each include, a, mx, exists and redirect counts, and so do the lookups inside the records you include. Over 10, SPF fails with a permerror, so remove senders you no longer use.
Should I use ~all or -all?
~all (soft fail) is the safe default: mail from unlisted servers is accepted but marked as suspicious. Switch to -all (hard fail) once you are sure every service that sends mail for your domain is listed.
Why do my contact form emails go to spam?
Usually because the server sending the notification isn't listed in your SPF record, or the From address uses a domain that hasn't authorized it. Send form notifications From an address on your own domain with SPF, DKIM and DMARC set up, and put the visitor's email in Reply-To instead of From.
Email deliverability checker · DMARC record generator · What SPF means · Why form emails go to spam
More free form tools
Form backend cost calculator
Enter monthly submissions and compare the cheapest listed plan across eight form backends.
Email deliverability checker
Enter a domain to check its SPF, DMARC and MX records and get a plain-English fix for each.
SPF record checker
Look up a domain's SPF record, see each mechanism explained and count DNS lookups against the 10-lookup limit.
DMARC record generator
Pick a policy and report address and copy a ready _dmarc TXT record.
DMARC checker
Look up a domain's DMARC record and see the policy and every tag explained.
DKIM record checker
Enter a domain and selector to check its DKIM key, with presets for common senders.
Contact form spam checker
Paste form HTML to audit its honeypot, endpoint, CAPTCHA markers and spam resistance.
Honeypot field generator
Generate a hidden anti-spam input with your chosen name and hiding technique.
Form action URL tester
Check a form action URL for reachability, CORS headers, POST acceptance and backend.
Email obfuscator
Encode your email so spam scrapers can't read it but people can still click it.
Mailto link generator
Build a mailto: URL with recipients, CC, BCC, subject and a pre-filled body.
Alphanumeric regex tester
Test letters and numbers only, spaces, handles and Unicode; copy validation patterns.
Email regex tester
Test the WHATWG email regex and two other patterns against edge cases and your own list.
Phone number regex tester
Test numbers against E.164, US/Canada and digits-only patterns and copy code snippets.
ZIP code regex tester
Test US ZIP, ZIP+4, Canadian and UK postal codes and copy the regex or HTML pattern.
Number regex tester
Test digits, decimals, money and thousands separators and copy validation patterns.
Date regex tester
Test dd/mm/yyyy, mm/dd/yyyy and ISO dates with leap-year checks and copy JS or HTML patterns.
Name regex tester
Test name patterns for O'Brien, accents and Unicode letters; copy JS or HTML pattern snippets.
Username regex tester
Test username presets for GitHub, Instagram and X; check reserved names and copy JS or HTML patterns.
IP address regex tester
Test IPv4, IPv6, CIDR and private-range patterns and copy JS or HTML pattern snippets.
URL regex tester
Test website URLs against http(s) regex patterns and new URL(), and copy JS, HTML or PHP code.
HMAC-SHA256 generator
Generate and verify webhook signatures for common providers in your browser.
URL encoder and decoder
Encode text, build an x-www-form-urlencoded body or parse a query string.
Password regex generator
Pick strength rules, test passwords live and copy the regex or HTML pattern.
UTM builder
Build campaign URLs with UTM parameters, tag a CSV in bulk and check tagged links.
HTML to JSX converter
Paste HTML and get JSX or a working React/Next.js form component.
Image to Base64 converter
Convert images to Base64 data URLs in your browser and copy HTML and CSS snippets.
Base64 to image converter
Paste a Base64 data URI to preview and download the decoded image.
Base64 decode & encode
Decode Base64 to readable UTF-8 text or encode text to Base64, locally in your browser.
URL to Base64 converter
Fetch a direct image URL in your browser and get its Base64 data URL.
HTML form generator
Build a form visually and copy HTML, React JSX or Tailwind code.
AI form generator
Describe your form in plain English and copy working HTML.
Time regex tester
Test 24-hour, AM/PM and ISO time patterns and copy JavaScript, Python or HTML snippets.
Credit card regex tester
Test Visa, Mastercard 2-series, Amex and more card patterns with brand detection and a Luhn check.
Hex color regex tester
Test #RGB, #RRGGBB and alpha hex colors plus rgb() and hsl() values with live color swatches.
UUID regex tester
Test UUID v1-v8, nil/max and GUID formats with version and variant checks; copy JS or HTML patterns.
Terms explained in the form glossary: SPF, DMARC, SMTP