Output templates
Templates control how items are formatted and wrapped in each batch.Plain text
Simple delimiter-separated output with no special formatting. Items are joined exactly as provided. Example output:- Newline delimiter
- Comma delimiter
- Tab delimiter
- Basic text processing
- Import into spreadsheets
- Unix command pipelines
SQL IN clause
Formats items as a SQL-safe IN clause with proper escaping and parentheses. Template:('item1', 'item2', 'item3')
Example output:
- Input items
- SQL output
Quoted CSV
Formats items as a quoted CSV row with proper escaping for commas and quotes. Example output:Double quotes in values are escaped by doubling them (
" becomes "") per RFC 4180.- Input items
- CSV output
- Import into Excel/Google Sheets
- CSV file generation
- Data interchange
JSON array
Formats items as a pretty-printed JSON array. Example output:JSON output uses 2-space indentation for readability. Special characters are automatically escaped by
JSON.stringify().- API request bodies
- JavaScript/TypeScript code
- Configuration files
Output delimiters
Delimiters only apply to the plain text template. Other templates have fixed formatting.Newline
One item per line. Best for readability and Unix tools.Comma
All items on one line, comma-separated.Tab
All items on one line, tab-separated (TSV format).File extensions
When you download a batch, the file extension matches the template:| Template | Extension | Example filename |
|---|---|---|
| Plain | .txt | splitbox-batch-1.txt |
| SQL IN | .sql | splitbox-batch-1.sql |
| Quoted CSV | .csv | splitbox-batch-1.csv |
| JSON Array | .json | splitbox-batch-1.json |
Template selection guide
Plain text
When to use:
- General-purpose text output
- No special characters to escape
- Simple list processing
SQL IN
When to use:
- Building SQL queries
- Items may contain single quotes
- Need proper SQL escaping
WHERE id IN (...) clausesQuoted CSV
When to use:
- Spreadsheet import
- Items contain commas or quotes
- RFC 4180 compliance required
JSON Array
When to use:
- API requests
- JavaScript/TypeScript code
- Structured data exchange