Technical details
A DKIM key length of 1024 bits is considered weak because modern factoring algorithms can potentially break RSA keys of this size, exposing the private signing key.
RFC 6376 does not mandate a minimum key size, but major mailbox providers including Gmail enforce a practical minimum of 1024 bits and recommend 2048 bits for new deployments.
A 2048-bit RSA key produces a public key of approximately 380 base64-encoded characters, which may require splitting across two DNS TXT strings due to the 255-character per-string limit.
Frequently asked questions
How do I check my DKIM key length?+
Use our DKIM Record Checker: it estimates the key size from the published public key material and flags keys under 2048 bits.
Can I use ed25519 instead of RSA for DKIM?+
Yes, RFC 8463 defines Ed25519 for DKIM. It produces shorter keys and is faster, but not all receivers support it yet. RSA 2048 is the safest choice.
How do I rotate from 1024-bit to 2048-bit safely?+
Publish the new 2048-bit key under a second selector, switch signing to it, verify inbound checks pass, then remove the old selector. Never delete the old record first.
Check your domain with our free tools: SPF checker, DMARC checker, DKIM checker.