DKIM generator
Free. A 2048-bit RSA key pair made in your browser and the DNS record to publish. The key is never sent anywhere.
mail._domainkeyMost DNS hosts want only mail._domainkey and add the domain themselves; the copy button copies that part.
Generate a key pair and the record value appears here.
OpenDKIM, Postfix, Exim and most DKIM libraries read this format. Keep it secret: anyone with it can sign mail as your domain. Save it before you close the tab, since it exists nowhere else.
Runearc sets this up for you: add your domain free, get the exact SPF, DKIM and DMARC records, and we check them for you.
What the generator does.
Make a 2048-bit RSA key pair for DKIM in your browser and get the DNS record to publish. The private key never leaves this page.
Made in your browser
WebCryptoThe key pair is generated by your browser's own cryptography. The page makes no request with it, so we never see your private key.
2048-bit RSA
RecommendedThe size RFC 8301 recommends and every receiver verifies. 1024-bit keys still work but are being phased out.
The DNS record
TXTv=DKIM1; k=rsa; p=…at<selector>._domainkey.<domain>, ready to paste.Split for DNS
255 charsA 2048-bit key is longer than one 255 character DNS string. Most hosts split it for you; if yours does not, copy the quoted version.
The private key
PEMPKCS#8 PEM to copy or download, for OpenDKIM, Postfix, Exim or the DKIM library in your app.
Check it after
VerifyOne click to the DKIM checker, which reads the published key and its length back from DNS.
How to publish the DKIM record.
Publish the TXT record at <selector>._domainkey on your domain, give the private key to the server or library that sends your mail, and set it to sign with d= your domain and s= the selector. Then check the key with the DKIM checker and send a message to the email deliverability test to see the signature verified.
Use a generated key only for mail you sign yourself. Mailbox providers and email services (Google Workspace, Microsoft 365, your email API) make their own key and give you the record to publish. When you rotate, publish the new key at a new selector, switch signing, and keep the old record for a few days. DKIM works with SPF and DMARC; the domain check shows all three.
Questions.
Is it safe to generate a DKIM key online?
What key length should I use for DKIM?
What should I use as the DKIM selector?
My DNS host rejects the long DKIM record. What now?
Do I need this if I use Google Workspace or an email API?
Does Runearc see my private key?
More free tools
All free toolsCheck
- Domain checkMX, SPF, DKIM, DMARC, BIMI, MTA-STS and TLS-RPT in one report, with a score and a fix for each row.Open tool
- SPF checkerExpands every include, counts DNS lookups against the limit of 10, finds void lookups and reads the all mechanism.Open tool
- DMARC checkerPolicy, subdomain policy, percentage, report addresses and alignment, and the record to publish next.Open tool
- DKIM checkerFinds the key at your selector, or at 40 common ones, and reads its type and length.Open tool
- MX lookupMail hosts in priority order, their IPv4 and IPv6 addresses, and the mail provider behind them.Open tool
- BIMI checkerThe BIMI record, the logo fetched and checked against SVG Tiny PS, the certificate, and DMARC readiness.Open tool
- Blacklist checkerAn IP or domain against 9 public DNS blocklists, with the return code, the reason and the removal page.Open tool
- Reverse DNS lookupThe PTR record of an IPv4 or IPv6 address, and whether that name resolves back to the same IP, as mail servers check it.Open tool
- Email checkerAn address's syntax, whether its domain accepts mail, and flags for disposable and role addresses. Only the domain is looked up.Open tool
Fix
Test
- Email header analyzerPaste the headers of a message: every hop and its delay, SPF, DKIM and DMARC results, and Microsoft, Gmail and Yahoo signals. Parsed in your browser.Open tool
- Email deliverability testSend one real email and see SPF, DKIM and DMARC results, blocklists, a spam score and the fix for each problem.Open tool
- Email subject line testerLength, how Gmail, Outlook and iPhone cut it off, caps, punctuation, emoji, spam phrases and unfilled merge tags, scored with each deduction.Open tool
- Spam word checkerPaste a subject and body to highlight phrases that read as spam, grouped by why. Checked in your browser.Open tool
- HTML email testerPaste the HTML of an email: preview it on desktop, phone and dark mode, see what Gmail, Outlook, Apple Mail and Yahoo don't support, then send it for real.Open tool