Create DKIM public and private keys for domain. Build ready TXT records with split support. Download exports and deploy confidently across modern mail systems.
| Domain | Selector | Key size | DNS host/name | TXT starts with |
|---|---|---|---|---|
| example.com | default | 2048 | default._domainkey.example.com | v=DKIM1; k=rsa; h=sha256; ... |
| shop.example.com | s1 | 4096 | s1._domainkey.shop.example.com | v=DKIM1; k=rsa; h=sha256; t=y; ... |
| news.example.net | 2048 | mail._domainkey.news.example.net | v=DKIM1; k=rsa; s=email; ... |
This generator follows the DKIM DNS record structure and RSA keypair method:
The selector is a DNS label that points to your public key record. It lets you rotate keys by changing the selector without changing the domain. Keep it short and unique per mail stream.
Most organizations use 2048-bit RSA for compatibility and security. Use 4096-bit if your DNS provider and mail stack handle larger records. Avoid 1024-bit unless required for legacy systems.
Many DNS providers limit TXT segment length. Splitting keeps each quoted part below common limits while preserving one logical TXT value. DNS resolvers join the segments automatically during lookup.
Test mode adds t=y, signaling the key is for testing. Some receivers may treat it differently, but it mostly helps you remember to validate before production. Turn it off after verification.
No. The private key must stay on your mail server only. Anyone with the private key can sign messages as your domain. Publish only the public key via DNS and protect the private key with strict permissions.
SHA-256 is the modern, widely supported DKIM hash algorithm. SHA-1 is considered weak and is often discouraged. If a legacy system demands SHA-1, plan a migration to SHA-256 soon.
No. This page generates keys and record text only. You still need to install the private key and configure a signing service such as OpenDKIM, Postfix integration, or your provider’s DKIM settings.
Key rotation depends on policy, but many teams rotate every 6–12 months or after a suspected leak. Rotation is easier if you use a new selector, publish the new record, then switch signing to it.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.