---
title: "Pad Text"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/text/padtext
markdown: https://docs.nodetool.ai/nodes/nodetool/text/padtext.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/padtext.md
---

# Pad Text

**Type:** `nodetool.text.PadText`

**Namespace:** `nodetool.text`

## Description

Pads text to a target length.
    text, pad, length, format

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` |  | `` |
| length | `int` |  | `0` |
| pad_character | `str` | Single character to use for padding | ` ` |
| direction | `enum` | Where padding should be applied | `right` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [nodetool.text](./) namespace.
