DKIM Record Generator
Create a DKIM key pair and the DNS record to publish. Everything is generated inside your browser.
Quick answer: The DKIM record generator creates a 2048-bit RSA key pair in your browser and the DNS TXT record for the public key. The private key never leaves your device. Use it when your own server needs a key you supply.
What the DKIM generator does
It creates an RSA key pair using the cryptography built into your browser (WebCrypto), then builds the DNS TXT record for the public key. You get the record name, such as default._domainkey.example.com, the value to publish and the private key in PEM format. Nothing is sent to our servers, and nothing is stored.
Do you need it?
- Google Workspace, Microsoft 365, Zoho and most sending platforms. Generate the key inside their admin panel. They keep the private key and sign for you.
- Your own mail server. Software such as OpenDKIM, Postfix or Exim needs a key pair that you hold. Use this generator.
- A tool that asks you to supply a key. Some systems let you upload a private key. Generate one here and paste it in.
How to use it
- Enter your domain and choose a selector (a short label such as
defaultormail2026). - Choose the key size: 2048-bit is recommended, 1024-bit only if your DNS host cannot store the longer record.
- Optionally tick testing mode (
t=y) while you check that signing works. - Press Generate DKIM keys.
- Publish the TXT record at the shown name and save the private key somewhere safe, for example in your server's DKIM key folder.
- Confirm with the DKIM Record Checker.
Keep the private key secret
- Never publish or email the private key. Only the public key goes into DNS.
- Store it with strict file permissions on the server that signs mail.
- If you think it leaked, generate a new key with a new selector and remove the old record.
- Keys are generated in your browser, so you are the only one who ever sees the private key.
Rotating keys
Change keys every six to twelve months. Create a new selector, publish its record, switch signing to the new key, wait a few days and then delete the old record. Using a date in the selector name, such as mail2026a, makes rotation easy to track.
Three ways to create a DKIM record
- Your mail provider generates it. Google Workspace, Microsoft 365, Zoho and most sending platforms create the key and show you the DNS record. This is the easiest and the most common.
- Your own mail server generates it. Tools such as OpenDKIM can create keys on the server.
- This generator. Creates a key pair in your browser. Use it when a system asks you to supply the key.
Where to add the DKIM record
- GoDaddy: My Products, then DNS next to your domain, then Add New Record. Choose type TXT, set Name to @ (or the name shown below), paste the value and save.
- Namecheap: Domain List, Manage, Advanced DNS, Add New Record. Choose TXT Record, set Host to @ (or the name shown below) and paste the value.
- Cloudflare: select the domain, open DNS, Records, Add record. Choose TXT, set Name to @ (or the name shown below) and paste the value. TXT records are never proxied.
- Other DNS hosts use almost the same fields: type, host or name, value and TTL. Menu names change over time, so look for "DNS", "DNS records" or "Advanced DNS".
The host or name is selector._domainkey, using the selector you entered.
Last reviewed November 20, 2026 by the LeadNurturix cold email team.
DKIM record generator FAQ
Is it safe to generate a DKIM key in a browser?
Yes. The keys are made locally with your browser's built-in cryptography and are never sent to a server. Close the page when you have saved the private key.
What key size should I choose?
2048-bit. It is the standard recommendation. Choose 1024-bit only if your DNS provider cannot publish a record that long.
What selector should I use?
Any short name with letters, digits and hyphens, for example default, mail or a date. Use a new selector every time you rotate keys.
Where do I publish the DKIM record?
As a TXT record at selector._domainkey.yourdomain.com. Use the exact name shown by the generator. Some DNS panels need only the part before your domain.
The DNS panel will not accept my long DKIM value. What now?
DNS strings are limited to 255 characters, and a 2048-bit key is longer. Most panels split it automatically. If yours does not, split the value into two quoted strings in one record, or ask your DNS host.
Do I need to do anything on my mail server?
Yes. The private key must be installed in the DKIM signing software, which then signs each outgoing message with the selector and domain.
What is testing mode?
The t=y flag tells receivers you are testing, so failures should not be penalised. Remove it after you confirm that DKIM passes.
Can I reuse the same key for several domains?
It is possible but not recommended. Use one key pair per domain so a leak affects only one.
How do I check that DKIM works?
Run the DKIM Record Checker for the DNS part. Then send an email to a Gmail account, open "show original" and look for dkim=pass.
Does DKIM alone stop spoofing?
No. Combine it with SPF and a DMARC policy so receivers know what to do with mail that fails.
How do I generate a DKIM record in a mail server like MailEnable?
Mail servers that sign mail themselves have a DKIM section where you create a key pair for a selector. Publish the public key as a TXT record at selector._domainkey.yourdomain.com and install the private key in the server. This generator can create the pair if your server asks you to import one.
How do I add a DKIM record in GoDaddy?
Add a TXT record with name selector._domainkey and the generated value in the GoDaddy DNS manager, then confirm it with the DKIM Record Checker.
What does the DKIM record format look like?
v=DKIM1; k=rsa; p=<public key>. The tool adds t=y only if you tick testing mode.
Need the fixes done for you?
LeadNurturix is a cold email agency. We set up sending domains and mailboxes with SPF, DKIM and DMARC done right, build targeted B2B lead lists, write the sequences and run the campaigns. Start with a free deliverability audit and we will tell you exactly what to change.
More deliverability tools
Every free deliverability tool we offer
SPF, DKIM, DMARC, BIMI, MTA-STS and TLS-RPT checks, blocklist and DNS lookups, DNSSEC records, server tests and generators. All free, no signup.
Email checks
Email deliverability test Domain scanner SPF checker DKIM record checker DMARC checker BIMI lookup MTA-STS lookup TLS-RPT lookup Blacklist check Test email server Email copy spam checker
Create and fix
SPF record generator DKIM record generator DMARC record generator Anti-spam email fixer Cold email calculator
DNS lookups
DNS lookup DNS check DNS trace MX lookup TXT lookup CNAME lookup AAAA lookup SOA lookup SRV lookup Reverse DNS lookup
DNSSEC and special records
DS lookup DNSKEY lookup RRSIG lookup NSEC lookup NSEC3PARAM lookup CERT lookup IPSECKEY lookup LOC lookup