DKIM key and record generator

Generate a DKIM key pair for your mail server, and the DNS record to publish.

Keys are created by your browser’s built-in cryptography – the private key is never sent to our servers.

Using Microsoft 365, Google Workspace or an email service? They create DKIM keys for you – turn DKIM on in their settings and publish the records they show (Microsoft 365 uses two CNAME records, selector1._domainkey and selector2._domainkey; Google uses a TXT record at google._domainkey). This generator is for your own mail servers, or services that ask you to supply a key.

Any name – using the date makes rotating keys easier.

A free tool provided by Auth-Email

Auth-Email makes your Gmail, Outlook, or other OAuth 2.0 email account available to any IMAP, POP3, or SMTP email client — no app passwords or special configuration needed.

Frequently asked questions

Should I generate my own DKIM key?
Only if you run your own mail server, or your provider asks you to supply a key. Microsoft 365, Google Workspace and most email services create DKIM keys for you – you just publish the records they give you.

Is the private key sent to your servers?
No. The key pair is generated by your browser’s built-in cryptography, and the private key is only saved when you download it. Keep it secret – anyone with it can sign email as your domain.

Which key size should I use?
2048-bit RSA keys are the standard choice. 1024-bit keys are considered weak, and some DNS providers have trouble with 4096-bit keys because of their length.