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

ComfyUI Node: split (to LIST)

Class Name

Basic data handling: StringSplitList

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 LIST) Description

StringSplitList node divides a string into substrings using a specified separator for flexible data processing.

split (to LIST):

The StringSplitList node is designed to facilitate the division of a string into multiple parts based on a specified separator. This node is particularly useful when you need to break down a string into a list of substrings, allowing for more granular data manipulation and analysis. By leveraging this node, you can efficiently manage and process strings by splitting them at designated points, which is especially beneficial in scenarios where data is stored in a delimited format. The node's ability to handle optional parameters like the separator and maximum number of splits provides flexibility, making it adaptable to various string processing needs.

split (to LIST) Input Parameters:

string

This parameter represents the input string that you wish to split. It is the primary data that the node will process, and it defaults to an empty string if not specified. The string is the source from which the substrings will be extracted based on the specified separator.

sep

The sep parameter defines the separator at which the input string will be split. If this parameter is not specified or is set to an empty string, the node defaults to using any whitespace as the separator. This flexibility allows you to split strings based on custom delimiters or standard whitespace, depending on your needs.

maxsplit

This parameter determines the maximum number of splits that will be performed on the input string. By default, it is set to -1, which means there is no limit on the number of splits. You can specify a positive integer to limit the number of splits, which can be useful when you only need a certain number of parts from the string.

split (to LIST) Output Parameters:

LIST

The output of the StringSplitList node is a LIST of strings. This list contains the substrings that result from splitting the input string at the specified separator. Each element in the list represents a distinct part of the original string, allowing for easy access and manipulation of individual components.

split (to LIST) Usage Tips:

  • Use the sep parameter to specify custom delimiters when working with strings that are not separated by whitespace.
  • Adjust the maxsplit parameter to control the number of splits, which can be useful for extracting specific parts of a string without processing the entire input.

split (to LIST) Common Errors and Solutions:

Separator not specified

  • Explanation: If the separator is not specified, the node defaults to using whitespace as the separator.
  • Solution: Ensure that you specify a separator if you need to split the string based on a specific character or sequence.

Invalid maxsplit value

  • Explanation: Providing a non-integer value for maxsplit can cause errors.
  • Solution: Ensure that the maxsplit parameter is set to an integer value, with -1 indicating no limit on splits.

split (to 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 LIST)