This node shortens text by cutting it off at a specified maximum length. It takes any input text and returns only the first part, up to the number of characters you set. It is a simple way to ensure text does not exceed a certain size.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| --- | --- | --- | --- | --- |
| `text` | The text string to be truncated. | STRING | Yes | N/A |
| `max_length` | Maximum text length. The text will be cut off after this many characters (default: 77). | INT | Yes | 1 to 10000 |

## Outputs

| Output Name | Description | Data Type |
| --- | --- | --- |
| `string` | The truncated text, containing only the first `max_length` characters from the input. | STRING |

> 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/TruncateText/en.md)

---
**Source fingerprint (SHA-256):** `b23c92af425be8f7b15d793bbe7f321cab6f7f3137a995bb9724948ae00145e4`
