> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/data/string/pad-text.md).

# Pad Text

This activity provides padding for the given text based on the given inputs.

### Input

* **Text :** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  Input the text that is to be padded
* **Pad Value:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  Input the value to be padded with the specified text.
* **Total Width:** [`Integer Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  Input the total width of the text after padding.
* **Pad Text From:**\
  Select where the specified text is to be padded.
  * `PadLeft` - Right-aligns the characters in the given text.
  * `PadRight` - Left-aligns the characters in the given text.

### Output

* **Result:** [`String Variable`](/getting-started/rpa-studio/variables.md#string)\
  Stores the padded text in the specified [String ](/getting-started/rpa-studio/variables.md#string)variable.
