Split
DataTools
Description
Split text precisely into individual parts! Split breaks strings apart at any delimiter - CSV rows, file paths, lists, configuration values and more. Extracting structured data from unstructured text has never been easier!
With options for maximum splits, whitespace handling and multi-character delimiters, you keep full control. Perfect for parsing protocols, configurations and data exchange formats!
Why This Tool Stands Out
- Instant Parsing of CSV, paths, lists
- Any Delimiter - single or multiple characters
- Maximum Splits controllable
- Empty Entries optional filtering
Perfect for:
Developers, system administrators, data engineers and everyone who needs to parse text. Ideal for CSV processing, path manipulation, list processing, configuration parsing and protocol analysis. Perfect for log parsers, data imports, URL processing and environment variable handling!
Workflow support; time savings depend on the task
Instead of going through text manually, searching for delimiters and extracting parts, Split instantly delivers structured arrays - ready for further processing or storage!
JSON Parameters
- text REQUIRED (String)The text to split.
- delimiter REQUIRED (String)The delimiter at which to split the text. Can be one or more characters.
- maxSplits OPTIONAL (Integer)Maximum number of splits. Default: -1 (unlimited)
- removeEmpty OPTIONAL (Boolean)Whether empty entries should be removed from the result. Default: false
- trimItems OPTIONAL (Boolean)Whether whitespace should be trimmed from the elements. Default: true
Example Call
{
"tool": "Split",
"params": {
"text": "Berlin,Hamburg,Munich,Cologne,Frankfurt",
"delimiter": ",",
"maxSplits": -1,
"removeEmpty": true,
"trimItems": true
}
}
Example Usage
Load the text to split - a CSV row, path or list.
Define the delimiter and configure options such as maximum splits.
Process the split parts as an array in your application.
Return Values
The tool returns an object with the following properties:
- parts (Array)
Array of the split text parts - partCount (Integer)
Number of parts created - delimiter (String)
The delimiter used - originalLength (Integer)
Length of the original text - success (Boolean)
True if the split was successful - error (String, optional)
Error message if the operation failed
Related DataTools
Ready for More DataTools?
Discover all our data processing tools for efficient text parsing.
Explore All DataTools