Skip to content
LookupOwl

TXT record splitter

Cut a long TXT value into the 255-byte strings DNS allows, in the syntax your DNS host expects, or join strings from dig back into one value.

Paste the whole value, or the strings in quotes. Up to 8,192 characters. Nothing you paste is saved.

Without JavaScript your text goes to our server for this one requestWe split it, show the result and don't keep it.
What to do

Split cuts a long value into strings of at most 255 bytes. Join puts strings copied from dig or a zone file back into one value.

More options

Every syntax is shown in the result as a tab. This picks the one that opens first.

Shapes only the zone file line and the live comparison.

Optional TTL for the zone file line, in seconds.

The 255-byte rule

A DNS TXT record holds text in strings, and each string is at most 255 bytes. A record can have several strings, and a reader puts them together with nothing between them. A 2048-bit DKIM key, a long SPF record or a verification token often does not fit in one string, and DNS hosts disagree on who does the cutting: some do it for you, some want quoted strings, some want a zone file block.

The splitter cuts at exactly 255 bytes and never inside a multi-byte character, so a value with an accented letter at the cut still reads back correctly. It shows the result in four syntaxes, as tabs, and you copy the one your host asks for.

The four syntaxes

TabWhat it looks likeFor
Zone file (BIND)name. 3600 IN TXT ( "first" "second" )BIND, NSD, Knot, PowerDNS and any "import a zone" box
Quoted strings"first" "second"Route 53 and panels that show the strings in quotes
JSON list["first", "second"]An API body
Plain valueThe whole value in one pieceHosts that cut a long value for you

If you do not know which your host wants, try the quoted strings first: if the panel rejects the value as too long, the plain value is for hosts that do the cutting themselves, and if it asks for a zone file, use the first tab. Add a record name under More options and the zone file line carries it, with a TTL.

Joining strings back

Choose Join and paste what dig or a zone file shows: quoted strings, a block in parentheses, a line that starts with the name and IN TXT, or a JSON list. The strings are joined with nothing between them, which is how DNS does it. That matters: a tool that adds a space where two strings meet breaks the record when the cut falls inside a word, as it does in an SPF record that is cut in the middle of an address.

The page shows the 30 characters on each side of every seam, and says when the cut falls inside a word. A string over 255 bytes is marked as an error, because a record with such a string would not load.

Where your text goes

With JavaScript on, the value is split in your browser and nothing you paste is saved. A DKIM record is a public key and is public by design, but the tool is careful anyway: it refuses anything that looks like a private key and does not show it back.

Without JavaScript the form sends the value to our server for that one request. We split it, show the result and keep nothing: it is not stored, not logged and not cached, and the page address has no query. The one optional thing that can leave your browser is the record name, and only when you press Compare, to read what DNS serves now. The value is never sent.

Questions people ask

Does my DNS host split the value for me?

Some do, and then you paste the plain value. If your host shows a single box and rejects the value as too long, use the quoted or zone file tab instead.

Why 255 bytes and not 255 characters?

DNS counts bytes. A plain ASCII character is one byte, but an accented letter is two and an emoji is four, so a string with them holds fewer than 255 characters. The splitter counts bytes and moves a cut earlier rather than split a character.

Is it safe to paste a DKIM key here?

A DKIM record holds a public key and is public by design. The page still keeps it in your browser, and it refuses anything that looks like a private key.

How do I check the record once it is published?

Use the DKIM checker for a DKIM key, or read the record back with DNS lookup. Press Compare on the result to see whether DNS serves the same value you split.

Can I make a new DKIM key here?

No, this tool only cuts and joins. The DKIM generator makes a key and writes its record, already split.

Use it from AI, the API or the command line

Every LookupOwl tool is also a free API and an MCP tool, with no key and no account. This one is txt_record_split. Please be kind to the rate limits.

curl
curl "https://lookupowl.com/api/v1/tools/txt-record-split"
MCP
claude mcp add --transport http lookupowl https://lookupowl.com/mcp