DKIM validator

Short answer

What does a correct DKIM record look like?

A correct DKIM record is a TXT record on selector._domainkey.domain with the value v=DKIM1; k=rsa; p= followed by the public key in base64, without spaces or line breaks. Paste the record into the validator before you add it to DNS, and we check the syntax, key type and key length.

Paste the whole record, for example v=DKIM1; k=rsa; p=MIIB...

Common mistakes

  • The key is cut off or has spaces and quotes.
  • p= is empty, which means the key is revoked.
  • t=y is left after testing.

The tags in the record

  • v=DKIM1: the version. It is optional, but if it is there, it must come first.
  • k=: the key type, rsa or ed25519. Without k= it means rsa.
  • p=: the public key. It is required, and an empty p= means the key is revoked.
  • t=y: test mode. t=s: the domain in i= must be exactly the same as in d=.
  • h=: which hash algorithms are allowed, for example sha256.

How to use the validator

Paste the record as you got it from the service or from the DKIM generator. The validator removes quotes and joins split strings, and shows each tag separately with errors and warnings below.

Questions and answers

Can I paste the record with quotes?

Yes. We remove quotes and join the strings, like DNS does.

Must v=DKIM1 be included?

No, RFC 6376 says it is optional. It is still common and recommended to include it, and then first in the record.

What does t=y mean?

That the domain is testing DKIM. Receivers may then treat the email as if it were not signed. Remove t=y when the signing works.

Why is my key invalid?

Most often the key was cut off when it was copied, or it got spaces or line breaks inside it. Copy the value again from the service and paste it in one piece.

Can I check a record that is already in DNS?

Yes, use the DKIM checker or DKIM key strength with the domain and the selector. The validator is for records you have as text.