DKIM Key Generator
Generate a DKIM key pair and DNS record right in your browser. The private key is created on your device and never sent to us.
How to set up DKIM
- Install the private key in your mail server or sending platform's DKIM settings.
- Publish the DNS record as a TXT record at the host shown (e.g.
mail._domainkey.yourdomain.com). - Check your DNS provider's TXT entry rules for long values. DNS character-string segments have a 255-octet limit; provider interfaces differ.
- Confirm it with the DKIM checker, and set up SPF and DMARC too.
Review the selector and domain against your sending platform before using this draft. Store the private key securely; the published DNS key alone does not prove that outgoing messages are signed. A lookup at a selector cannot verify a particular message. See RFC 6376 for the signing and verification model.
Check the published key
After configuring a sender, inspect its published key and a real message's authentication result.
Example: separating a DKIM public key from its secret
A selector such as mail identifies a DNS owner name under _domainkey for the chosen domain. The public TXT key can be published in DNS; the corresponding private key must stay in the sending system and must never be pasted into a public record or a support ticket.
When rotating keys, confirm the sender is using the new selector before retiring the old one. Check the live public record and a signed message to establish that the configuration works. Some managed email providers require platform-generated keys and do not accept a separately generated private key.
Related checks: Look up the published DKIM key and Confirm the DMARC policy.