Interweave Text Fragments

Merge two or three text fragments into one by alternating their letters, words or sentences.

Interweave Text Fragments

This tool interweaves two or three fragments of text so their letters, words or sentences take turns in one output.
Enter your text, pick a mode and a length policy, then press the "Interweave" button.
The merged result appears in the "Output" panel on the right - live as you type in the live mode.


Load an example

Input

Text Fragment 1

Text Fragment 2

Fragment 3

Off by default; when on, all three fragments take turns in every round

Mode

Alternates single characters from each fragment
Alternates whole words from each fragment (default)
Alternates whole sentences (splits after . ! ?), one round of interwoven sentences per line

Strips spaces and line breaks before interweaving; off by default so the output keeps its spacing. Works in all three modes.

Length policy & separator

Placed between every interleaved unit (e.g. " - ")
Ready to interweave text.

Output

Interwoven result

Overview

Text interweaving (also called interleaving or braiding) is the art of merging two or more pieces of text so their units take turns in the result - first a piece of fragment 1, then a piece of fragment 2, and so on, round after round. The "Interweave Text Fragments" tool is a free online utility that does this for you: paste up to three fragments, choose whether the turns alternate characters, whole words or whole sentences, and the combined text appears instantly.

It is useful for light obfuscation (the woven text is hard to skim but fully recoverable), typographic and experimental writing (braided prose, stitched captions, alternating-voice poems), and data tasks such as zipping two parallel word lists into one string. A length policy covers fragments that are not the same length, and an optional separator can be placed between every interleaved unit.

The tool was modeled on the classic two-way interleave pattern used by merge and zip utilities - alternating units from each fragment round by round - and extended with a three-way mode, three length policies and a custom separator. Everything runs locally in your browser: your text never leaves your device, nothing is uploaded, and the tool is free with no account required.


What This Tool Does

Read both (or all three) fragments, split each into units - single characters in letters mode, whole words in words mode (the default) or whole sentences in sentences mode - and then emit one unit at a time in a repeating round-robin: fragment 1's first unit, fragment 2's first unit, (fragment 3's first unit), fragment 1's second unit, and so on until the length policy tells it to stop. The woven result is shown in the "Output" field with a count of the interwoven units.

Because the output is plain text produced with JavaScript, it can be pasted anywhere - documents, chat apps, spreadsheets or code editors - and the original fragments can always be reconstructed by de-interleaving, so nothing is lost.


How to Use This Tool

1. Add your fragments: Paste or type them into "Fragment 1" and "Fragment 2", or use "Load an example" to try a sample.

2. Pick the mode: "Interweave by words" (the default) alternates whole words; "Interweave by letters" alternates single characters; "Interweave by sentences" alternates whole sentences. The Ignore Spaces switch (off by default) strips spaces and line breaks from the fragments before interweaving, in any mode.

3. Set the length policy and separator: The policy decides what to do when fragments have different lengths (the remainder is appended by default), and the separator is optional text placed between every interleaved unit.

4. Interweave the text: Click the "Interweave" button - or just keep typing, since "Live mode" is on by default. Copy or download the result, and use "Clear & Reset" to start over.


Examples

Every example below loads its own fragments and options - click "Try it", then press the "Interweave" button.

1. Interweave two words by letters

Two equal-length words take character turns: the first letters of each, then the second letters, and so on.

Input
Fragment 1: Riverbed
Fragment 2: Stardust
Output
RSitvaerrdbuesdt

2. Interweave two sentences by words

Words of the two fragments alternate: first word of each, second word of each, and the leftover tail carries on.

Input
Fragment 1: autumn leaves drift along the riverbank
Fragment 2: cold winds gather behind old barns
Output
autumn cold leaves winds drift gather along behind the old riverbank barns

3. Stop at the shortest fragment

Fragment 1 has 7 words, fragment 2 only 4. With the "Stop at the shortest" policy the weave halts after the fourth round and fragment 1's last words are dropped.

Input
Fragment 1: autumn leaves drift along the riverbank
Fragment 2: cold winds gather behind
Output
autumn cold leaves winds drift gather along behind

4. Loop a shorter fragment

Fragment 2 is only four letters. With the "Loop shorter fragments" policy it restarts from its beginning every cycle until the eight-letter fragment 1 is used up.

Input
Fragment 1: Riverbed
Fragment 2: Star
Output
RSitvaerrSbteadr

5. Add a separator

A separator is placed between every interleaved unit - handy in word mode for readable braided text.

Input
Fragment 1: autumn leaves drift
Fragment 2: cold winds gather
Output
autumn - cold - leaves - winds - drift - gather

6. Three-way interweave

Switch on "Enable a third fragment" and three words take character turns in a round-robin.

Input
Fragment 1: Dawn
Fragment 2: Noise
Fragment 3: Wind
Output
DNWaoiwinnsde

7. Interweave two mini paragraphs by sentences

With "Interweave by sentences" the fragments are split on their sentence-ending punctuation and whole sentences take turns: the first sentence of each fragment interwoven on one line, the second sentences on the next line, and so on.

Input
Fragment 1: The sun sets. Birds fly home.
Fragment 2: Lights fade. Night arrives.
Output
The sun sets. Lights fade.
Birds fly home. Night arrives.

Features & Options

Fragments 1 & 2 (required): The two text fields whose content is interwoven. Their output order is fixed - fragment 1's units always come first in every round. An empty fragment can still be used: then the other fragment's units simply pass through one by one, separated by the woven rounds.

Fragment 3 (optional): Switch on "Enable a third fragment" for a three-way interweave. With the letters "Dawn", "Noise" and "Wind" the rounds alternate "DNWaoiwinnsde" - first letters D, N, W, then second letters a, o, i, and so on.

Interweave by letters: Alternates single characters. "Riverbed" and "Stardust" become "RSitvaerrdbuesdt".

Interweave by words (default): Alternates whole words, split on any whitespace. "autumn leaves drift" and "cold winds gather" become "autumn cold leaves winds drift gather".

Interweave by sentences: Alternates whole sentences, one round per line: the first sentences of all fragments are woven together on one line, then the second sentences on the next line, and so on. The fragments "The sun sets. Birds fly home." and "Lights fade. Night arrives." become two lines - "The sun sets. Lights fade." and then "Birds fly home. Night arrives.".

Ignore Spaces (off by default): Removes spaces and line breaks from the fragments before interweaving, in all three modes. With the switch off (the default) the output keeps its spacing - words and sentences stay separated and the result stays readable. Switch it on only when you want everything fused together with no spacing at all, e.g. the plain run "RSitvaerrdbuesdt" in letters mode.

Length policy - Append the remainder (default): When a fragment runs out of units, the longer fragment simply continues with its remaining units in a row. "autumn leaves drift along the riverbank" and "cold winds gather behind" give "autumn cold leaves winds drift gather along behind the riverbank" - the last four rounds contain fragment 1's words alone.

Length policy - Loop shorter fragments: An exhausted fragment restarts from its beginning and keeps taking turns until the longest fragment is fully consumed. "Riverbed" and "Star" give "RSitvaerrSbteadr" - "Star" cycles twice.

Length policy - Stop at the shortest: The weave stops as soon as any fragment runs out, and all remainders are dropped. The fragments "autumn leaves drift along the riverbank" and "cold winds gather behind" give "autumn cold leaves winds drift gather along behind".

Separator (default: none): Optional text placed between every interleaved unit. In words mode, if you leave it empty the words are still joined with a single space; in sentences mode the sentences within a line are joined with it too, so it splits each round's sentences inside the line. A separator of " - " turns "autumn leaves drift" together with "cold winds gather" into "autumn - cold - leaves - winds - drift - gather".

Live mode (on by default): Re-weaves the fragments after every keystroke or option change so the output is always current. Switch it off to convert only when you press the "Interweave" button.

Load an example: Loads a pair of sample sentences into the inputs with matching options so you can test the tool instantly in sentences mode.

Copy & Download: "Copy" puts the output on your clipboard for pasting elsewhere; "Download" saves it as a text file.

Interweave button: The central action - it weaves the fragments with the chosen mode, length policy and separator and writes the result to the "Output" field.

Clear & Reset: Clears all three fragment fields and the output, and resets the tool to its initial state.


When to Use This Tool?

✅ Lightly obfuscate a short message so it looks like gibberish to a skimming eye but is trivial to scrub out again by reversing the weave.

✅ Create braided typography for posters, usernames and experimental poetry - alternating the words or characters of two fragments produces text no normal writer would write.

✅ Zip two parallel word lists into one alternating line - a quick, manual "zip" for lists you stripped out of two columns or half-tables.

✅ Generate alternated test data - stitch two sample strings together when you need one merged string whose every second unit comes from each source.


FAQs

FAQ 1: What happens if my fragments are different lengths?
Answer: That is what the length policy is for. "Append the remainder" (default) adds the longer fragment's leftover units after the woven part; "Loop shorter fragments" restarts the exhausted fragment and keeps alternating; "Stop at the shortest" ends the weave at the shortest fragment and drops the remainders.

FAQ 2: Is the interwoven text reversible?
Answer: Yes. With equal-length fragments (or the "Loop" policy) you can recover the originals by picking every output unit back apart in the same round-robin order the tool used. With "Append the remainder" the tail belongs wholly to the longer fragment - split the output at the point where the single-side rounds start and you have both fragments back.

FAQ 3: Why is my words-mode output one long run of letters?
Answer: Because the Ignore Spaces switch is on and the separator is empty: all whitespace is stripped before interweaving and the words are fused into one string. Switch Ignore Spaces off (it is off by default) and the words are joined with a normal space again.

FAQ 4: Can I interweave more than two fragments?
Answer: Yes. Enable the "third fragment" switch and all three take turns in every round: fragment 1, fragment 2, fragment 3, fragment 1 again, and so on.

FAQ 5: What does the separator do exactly?
Answer: It is inserted between every two interleaved units of the result - not appended at the ends. It is most useful in words mode (e.g. " - " between words); in letters mode it would appear between every character, so use it with care.

FAQ 6: Is my text private?
Answer: Yes. The tool runs entirely in your browser with JavaScript. Your fragments are never uploaded to or stored on our servers.


Tools Worth Trying

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.