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

# Pad

Pads a value with the specified string from the left, right or both sides

```mathematica
Pad("24", "0", 4, SideOption.RIGHT) → "2400"
Pad("40", "n", 5, SideOption.LEFT) → "nnn40"
```

#### Inputs

`Pad(string, padString, length, [sideOption])`

* `string` - A text value
* `padString` - The text to pad `string` with
* `length` - Targer length
* `[sideOption]` - LEFT, RIGHT or BOTH sides option, ex. SideOption.RIGHT
