DKIM Record Generator

Generate an RSA key pair in your browser and get the DKIM TXT record to publish, plus the private key for your sending system. The key pair is created here and never sent anywhere.

Check this first. Google Workspace and Microsoft 365 generate DKIM keys for you in their admin console and will not accept a key you made elsewhere. In Microsoft 365 the private keys are not even accessible. If either of them sends your mail, use their own flow (Google, Microsoft) instead of this generator. A key from here is for a mail server or platform that asks you to supply one: Postfix with OpenDKIM, an appliance, or your own application.

The domain that signs the mail. Used to build the host name. It isn't part of the record value.

Any label you choose. It lets one domain hold several keys at once, which is what makes rotation possible without downtime.

Key size

2048-bit is the right default. 1024-bit is here only because some DNS panels still refuse the longer record. It is meaningfully weaker and should be treated as a temporary measure. Google offers 1024 as a fallback for exactly that reason, and Microsoft 365 defaults to 1024 with 2048 available on rotation.

1 · The public record: publish this in DNS

No key pair generated yet.

Choose a selector and key size, then generate. The pair is made by your browser’s own Web Crypto implementation. Neither half of the key is sent anywhere or stored.

2 · The private key: for your sending system only

The matching private key appears here after you generate.

After you publish

  1. Add the TXT record at your DNS host and give it up to an hour to propagate.
  2. Load the private key into the system that sends your mail, and configure it to sign with the selector palisade1.
  3. Confirm the published key resolves with the free DKIM checker, then send a test message to Gmail and check Show original for dkim=pass.
  4. DKIM on its own proves the message wasn’t altered. It doesn’t tell receivers what to do with mail that fails. Pair it with a DMARC record and SPF.

Sources

The record format follows RFC 6376. The two provider notes above come from Google's and Microsoft's own setup documentation.

Generating the key is the easy part — living with it is the work

Keys need rotating, every sending service needs its own, and a DKIM record that quietly breaks looks fine in DNS. Palisade hosts DKIM by CNAME delegation, reads your DMARC reports to catch senders that fail, and drafts each fix for your approval.

Host my DKIM

1 domain free up to 1,000 emails/month

What is a DKIM record generator?

DKIM signs your outgoing mail with a private key and publishes the matching public key in DNS, so any receiver can confirm the message really came from your domain and arrived unaltered. Setting it up needs a key pair, and unlike SPF or DMARC you cannot write that by hand. This generator produces one in your browser: the public half comes out as the TXT record to publish, the private half as a PKCS#8 PEM file for your sending system. Before you use it, check whether your mail provider generates keys for you, because Google Workspace and Microsoft 365 both do and neither will accept an outside key. To see what a published record should look like before you add yours, here is what a DKIM record looks like, tag by tag, and the DKIM guides cover signing, selectors and rotation in more depth. Once the record is live, validate it with the DKIM checker, then pair it with SPF and a DMARC record.

Email authentication knowledge base