TXT records with or without quotes

I’m trying to configure TXT records for email deliverability (SPF, DKIM, DMARC).

I’ve seen guides for Digital Ocean that put TXT records between quotes (“v=spf1 ip4: -all”) and without quotes (v=spf1 ip4: -all).

Should I use quotes or not? Or do they work exactly the same?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
March 22, 2022


In most cases, it should work fine either way, but I personally prefer to add the quotes anyway.

What I personally do is to send an email to the following website:

It then generates a report for you which you could use to check how the email looks to the recipient server and verify if there are any unexpected issues with your TXT records.

Site Moderator
Site Moderator badge
March 18, 2022

Hello there,

The quotes are needed, you can also check our existing tutorials on How To Create a SPF Record For Your Domain with Google Apps and How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability

Hope that this helps!