100% local processing — your files and data never leave this browser. No uploads, no server storage.

OnboxTools

Split String Online — Split Text & Array Split JS

Free · Browser-only · No upload

Split String Online

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.

Delimiter & output

Split by

Output format

Parts4
Delimiter,
Formatlines
Text to split
Split result

Split text and JavaScript array split

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.

Array split javascript / array split js

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.

Text file splitter

Import a file instead of pasting — useful as a lightweight text file splitter for exports, config snippets, and data cleanup before spreadsheets or scripts.

More Text Utilities

🏷️
Barcode Generator
🧬
Base64 Encoder
🔡
Case Converter
🎨
Color Picker
Cron Generator
🎨
CSS Minifier
🔎
Find and Replace
🛡️
HTML Entity Encoder
📰
HTML Minifier
📋
Markdown Preview
📱
QR Code Generator
🎲
Random Number
🔍
Regex Tester
↩️
Reverse Text
✂️
Split String
🔁
Text Repeater
📖
Text Viewer
🕐
Unix Timestamp
🔗
URL Encoder
🌐
UTF-8 Encoder
📊
Word Counter

Browse by category

Common questions

Split string FAQ

How is this related to array split in JavaScript?

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.

Can I split a text file?

Yes. Use Import to load a .txt or .csv file, pick a delimiter (comma for CSV, newline for logs), and copy the split result.

What delimiter should I use for CSV?

Comma is the default. If your file uses tabs or semicolons, switch the preset — common for European CSV exports.

Why are some parts empty?

Consecutive delimiters create empty strings — same as JS split. Turn on “Remove empty parts” to drop them.

Is my data uploaded?

No. Splitting runs entirely in your browser.

Can I split on multiple characters?

Use Custom delimiter and paste any string — for example “ | ” or “::”.