> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# StringFormat - ComfyUI Built-in Node Documentation

> Complete documentation for the StringFormat node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StringFormat/en.md)

## Overview

This node formats text using Python's string format method. It works like a template where you define a text pattern with placeholders, and then provide values to fill those placeholders. It supports all of Python's format options and features.

## Inputs

| Parameter  | Data Type | Required | Range | Description                                                                                                                 |
| ---------- | --------- | -------- | ----- | --------------------------------------------------------------------------------------------------------------------------- |
| `f_string` | STRING    | Yes      | N/A   | The format string template with placeholders (default: `{a}`). Supports multiline input.                                    |
| `values`   | STRING    | Yes      | N/A   | Dynamic input for providing values to fill placeholders in the format string. Multiple value inputs can be added as needed. |

**Note on `values` input:** This input is dynamic and can be expanded to include multiple named values. Each value input is labeled with a letter (a, b, c, etc.) and corresponds to a placeholder in the format string (e.g., `{a}`, `{b}`, `{c}`). You can add or remove value inputs as needed.

## Outputs

| Output Name | Data Type | Description                                                                             |
| ----------- | --------- | --------------------------------------------------------------------------------------- |
| `STRING`    | STRING    | The formatted text string with all placeholders replaced by their corresponding values. |

***

**Source fingerprint (SHA-256):** `72625287533829a8087687bb47f39bc265aced3d5f43066f615326d729725122`
