Split string online — delimiters
Break lists, CSV rows, and log lines with preset or custom separators. This is the same operation as split text online utilities and the native .split() method in JavaScript.
100% local processing — your files and data never leave this browser. No uploads, no server storage.
Free · Browser-only · No upload
Split string online or split text online by comma, line, tab, or custom separators. Export as a list, JSON, or array split javascript / array split js literal — plus text file splitter import for CSV and log files.
Split by
Output format
Break lists, CSV rows, and log lines with preset or custom separators. This is the same operation as split text online utilities and the native .split() method in JavaScript.
Choose JavaScript array output to copy a ready-to-paste literal — ideal when you are prototyping array split javascript behavior or teaching array split js without opening devtools.
Import a file instead of pasting — useful as a lightweight text file splitter for exports, config snippets, and data cleanup before spreadsheets or scripts.
Common questions
It uses the same String.split() logic. Choose “JavaScript array” output to copy a literal you can paste into code — the same result as array split javascript or array split js in the console.
Yes. Use Import to load a .txt or .csv file, pick a delimiter (comma for CSV, newline for logs), and copy the split result.
Comma is the default. If your file uses tabs or semicolons, switch the preset — common for European CSV exports.
Consecutive delimiters create empty strings — same as JS split. Turn on “Remove empty parts” to drop them.
No. Splitting runs entirely in your browser.
Use Custom delimiter and paste any string — for example “ | ” or “::”.