How to Add TXT Records in Cloudflare, Create it in DNS Easily 2026
By Impran M N
TXT records are the workhorse of domain verification, whether you're proving ownership to a third-party service or setting up SPF and DMARC for email. This guide covers creating a TXT record correctly in Cloudflare's DNS panel.
01Open the DNS Records page
Select your target domain and go to the DNS Records grid in the sidebar.
02Click Add Record
Click '+ Add Record' to launch the configuration panel.
03Set the type to TXT
Change the Type dropdown to TXT for a text-based record.
04Enter the host name
Type '@' for the apex domain, or a specific subdomain like '_dmarc' depending on what you're verifying.
05Paste the content string and save
Paste the multi-part verification or security string into the content field, leave TTL on Auto, and click Save.
Frequently asked questions
What's the difference between using '@' and a subdomain like '_dmarc'?
'@' applies the TXT record to your apex domain, while a specific prefix like '_dmarc' scopes it to that particular subdomain, which is standard for DMARC policy records.
Can I have multiple TXT records on the same host name?
Yes, multiple TXT records can coexist on the same host, though some services like SPF specifically require only one combined record rather than duplicates.
How long should TXT record content strings be?
Length limits vary by use case, but Cloudflare supports the standard long strings needed for SPF, DKIM, and site verification codes.
Why isn't my new TXT record verifying yet?
Give it a few minutes for propagation, and double-check for typos in the content string, since even small formatting errors can cause verification to fail.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



