Skip to content
thenetworktools
Sign in

Tools / DKIM Generator

DKIM Generator

Loading tool...
Workflow & Diagnostics

How DKIM Generator works

Generate secure 2048-bit DKIM keys entirely in your browser without sending private keys across the internet, or verify if existing selectors are published in DNS.

1

Enter your domain and selector name (e.g. google, k1, default).

2

Click Check Live DNS to test existing records, or Generate to create new keys.

3

Publish the public TXT record at selector._domainkey.yourdomain.com.

Troubleshooting & Remediation

How to Read & Fix Results

How to read the result

  • ProblemNo DKIM record at the selector your mail provider signs with, so signatures cannot be verified.
  • WarningA 1024-bit key still works but 2048-bit is the better choice if your DNS host accepts long TXT values.
  • PassThe selector record exists and the provider confirms it signs with that key.

How to fix issues

  1. 1If your provider generates DKIM for you, use theirs and skip generating a key here.
  2. 2Otherwise generate a key pair here. Keep the private key secret and give it to your mail server.
  3. 3Publish the public part as a TXT record at selector._domainkey.yourdomain.
  4. 4Turn on signing in your mail system, then send a test mail and check the headers.

Common mistakes to avoid

  • •Publishing at the wrong name, for example without ._domainkey.
  • •A DNS host that splits or truncates long values, breaking the key.
  • •Rotating a key without leaving the old one until in-flight mail is done.

Example DKIM Public Key Record

RFC Syntax
Reference ExampleRFC 1035 / BIND
selector1._domainkey.example.com.  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkq..."

Keys are generated in your browser and are not sent to our servers.

Next checks:Generate SPFGenerate DMARCCheck deliverability

Specifications & Scope

About DKIM Generator

01 / What it does
Generate secure 2048-bit DKIM keys entirely in your browser without sending private keys across the internet, or verify if existing selectors are published in DNS.
02 / How to use
1. Enter your domain and selector name (e.g. google, k1, default). 2. Click Check Live DNS to test existing records, or Generate to create new keys. 3. Publish the public TXT record at selector._domainkey.yourdomain.com.
03 / Good to know
Private keys never leave your browser. Google and Yahoo mandate 2048-bit RSA keys for bulk email senders.

Got Questions?

Frequently Asked Questions

A selector is an arbitrary string that points to a specific DKIM public key in DNS under selector._domainkey.domain.com. It allows a domain to use multiple sending services without key collisions.
Technical Reference & Standards

Tool Details & Usage Guide

RFC specifications, input expectations, outputs, and edge limitations.

Overview

DomainKeys Identified Mail (DKIM) provides cryptographic authentication for outgoing emails by signing messages with a private key and verifying them against a public key published in DNS.

Major mailbox providers (including Google and Yahoo) mandate 2048-bit RSA DKIM keys for bulk senders to prevent domain spoofing and phishing attacks.


What You Can Do With This Tool

  • Test Existing Selectors: Enter your domain and selector (or pick from common presets like google, default, k1, mail, s1, selector1) and click Check Live DNS to verify your existing record.
  • Generate New RSA Key Pairs: Create a brand new 2048-bit RSA key pair entirely inside your browser sandbox.
  • Publish Ready DNS TXT Record: Copy the formatted host string (<selector>._domainkey.<domain>) and public key record (v=DKIM1; k=rsa; p=...) directly into your DNS control panel.

Security Guarantee

Your private key is generated 100% locally using the standard Web Cryptography API (crypto.subtle). It is never transmitted across the network, logged, or saved to any database. Ensure you copy and safely store your private key in your mail transfer agent (MTA) or transactional email service.