NewThe Clay GTM Engineer Cohort starts on 18th of January 2027.  20 seats, with Clay scholarships for selected students.
Home
/
Calculators
/
DKIM record generator
Free DKIM generator

DKIM record generator

Generate a DKIM key pair and the DNS record to publish, right in your browser. Choose a selector and key size, then copy the public key into your DNS.

A label for this key, so you can rotate keys later without downtime (for example s1, then s2).

Key size

Use 1024-bit only if your DNS host cannot store long TXT records.

Keys are generated in your browser. Nothing is sent to us or stored anywhere.

Using Google Workspace or Microsoft 365? Generate DKIM inside their admin panel instead (Google Admin > Apps > Gmail > Authenticate email, or Microsoft Defender > DKIM). This tool is for your own mail servers and sending tools that ask you to bring a key.

1. Publish this public key

Type
TXT
Host / name
s1._domainkey
Click "Generate DKIM keys" to create your record.

2. Add this private key to your mail server

Your private key appears here. Keep it secret.

Never publish the private key. If it leaks, generate a new pair with a new selector and remove the old record.

How to set up DKIM with this generator

  1. Enter your domain and a selector. The selector is just a label, like s1, so you can rotate keys later.
  2. Generate the keys. They are created in your browser and never leave your computer.
  3. Publish the public key as a TXT record at selector._domainkey on your domain.
  4. Add the private key to the mail server or sending tool that signs your email, then send a test and check DKIM passes.

What DKIM does

DKIM (DomainKeys Identified Mail) adds a digital signature to every email you send. The receiving server looks up your public key in DNS and checks the signature, which proves the email really came from your domain and was not changed on the way.

Google Workspace and Microsoft 365

If you send from Google Workspace or Microsoft 365, generate DKIM inside their admin panel, not here. Google: Admin console, Apps, Google Workspace, Gmail, Authenticate email. Microsoft: Microsoft Defender portal, Email authentication settings, DKIM. They hold the private key for you.

Key size and rotation

Use 2048-bit keys wherever your DNS host supports them. Rotate keys every 6 to 12 months by publishing a new selector, switching your server to it, then removing the old record.

Frequently asked questions

What is a DKIM selector?

A selector is a label that tells receiving servers which DKIM key to look up, published at selector._domainkey.yourdomain.com. Using selectors lets you run several keys at once and rotate them without downtime.

Should I use a 1024-bit or 2048-bit DKIM key?

2048-bit. It is the current recommendation. Only use 1024-bit if your DNS provider cannot store long TXT records.

Where do I add the DKIM record?

In your DNS settings, add a TXT record with the host selector._domainkey (for example s1._domainkey) and paste the public key record.

Is it safe to generate DKIM keys online?

With this tool, yes: keys are generated by your browser's built-in cryptography and are never sent to us. Never share or publish the private key.

Do I need DKIM for Google Workspace?

Yes, but generate it in the Google Admin console rather than here, because Google signs your mail with its own key. Then turn on signing after the record is published.

Why is DKIM failing?

Usual causes: the record was published at the wrong host, the key was split or truncated by your DNS provider, the selector on your server does not match, or the email was changed after signing.

Related free tools

Done for you

Rather not touch DNS at all?

We set up and authenticate every cold email domain and inbox for you, then run the campaigns.