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.
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.
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
- Add the TXT record at your DNS host and give it up to an hour to propagate.
- Load the private key into the system that sends your mail, and configure it to sign with the selector palisade1.
- Confirm the published key resolves with the free DKIM checker, then send a test message to Gmail and check Show original for dkim=pass.
- 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.
- IETF · RFC 6376 — DomainKeys Identified Mail (DKIM) Signatures (read 2026-08-13)
- Google · Turn on DKIM for your domain (read 2026-08-13)
- Microsoft · How to use DKIM for email in your custom domain (read 2026-08-13)
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 DKIM1 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
Every tag and term that shows up in a DKIM record or signature, explained.
- v
- The version tag specifies DKIM’s version, consistently required to be 1.
- p
- The public key tag, a character string created in DKIM setup, must not be left empty to remain valid.
- t
- This tag enumerates flags as a colon-separated sequence, with “y” and “s” as defined flags; any undefined flags should be disregarded.
- s
- This tag details service types relevant to the record. Absent or unrecognized service types must be overlooked by receiving servers.
- h
- This tag specifies permitted hash algorithms, defaulting to allow all. Receivers should ignore unknown algorithms, with the sender determining the list’s entries.
- n
- This tag serves as an optional note field for administrators, recommended for use only when needed.