> 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

Provides a padding for the 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) ![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Input the text that is to be padded
* **Pad Value:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Input the value to be padded with the specified text.
* **Total Width:** [`Integer Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) ![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  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.
