ComfyUI > Nodes > Basic data handling > split (to data list)

ComfyUI Node: split (to data list)

Class Name

Basic data handling: StringSplitDataList

Category
Basic/STRING
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

split (to data list) Description

StringSplitDataList node splits a string into substrings using a specified separator, with optional maxsplit.

split (to data list):

The StringSplitDataList node is designed to facilitate the division of a string into multiple parts based on a specified separator, effectively transforming a single string into a list of substrings. This node is particularly useful when you need to process or analyze individual components of a string separately. By allowing you to specify a separator, it provides flexibility in how the string is split, whether by commas, spaces, or other characters. Additionally, it supports an optional maxsplit parameter, which limits the number of splits, offering further control over the output. This node is essential for tasks that require breaking down complex strings into manageable pieces, making it a valuable tool for AI artists who need to manipulate text data efficiently.

split (to data list) Input Parameters:

string

The string parameter is the main input for the node, representing the text that you want to split into parts. It is a required parameter and accepts any string value. The default value is an empty string (""), which means if no input is provided, the node will not perform any splitting operation. This parameter is crucial as it determines the content that will be processed by the node.

sep

The sep parameter specifies the separator at which the string will be split. It is an optional parameter, and if not provided or set to an empty string (""), the node defaults to using any whitespace as the separator. This flexibility allows you to split strings based on various delimiters, such as commas, spaces, or custom characters, depending on your needs.

maxsplit

The maxsplit parameter controls the maximum number of splits that the node will perform on the input string. It is an optional integer parameter with a default value of -1, which indicates that there is no limit on the number of splits. If you specify a positive integer, the node will perform at most that many splits, allowing you to control the granularity of the output list.

split (to data list) Output Parameters:

STRING

The output of the StringSplitDataList node is a data list of strings, represented by the STRING type. This output contains all the parts of the original string that were separated based on the specified separator. Each element in the list is a substring, allowing you to access and manipulate individual components of the original string. This output is essential for further processing or analysis of the split data.

split (to data list) Usage Tips:

  • Use the sep parameter to specify the exact character or string you want to use as a delimiter for splitting. This can be particularly useful when dealing with CSV data or other structured text formats.
  • If you only need a certain number of splits, utilize the maxsplit parameter to limit the number of splits performed. This can help in scenarios where you only need to extract a specific part of the string.

split (to data list) Common Errors and Solutions:

Empty string input

  • Explanation: If the string parameter is left empty, the node will not perform any splitting operation, resulting in an empty list.
  • Solution: Ensure that the string parameter is populated with the text you wish to split before executing the node.

Invalid separator

  • Explanation: If the sep parameter is set to a character or string that does not exist in the input string, the entire string will be returned as a single element in the list.
  • Solution: Verify that the sep parameter matches the delimiter present in the input string to achieve the desired split.

split (to data list) Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

split (to data list)