ComfyUI > Nodes > ComfyUI-LogicUtils > UUID Generator

ComfyUI Node: UUID Generator

Class Name

SystemUUIDGenerator

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils 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

UUID Generator Description

Generates unique 36-character UUIDs for projects, ensuring distinct identifiers for elements.

UUID Generator:

The SystemUUIDGenerator node is designed to create a universally unique identifier (UUID), which is a 36-character string that is randomly generated to ensure uniqueness. This node is particularly useful when you need to generate unique identifiers for various elements in your projects, such as session IDs, transaction IDs, or any other scenario where a unique identifier is required. The primary goal of this node is to provide a simple and efficient way to generate UUIDs, leveraging the randomness provided by the system to ensure that each generated UUID is distinct. This can be especially beneficial in applications where maintaining uniqueness is critical, such as in distributed systems or databases.

UUID Generator Input Parameters:

length

The length parameter determines the number of characters in the generated UUID string. By default, this is set to 36, which is the standard length for a UUID. However, you can specify a shorter length if needed, with a minimum of 1 and a maximum of 36. Adjusting the length allows you to tailor the UUID to fit specific requirements, such as when space is limited or when a shorter identifier is sufficient. It's important to note that reducing the length may increase the likelihood of collisions, where two UUIDs might be the same, so it should be used with caution.

UUID Generator Output Parameters:

STRING

The output of the SystemUUIDGenerator node is a STRING, which represents the generated UUID. This string is a sequence of alphanumeric characters that serves as a unique identifier. The UUID is typically used to uniquely identify objects or entities within a system, ensuring that each one can be distinctly referenced. The uniqueness of the UUID is crucial in applications where duplicate identifiers could lead to errors or inconsistencies, such as in database entries or network communications.

UUID Generator Usage Tips:

  • Use the default length of 36 for standard UUIDs to ensure maximum uniqueness and compatibility with systems expecting standard UUID formats.
  • If you need a shorter identifier, adjust the length parameter carefully, keeping in mind the potential for increased collision risk with shorter UUIDs.

UUID Generator Common Errors and Solutions:

Invalid length value

  • Explanation: The length parameter must be an integer between 1 and 36. Providing a value outside this range will result in an error.
  • Solution: Ensure that the length parameter is set within the valid range. Double-check the input to confirm it is an integer between 1 and 36.

UUID generation failure

  • Explanation: This error might occur if there is an issue with the system's randomness source or if the UUID library fails to generate a UUID.
  • Solution: Verify that the system's randomness source is functioning correctly. If the problem persists, consider restarting the application or checking for updates to the UUID library.

UUID Generator Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
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.