Long TXT record splitter (DKIM)

This DKIM record splitter divides a long TXT value, such as a DKIM key, into strings of up to 255 characters for your DNS records, and checks the tags and the key size.

Splitting and checking run in the browser and need JavaScript. A fixed example is shown.

Value to split
Paste the value, for example a DKIM key starting with v=DKIM1. You can paste it with or without quotes, with line breaks, or in split zone file format, inside parentheses. Quoted strings are joined without a space.
Optional, for example default or mail. The selector appears in the signing settings of the mail server or mail provider.
Optional. With a selector and a domain, the full record name is shown.
Split value Characters in the value: 410. Strings: 2, up to 255 characters each.
  1. A DKIM key is published in a TXT record named <selector>._domainkey.<domain>, for example mail._domainkey.example.com. Some control panels take only the part before the domain, for example mail._domainkey.
  2. The value split into strings of up to 255 characters, each in quotes, separated by a space. Most DNS control panels accept this form.
  3. The same strings inside parentheses, for the zone file of a DNS server.
  4. The value with the quotes and line breaks removed, not split. Enter it as is in control panels that split a long value themselves.
Value check Tags: 3. Errors: 0. Warnings: 0. Estimated key size: 2,048 bits (RSA).
Findings
  • No syntax problems were found.
DKIM key breakdown
  1. v=DKIM1

    The record version. Every DKIM record starts with v=DKIM1.

  2. k=rsa

    Key type: rsa. The default is rsa.

  3. p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCg...

    The public key in Base64, 392 characters long.

Everything runs in your browser; nothing is sent or stored.

  • Paste the value in the "TXT record value" field, with or without quotes. You can also paste a value that is already split into strings.
  • Enter the selector and the domain to get the full record name.
  • In the "Split value" section, choose the form that suits your DNS control panel: quoted strings, zone file format, or one continuous value.
  • One string in a TXT record is limited to 255 characters, but a record can hold several strings, and the receiving server joins them without a space. So splitting does not change the value.
  • Copy the form you need by clicking "Copy" next to it. After saving the record, check that the published value matches the original.
  • The "Value check" section shows the findings, the estimated key size, and an explanation of each tag in the DKIM key.

Why long TXT records are split

In a TXT record, each string is limited to 255 characters, but one record can hold several strings. The value of a 2048-bit RSA DKIM key is about 400 characters long, so it has to be split into several strings in the same record.

Which form to enter in your DNS control panel

DNS control panels handle long values in different ways. Some accept the value as quoted strings separated by a space, and others split a long value themselves and expect one continuous value without quotes. Zone file format, in which the strings appear inside parentheses, is meant for editing the zone file on a DNS server directly. In a control panel that expects one continuous value, entering quoted strings may save the quotes as part of the value and break the key.

DKIM key structure

A DKIM key is published in a TXT record whose name is made up of the selector, the label _domainkey, and the domain, for example mail._domainkey.example.com. The selector lets you publish several keys for the same domain, for example a separate key for each service that sends mail on behalf of the domain. The record value is made up of tags in the form tag=value, separated by semicolons. The receiving mail server uses the public key in the p tag to verify the signature in the DKIM-Signature header of the message.

Common DKIM key tags

  • v=DKIM1The record version. When the tag is present, it must be the first tag.
  • k=rsaAn RSA key, the most common type. When the tag is missing, the key type is rsa.
  • k=ed25519An Ed25519 key. An Ed25519 key is much shorter than an RSA key and fits in a single string.
  • p=An empty value means the key was revoked, and signatures made with it will fail verification.
  • t=yTesting mode. Some receiving servers treat signatures in testing mode leniently.
  • h=sha256The hash algorithm allowed in the signature. An h tag that does not include sha256 is flagged with a warning.
Did you know?

With our business email service, an SPF record and DKIM signing are set up automatically for your business domain.

Business email

Long TXT record splitter (DKIM) FAQ

Does splitting change the DKIM key?

No. Splitting does not change the DKIM key, because the strings are joined without a space when the record is read. After saving the record, you can use the "DNS record lookup" tool to check that the published value matches the original value.

What happens to line breaks and spaces in the pasted value?

When the value is pasted in quotes, only the content inside the quotes is included, and line breaks, spaces, and parentheses outside the quotes are left out. In a value without quotes, each line break becomes a single space. In a DKIM key, the spaces and line breaks inside the p tag are also removed, because they are not part of the key, and a message about this appears in the "Split value" section.

Can I split a value that is not a DKIM key?

Yes. You can split any long TXT record value, for example a long SPF record. When the value is not a DKIM key, the only check is whether it contains non-ASCII characters.

What is the recommended key size?

The recommended size for an RSA key is 2048 bits. A key shorter than 2048 bits is flagged with a warning, and a key shorter than 1024 bits is flagged as an error, because receiving mail servers do not verify signatures made with such a short RSA key. The key size is calculated from the public key in the p tag.

Where do I find the selector?

The selector appears in the signing settings of your mail server or mail provider. You can also find it in the headers of a signed message, in the s tag of the DKIM-Signature header.

Is there a limit on the length of the value?

Yes. The value field accepts up to 8,000 characters, and the value is split into as many strings as needed. Some control panels limit the total length of a TXT record and may reject an RSA key longer than 2048 bits.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement