[{"data":1,"prerenderedAt":563},["ShallowReactive",2],{"dkim-generator":3,"mdc-rnxtj3-key":57,"mdc-yf6t25-key":213,"mdc--9y5ctr-key":368,"mdc-mwkwmf-key":460,"mdc--efjw8j-key":482,"mdc--qx0cjl-key":490,"mdc--3ukgk-key":506,"mdc-xiajw4-key":514,"mdc-6o8mr-key":531},{"id":4,"title":5,"body":6,"cta":7,"description":6,"extension":12,"faq":13,"hero":31,"lastUpdated":35,"meta":36,"navigation":37,"path":38,"sections":39,"seo":52,"stem":55,"__hash__":56},"dkimGenerator\u002Ftools\u002Fdkim-generator.yml","Dkim Generator",null,{"title":8,"description":9,"label":10,"to":11},"Send and answer email across all your domains","Mailyond creates a DKIM key for every domain you connect, so there's no private key file to keep, and receives and sends on the same domains. From $10\u002Fmonth: Basic $10 for up to 5 domains, Pro $20 for up to 10, Agency $40 for up to 30. Basic and Pro start with a 7-day free trial.","Start your free trial","\u002Fsignup","yml",{"title":14,"items":15},"FAQ",[16,19,22,25,28],{"title":17,"description":18},"What is a DKIM generator?","A tool that makes the two halves of a DKIM key: the private key your mail server signs messages with, and the public key you publish in DNS as a TXT record so receivers can check those signatures. This one also writes the record name and value for each domain, the split version for long values, and the OpenDKIM config lines.",{"title":20,"description":21},"Is it safe to generate a DKIM private key in the browser?","Yes. The keys are made on your device with the browser's built-in Web Crypto API, and the private key is never sent to us or stored, not even in your browser's storage. Our analytics only counts how many domains you entered and which key type you picked, never the domains. Treat the private key like a password: whoever holds it can sign mail as your domain. If it leaks, publish a new key at a new selector, switch signing to it, then empty the old record's `p=` to revoke the old key.",{"title":23,"description":24},"Which key length should I use?","RSA 2048. RFC 8301 requires at least 1024 bits and recommends 2048, and receivers must reject keys under 1024. Only fall back to 1024 if your DNS host can't store a TXT record longer than 255 characters. Ed25519 works as a second key next to an RSA key, not on its own.",{"title":26,"description":27},"My DNS host says the TXT record is too long. What do I do?","Open the split view on the domain's card. It cuts the value into strings of up to 255 characters, each in quotes, like `\"v=DKIM1; k=rsa; p=MIIBIjAN...\" \"...IDAQAB\"`. Paste the whole line, quotes included: receivers join the strings back into one value. BIND zone files and Route 53 take this format. If your host still refuses it, generate an RSA 1024 key, which fits in one string.",{"title":29,"description":30},"Can one domain have more than one DKIM key?","Yes, one per selector. Google, your newsletter tool and your own server can each sign with a key of their own, at names like `google._domainkey`, `k1._domainkey` and `mail._domainkey`. What breaks is two TXT records at the same name, so pick a selector that's free. To rotate a key, publish the new one at a new selector, switch signing over, and revoke the old one a few days later.",{"title":32,"description":33,"note":34},"DKIM generator for all your domains","This free DKIM generator creates a key pair and the TXT record to publish for up to 10 domains in one run. Each domain gets its own key, all at the selector you pick.","No signup. Keys are made in your browser and never sent to us.","2026-11-21",{},true,"\u002Ftools\u002Fdkim-generator",[40,43,46,49],{"title":41,"content":42},"How to use the DKIM generator","Paste up to 10 domains or subdomains into the box at the top of this page, one per line. Keep the selector `mail` or type your own, pick a key type, and click **Generate DKIM keys**. Each domain gets a key pair of its own, all at the same selector. No domains at hand? **Example** fills in two and makes keys for them.\n\nEach domain gets a card with:\n\n- **Name**: where the record goes, `\u003Cselector>._domainkey.\u003Cdomain>`, plus the shorter name to type in DNS panels that add your domain for you.\n- **Value**: the TXT record, `v=DKIM1; k=rsa; p=` followed by the public key, with a view split into 255-character strings.\n- **Private key**: the PEM file your mail server signs with, to copy or download as `\u003Cdomain>.\u003Cselector>.private`.\n- **OpenDKIM lines**: the KeyTable and SigningTable entries, folded away until you open them.\n- **Check it after publishing**: opens the [DKIM checker](\u002Ftools\u002Fdkim-checker) on that record in a new tab, so your keys stay on this page.\n\nThe keys are made in your browser with the Web Crypto API. Nothing is sent to our server or stored, and nothing goes into the page address. Every click makes new keys, so save each private key before you leave the page or generate again.\n\nPick a selector these domains don't use yet. A domain holds one key per selector, so reusing a name another sender already publishes, like `google` or `resend`, would clash with its key.\n",{"title":44,"content":45},"Where to publish the record","Add the record at your DNS host, which is wherever your domain's nameservers point. That isn't always the registrar.\n\n- **Type**: TXT.\n- **Name**: `mail._domainkey` (with your selector in place of `mail`) in panels that add your domain to every name, like Cloudflare, Porkbun, Namecheap and GoDaddy. Typing the full name there puts the record at `mail._domainkey.yourdomain.com.yourdomain.com`, where no receiver looks.\n- **Value**: the whole `v=DKIM1; ...` value as one piece. If your host rejects it as too long, paste the split version instead.\n- **TTL**: the default is fine.\n\nA subdomain you send from needs its own record and its own key, since keys don't carry over from the parent domain. For `updates.yourdomain.com` in the `yourdomain.com` zone, the short name is `mail._domainkey.updates`, and the card shows it. Our guide to [email on a subdomain](\u002Fblog\u002Femail-on-subdomain) shows a subdomain's DKIM record on a live domain.\n\nThen install the private key on your mail server and set it to sign as that domain with that selector. Send yourself a message and paste its headers into the [email header analyzer](\u002Ftools\u002Femail-header-analyzer): the `DKIM-Signature` header should show your domain in `d=` and your selector in `s=`, and the receiver should record a DKIM pass.\n",{"title":47,"content":48},"RSA 2048, 1024 or Ed25519","[RFC 8301 section 3.2](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8301#section-3.2) sets the rules for RSA keys: signers must use at least 1024 bits and should use 2048, and receivers must not accept signatures made with keys under 1024 bits. Sign with SHA-256 (`rsa-sha256`), since RFC 8301 no longer allows SHA-1 for DKIM.\n\n- **RSA 2048** (the default): use this one. Receivers have to support keys from 1024 to 4096 bits, so it works everywhere. Its TXT value is 410 characters, longer than one 255-character DNS string, so it's stored as two strings that receivers join on lookup ([RFC 6376 section 3.6.2.2](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc6376#section-3.6.2.2)).\n- **RSA 1024**: its value is 234 characters and fits in one string. Pick it only if your DNS host can't store a longer TXT record. It meets the minimum, so it's still valid.\n- **Ed25519**: a newer, much shorter key type from [RFC 8463](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8463), with `k=ed25519` and a 44-character `p=`. Not every receiver checks Ed25519 signatures, so publish it next to an RSA key at a second selector and sign with both. The option only shows up when your browser can make Ed25519 keys.\n",{"title":50,"content":51},"When you don't need to generate a key","Most hosted senders make the key pair for you and keep the private half on their side. Google Workspace generates it in the Admin console, Resend shows you its record when you add a domain, and Mailyond creates a key for every domain you connect. You copy one DNS record, and there's no key file to look after. A key you make here wouldn't help with those, since each sender signs with the key it holds.\n\nThis generator is for when you hold the signing key yourself: your own mail server (Postfix with OpenDKIM, or Exim), an app that signs its own mail, or a tool that asks you to bring your own key. If you send as several domains, each one needs its own key and record, and our guide to [sending email from multiple domains](\u002Fblog\u002Fsend-email-from-multiple-domains) compares the ways to set that up.\n",{"title":53,"description":54},"DKIM Generator: Create DKIM Keys and Records for 10 Domains","Free DKIM generator. Create a DKIM key pair and the DNS TXT record for up to 10 domains at once. Keys are made in your browser. No signup.","tools\u002Fdkim-generator","2wd4zjvVTWBJQ7Hx-hsrEIfAq_Vn5z4l5-CJdDJh_Vo",{"data":58,"body":59},{},{"type":60,"children":61},"root",[62,94,99,187,192],{"type":63,"tag":64,"props":65,"children":66},"element","p",{},[67,70,77,79,85,87,92],{"type":68,"value":69},"text","Paste up to 10 domains or subdomains into the box at the top of this page, one per line. Keep the selector ",{"type":63,"tag":71,"props":72,"children":74},"code",{"className":73},[],[75],{"type":68,"value":76},"mail",{"type":68,"value":78}," or type your own, pick a key type, and click ",{"type":63,"tag":80,"props":81,"children":82},"strong",{},[83],{"type":68,"value":84},"Generate DKIM keys",{"type":68,"value":86},". Each domain gets a key pair of its own, all at the same selector. No domains at hand? ",{"type":63,"tag":80,"props":88,"children":89},{},[90],{"type":68,"value":91},"Example",{"type":68,"value":93}," fills in two and makes keys for them.",{"type":63,"tag":64,"props":95,"children":96},{},[97],{"type":68,"value":98},"Each domain gets a card with:",{"type":63,"tag":100,"props":101,"children":102},"ul",{},[103,122,140,158,168],{"type":63,"tag":104,"props":105,"children":106},"li",{},[107,112,114,120],{"type":63,"tag":80,"props":108,"children":109},{},[110],{"type":68,"value":111},"Name",{"type":68,"value":113},": where the record goes, ",{"type":63,"tag":71,"props":115,"children":117},{"className":116},[],[118],{"type":68,"value":119},"\u003Cselector>._domainkey.\u003Cdomain>",{"type":68,"value":121},", plus the shorter name to type in DNS panels that add your domain for you.",{"type":63,"tag":104,"props":123,"children":124},{},[125,130,132,138],{"type":63,"tag":80,"props":126,"children":127},{},[128],{"type":68,"value":129},"Value",{"type":68,"value":131},": the TXT record, ",{"type":63,"tag":71,"props":133,"children":135},{"className":134},[],[136],{"type":68,"value":137},"v=DKIM1; k=rsa; p=",{"type":68,"value":139}," followed by the public key, with a view split into 255-character strings.",{"type":63,"tag":104,"props":141,"children":142},{},[143,148,150,156],{"type":63,"tag":80,"props":144,"children":145},{},[146],{"type":68,"value":147},"Private key",{"type":68,"value":149},": the PEM file your mail server signs with, to copy or download as ",{"type":63,"tag":71,"props":151,"children":153},{"className":152},[],[154],{"type":68,"value":155},"\u003Cdomain>.\u003Cselector>.private",{"type":68,"value":157},".",{"type":63,"tag":104,"props":159,"children":160},{},[161,166],{"type":63,"tag":80,"props":162,"children":163},{},[164],{"type":68,"value":165},"OpenDKIM lines",{"type":68,"value":167},": the KeyTable and SigningTable entries, folded away until you open them.",{"type":63,"tag":104,"props":169,"children":170},{},[171,176,178,185],{"type":63,"tag":80,"props":172,"children":173},{},[174],{"type":68,"value":175},"Check it after publishing",{"type":68,"value":177},": opens the ",{"type":63,"tag":179,"props":180,"children":182},"a",{"href":181},"\u002Ftools\u002Fdkim-checker",[183],{"type":68,"value":184},"DKIM checker",{"type":68,"value":186}," on that record in a new tab, so your keys stay on this page.",{"type":63,"tag":64,"props":188,"children":189},{},[190],{"type":68,"value":191},"The keys are made in your browser with the Web Crypto API. Nothing is sent to our server or stored, and nothing goes into the page address. Every click makes new keys, so save each private key before you leave the page or generate again.",{"type":63,"tag":64,"props":193,"children":194},{},[195,197,203,205,211],{"type":68,"value":196},"Pick a selector these domains don't use yet. A domain holds one key per selector, so reusing a name another sender already publishes, like ",{"type":63,"tag":71,"props":198,"children":200},{"className":199},[],[201],{"type":68,"value":202},"google",{"type":68,"value":204}," or ",{"type":63,"tag":71,"props":206,"children":208},{"className":207},[],[209],{"type":68,"value":210},"resend",{"type":68,"value":212},", would clash with its key.",{"data":214,"body":215},{},{"type":60,"children":216},[217,222,294,331],{"type":63,"tag":64,"props":218,"children":219},{},[220],{"type":68,"value":221},"Add the record at your DNS host, which is wherever your domain's nameservers point. That isn't always the registrar.",{"type":63,"tag":100,"props":223,"children":224},{},[225,235,267,284],{"type":63,"tag":104,"props":226,"children":227},{},[228,233],{"type":63,"tag":80,"props":229,"children":230},{},[231],{"type":68,"value":232},"Type",{"type":68,"value":234},": TXT.",{"type":63,"tag":104,"props":236,"children":237},{},[238,242,244,250,252,257,259,265],{"type":63,"tag":80,"props":239,"children":240},{},[241],{"type":68,"value":111},{"type":68,"value":243},": ",{"type":63,"tag":71,"props":245,"children":247},{"className":246},[],[248],{"type":68,"value":249},"mail._domainkey",{"type":68,"value":251}," (with your selector in place of ",{"type":63,"tag":71,"props":253,"children":255},{"className":254},[],[256],{"type":68,"value":76},{"type":68,"value":258},") in panels that add your domain to every name, like Cloudflare, Porkbun, Namecheap and GoDaddy. Typing the full name there puts the record at ",{"type":63,"tag":71,"props":260,"children":262},{"className":261},[],[263],{"type":68,"value":264},"mail._domainkey.yourdomain.com.yourdomain.com",{"type":68,"value":266},", where no receiver looks.",{"type":63,"tag":104,"props":268,"children":269},{},[270,274,276,282],{"type":63,"tag":80,"props":271,"children":272},{},[273],{"type":68,"value":129},{"type":68,"value":275},": the whole ",{"type":63,"tag":71,"props":277,"children":279},{"className":278},[],[280],{"type":68,"value":281},"v=DKIM1; ...",{"type":68,"value":283}," value as one piece. If your host rejects it as too long, paste the split version instead.",{"type":63,"tag":104,"props":285,"children":286},{},[287,292],{"type":63,"tag":80,"props":288,"children":289},{},[290],{"type":68,"value":291},"TTL",{"type":68,"value":293},": the default is fine.",{"type":63,"tag":64,"props":295,"children":296},{},[297,299,305,307,313,315,321,323,329],{"type":68,"value":298},"A subdomain you send from needs its own record and its own key, since keys don't carry over from the parent domain. For ",{"type":63,"tag":71,"props":300,"children":302},{"className":301},[],[303],{"type":68,"value":304},"updates.yourdomain.com",{"type":68,"value":306}," in the ",{"type":63,"tag":71,"props":308,"children":310},{"className":309},[],[311],{"type":68,"value":312},"yourdomain.com",{"type":68,"value":314}," zone, the short name is ",{"type":63,"tag":71,"props":316,"children":318},{"className":317},[],[319],{"type":68,"value":320},"mail._domainkey.updates",{"type":68,"value":322},", and the card shows it. Our guide to ",{"type":63,"tag":179,"props":324,"children":326},{"href":325},"\u002Fblog\u002Femail-on-subdomain",[327],{"type":68,"value":328},"email on a subdomain",{"type":68,"value":330}," shows a subdomain's DKIM record on a live domain.",{"type":63,"tag":64,"props":332,"children":333},{},[334,336,342,344,350,352,358,360,366],{"type":68,"value":335},"Then install the private key on your mail server and set it to sign as that domain with that selector. Send yourself a message and paste its headers into the ",{"type":63,"tag":179,"props":337,"children":339},{"href":338},"\u002Ftools\u002Femail-header-analyzer",[340],{"type":68,"value":341},"email header analyzer",{"type":68,"value":343},": the ",{"type":63,"tag":71,"props":345,"children":347},{"className":346},[],[348],{"type":68,"value":349},"DKIM-Signature",{"type":68,"value":351}," header should show your domain in ",{"type":63,"tag":71,"props":353,"children":355},{"className":354},[],[356],{"type":68,"value":357},"d=",{"type":68,"value":359}," and your selector in ",{"type":63,"tag":71,"props":361,"children":363},{"className":362},[],[364],{"type":68,"value":365},"s=",{"type":68,"value":367},", and the receiver should record a DKIM pass.",{"data":369,"body":370},{},{"type":60,"children":371},[372,393],{"type":63,"tag":64,"props":373,"children":374},{},[375,383,385,391],{"type":63,"tag":179,"props":376,"children":380},{"href":377,"rel":378},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8301#section-3.2",[379],"nofollow",[381],{"type":68,"value":382},"RFC 8301 section 3.2",{"type":68,"value":384}," sets the rules for RSA keys: signers must use at least 1024 bits and should use 2048, and receivers must not accept signatures made with keys under 1024 bits. Sign with SHA-256 (",{"type":63,"tag":71,"props":386,"children":388},{"className":387},[],[389],{"type":68,"value":390},"rsa-sha256",{"type":68,"value":392},"), since RFC 8301 no longer allows SHA-1 for DKIM.",{"type":63,"tag":100,"props":394,"children":395},{},[396,415,425],{"type":63,"tag":104,"props":397,"children":398},{},[399,404,406,413],{"type":63,"tag":80,"props":400,"children":401},{},[402],{"type":68,"value":403},"RSA 2048",{"type":68,"value":405}," (the default): use this one. Receivers have to support keys from 1024 to 4096 bits, so it works everywhere. Its TXT value is 410 characters, longer than one 255-character DNS string, so it's stored as two strings that receivers join on lookup (",{"type":63,"tag":179,"props":407,"children":410},{"href":408,"rel":409},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc6376#section-3.6.2.2",[379],[411],{"type":68,"value":412},"RFC 6376 section 3.6.2.2",{"type":68,"value":414},").",{"type":63,"tag":104,"props":416,"children":417},{},[418,423],{"type":63,"tag":80,"props":419,"children":420},{},[421],{"type":68,"value":422},"RSA 1024",{"type":68,"value":424},": its value is 234 characters and fits in one string. Pick it only if your DNS host can't store a longer TXT record. It meets the minimum, so it's still valid.",{"type":63,"tag":104,"props":426,"children":427},{},[428,433,435,442,444,450,452,458],{"type":63,"tag":80,"props":429,"children":430},{},[431],{"type":68,"value":432},"Ed25519",{"type":68,"value":434},": a newer, much shorter key type from ",{"type":63,"tag":179,"props":436,"children":439},{"href":437,"rel":438},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8463",[379],[440],{"type":68,"value":441},"RFC 8463",{"type":68,"value":443},", with ",{"type":63,"tag":71,"props":445,"children":447},{"className":446},[],[448],{"type":68,"value":449},"k=ed25519",{"type":68,"value":451}," and a 44-character ",{"type":63,"tag":71,"props":453,"children":455},{"className":454},[],[456],{"type":68,"value":457},"p=",{"type":68,"value":459},". Not every receiver checks Ed25519 signatures, so publish it next to an RSA key at a second selector and sign with both. The option only shows up when your browser can make Ed25519 keys.",{"data":461,"body":462},{},{"type":60,"children":463},[464,469],{"type":63,"tag":64,"props":465,"children":466},{},[467],{"type":68,"value":468},"Most hosted senders make the key pair for you and keep the private half on their side. Google Workspace generates it in the Admin console, Resend shows you its record when you add a domain, and Mailyond creates a key for every domain you connect. You copy one DNS record, and there's no key file to look after. A key you make here wouldn't help with those, since each sender signs with the key it holds.",{"type":63,"tag":64,"props":470,"children":471},{},[472,474,480],{"type":68,"value":473},"This generator is for when you hold the signing key yourself: your own mail server (Postfix with OpenDKIM, or Exim), an app that signs its own mail, or a tool that asks you to bring your own key. If you send as several domains, each one needs its own key and record, and our guide to ",{"type":63,"tag":179,"props":475,"children":477},{"href":476},"\u002Fblog\u002Fsend-email-from-multiple-domains",[478],{"type":68,"value":479},"sending email from multiple domains",{"type":68,"value":481}," compares the ways to set that up.",{"data":483,"body":484},{},{"type":60,"children":485},[486],{"type":63,"tag":64,"props":487,"children":488},{},[489],{"type":68,"value":18},{"data":491,"body":492},{},{"type":60,"children":493},[494],{"type":63,"tag":64,"props":495,"children":496},{},[497,499,504],{"type":68,"value":498},"Yes. The keys are made on your device with the browser's built-in Web Crypto API, and the private key is never sent to us or stored, not even in your browser's storage. Our analytics only counts how many domains you entered and which key type you picked, never the domains. Treat the private key like a password: whoever holds it can sign mail as your domain. If it leaks, publish a new key at a new selector, switch signing to it, then empty the old record's ",{"type":63,"tag":71,"props":500,"children":502},{"className":501},[],[503],{"type":68,"value":457},{"type":68,"value":505}," to revoke the old key.",{"data":507,"body":508},{},{"type":60,"children":509},[510],{"type":63,"tag":64,"props":511,"children":512},{},[513],{"type":68,"value":24},{"data":515,"body":516},{},{"type":60,"children":517},[518],{"type":63,"tag":64,"props":519,"children":520},{},[521,523,529],{"type":68,"value":522},"Open the split view on the domain's card. It cuts the value into strings of up to 255 characters, each in quotes, like ",{"type":63,"tag":71,"props":524,"children":526},{"className":525},[],[527],{"type":68,"value":528},"\"v=DKIM1; k=rsa; p=MIIBIjAN...\" \"...IDAQAB\"",{"type":68,"value":530},". Paste the whole line, quotes included: receivers join the strings back into one value. BIND zone files and Route 53 take this format. If your host still refuses it, generate an RSA 1024 key, which fits in one string.",{"data":532,"body":533},{},{"type":60,"children":534},[535],{"type":63,"tag":64,"props":536,"children":537},{},[538,540,546,548,554,556,561],{"type":68,"value":539},"Yes, one per selector. Google, your newsletter tool and your own server can each sign with a key of their own, at names like ",{"type":63,"tag":71,"props":541,"children":543},{"className":542},[],[544],{"type":68,"value":545},"google._domainkey",{"type":68,"value":547},", ",{"type":63,"tag":71,"props":549,"children":551},{"className":550},[],[552],{"type":68,"value":553},"k1._domainkey",{"type":68,"value":555}," and ",{"type":63,"tag":71,"props":557,"children":559},{"className":558},[],[560],{"type":68,"value":249},{"type":68,"value":562},". What breaks is two TXT records at the same name, so pick a selector that's free. To rotate a key, publish the new one at a new selector, switch signing over, and revoke the old one a few days later.",1795277592488]