Skip to main content
⚙️ SPF Generator 🔑 DKIM Generator 🔒 DMARC Generator 🔍 Check Live DKIM
100% IN-BROWSER WEBCRYPTO · RSA-2048 · ZERO SERVER TRANSMISSION

Free DKIM Key & DNS Record Generator

Generate a cryptographic 2048-bit or 1024-bit RSA keypair directly in your browser using the native Web Crypto API. Copy your ready-to-publish v=DKIM1 DNS TXT record and download your PEM private key for Postfix, OpenDKIM, Exim, or Haraka.

1. Publish this DNS TXT Record
Host / Name: mail2026._domainkey.example.com · Type: TXT
Generating 2048-bit RSA keypair...
2. Private Key (PKCS#8 PEM — Keep Secret on Your Mail Server)
Advertisement

2048-Bit RSA DKIM Key Pair Generator & Split DNS TXT String Formatter

Generating a production-grade 2048-bit RSA DKIM key pair requires formatting the public key for DNS TXT publication (selector._domainkey.yourdomain.com) while keeping the matching PKCS#8 / PEM private key confidential inside your mail transfer agent (Postfix, OpenDKIM, Exim, Stalwart, Haraka, or Postal). Because standard DNS UDP packets and many cloud DNS dashboards (Route53, Cloudflare, GoDaddy, cPanel) enforce a 255-character limit per quoted TXT string, a 2048-bit Base64 public key (~392 characters) must be split into two adjacent quoted chunks.

Our interactive DKIM Generator produces both the single-line TXT value (for providers like Cloudflare that auto-split long TXT records) and the pre-split RFC 4408 / RFC 6376 multi-string format ("v=DKIM1; k=rsa; p=MIIBIjANBg..." "...IDAQAB") so your DNS zone compiles without syntax errors or truncated public keys. After publishing your generated 2048-bit RSA public key to your authoritative DNS zone under <selector>._domainkey.yourdomain.com, configure your mail transfer agent or ESP to sign outbound messages with the corresponding private key covering at minimum the From, To, Subject, Date, and Message-ID headers, and verify live DNS propagation immediately using our DKIM Checker tool.

DKIM Tag / Parameter RFC 6376 Specification & Value Operational Security Purpose
v=DKIM1 Mandatory version tag (must appear first in TXT record) Identifies the TXT record as a valid DomainKeys Identified Mail key
k=rsa (or k=ed25519) Key algorithm identifier (2048-bit RSA recommended) Protects against factorable 512/768-bit legacy key compromise
p=<base64_public_key> ASN.1 SubjectPublicKeyInfo encoded in Base64 Used by Gmail/Yahoo/Outlook to verify the b= signature in message headers
t=s (optional strict flag) Disallows subdomain signing when i= does not match d= Prevents unauthorized third-party subdomains from reusing the key
en
en: Google, Yahoo and Microsoft 365 bulk sender compliance matrix: how keeping hard bounces below 0.5% prevents 421 4.7.28 throttling and 550 5.7.1 domain blocks. ↗ Full-Res PNG (1200×675)
Related Tools · Dkim Generator Documentation: Bulk Sender Compliance Checklist · Complete Email Verification Guide · High-Throughput API Optimization · Non-Expiring Credit Terms · 211-Tool Master Directory · Bounce Reduction Case Studies · About KaijuVerifier