Split text

Split text breaks input apart on a delimiter (any character or string) or by fixed chunk length, optionally trims whitespace around each piece, drops empty pieces, and joins the parts back with your chosen separator. Useful for breaking CSV-ish lists into one item per line, splitting log lines on tabs, chunking long strings into fixed-width pieces for column output, and any general-purpose split-and-rejoin workflow. The transformation runs in your browser; nothing uploads.

Input
Line 1:1 LF cloud_done Saved locally
Result Split Text
0 lines 0 chars

Two split modes for two common shapes

By Delimiter (the default) splits on a character or string you pick. The Delimiter field accepts literal characters (,, ;, |) and standard escape sequences for whitespace (\n for newline, \t for tab, \r for carriage return). Useful for CSV-ish data, tab-separated values, custom-formatted log lines, or anything with a visible separator.

By Length splits the input into fixed-width chunks. Set Chunk Size to the piece length you want; the input is sliced into N-character pieces (the last piece may be shorter). Useful for column-formatting long IDs, breaking up DNA/protein sequences for display, or chunking encoded data into fixed-width lines.

Trim Parts (on by default) trims whitespace around each piece - critical when splitting a, b, c with a comma delimiter, otherwise you get pieces with leading spaces. Drop Empty filters out empty pieces, so a,,b with a comma split returns a, b instead of a, "", b. The Join With dropdown picks the separator for the rejoined output - newline (the default) gives one piece per line.

How to use split text

  1. 1Paste your text into the input panel.
  2. 2Pick a Mode: By Delimiter or By Length.
  3. 3Set the Delimiter (delimiter mode) or Chunk Size (length mode).
  4. 4Toggle Trim Parts and Drop Empty to clean each piece.
  5. 5Pick a Join With separator: newline (default), comma, tab, space, or pipe.
  6. 6Click Copy to copy the split result.

Keyboard shortcuts

Drive TextResult without touching the mouse.

Shortcut Action
Ctrl FOpen the find & replace panel inside the input Plus
Ctrl ZUndo the last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor Plus
EscClose find & replace, or exit fullscreen
Ctrl KOpen the command palette to jump to any tool Plus
Ctrl SSave current workflow draft Plus
Ctrl PRun a saved workflow Plus

What this tool actually does

Custom delimiter (with escape sequences)

The Delimiter field accepts any character or string, plus the standard escape sequences \n (newline), \t (tab), and \r (carriage return) so you can split on whitespace from a single text input. Multi-character delimiters work: setting it to ; (semicolon + space) splits only where both appear together.

Fixed-length chunks

In length mode, Chunk Size = N produces N-character pieces. The last piece keeps whatever trailing characters remain (so a 10-char input split into 3-char chunks gives 3, 3, 3, 1). Useful for column output, fixed-width formatting, and chunking long strings for display.

Trim and drop-empty for clean lists

Trim Parts (default on) strips leading/trailing whitespace from every piece - critical when splitting on commas in human-typed lists. Drop Empty filters out empty pieces produced by adjacent delimiters or trailing separators.

Five join-with options

After splitting, the parts are rejoined with your chosen separator: Newline (one per line, the default), Comma, Tab, Space, or Pipe. Useful for transforming between formats (CSV to TSV, TSV to newline-delimited, etc).

Worked example

Default options: split on ,, trim each piece, drop the empty trailing piece left by the dangling comma, join with newlines.

FAQ

How do I split on a tab character?
Type \t in the Delimiter field. Same for \n (newline) and \r (carriage return). The literal escape sequence in the input gets converted to the actual whitespace character at split time.
How is this different from "commas to newlines"?
Commas to newlines is hard-coded to comma → newline with a thousands-separator escape hatch. Split text is the general-purpose version: any delimiter, any join character, length mode, drop-empty, etc. Use commas-to-newlines for the simple case; use this when you need control.
What if my delimiter is a regex?
This tool treats the delimiter as a literal string, not a regex. For pattern-based splitting (e.g. split on any whitespace, or split on punctuation), use regex replace to insert a marker character first, then split on the marker.
Can I rejoin without a separator?
Not directly - the join-with options are newline, comma, tab, space, and pipe. For empty-string rejoin (concatenation), pick chunk mode with the original chunk size and the same input passes through unchanged.