Skip to content
gohacks.dev
DevOps

DNS TXT Record Splitter

Split a long TXT value such as a DKIM key into 255-byte quoted strings for a zone file, or join quoted strings from dig output back into one value.

Free · No sign-up · Your inputs stay in your browser

Input

Split or join long DNS TXT records

Output

For a zone file

410 characters in 2 strings

One string inside a TXT record holds at most 255 bytes (RFC 1035), so a 2048-bit DKIM key has to be several strings in one record; resolvers hand them back concatenated with nothing in between. That is different from several TXT records, which are separate values. Many DNS panels split for you and some do not, which is why dig output for a DKIM record shows two quoted halves.

Runs in this browser. Nothing you paste is sent to a server.

One record, several strings

A character-string in DNS holds at most 255 bytes (RFC 1035), but a TXT record can hold several, and resolvers return them together for the application to concatenate without separators. That is different from several TXT records at the same name, which are separate values: splitting a DKIM key into two records breaks it.

Provider differences

Route 53, Cloudflare and most panels split long values automatically when you paste them; some older panels and BIND zone files need it done by hand.

Share

Frequently asked questions

Why does my DKIM key fail validation in some DNS panels?
The panel may reject values over 255 characters, or add a space between strings when joining. Paste the pre-split version, and confirm with dig that the joined value is intact.
How do I see the full TXT value with dig?
dig +short TXT name shows each string quoted; join them without spaces to get the value.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools