> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/building-blocks/data/format-data.md).

# Format Data

<figure><picture><source srcset="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-f83d5d524658bd7bda101c9ac8deee4825ecb688%2Fformat-data-tile-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-ee0698fbea29c6a59c396c1f799c16aabccccc97%2Fformat-data-tile.png?alt=media" alt="Format Data block" width="279"></picture><figcaption></figcaption></figure>

The **Format Data** building block allows you to format text.

If the value to apply the format action on is empty, the TaskBot will take no action and continue its run.

<figure><picture><source srcset="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-6b50831c5a4e2321816a68520f823b3890ded8ac%2Fformat-data-settings-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fgit-blob-f6e50572c8cc19b3e64fbe3b69766b0d289c1364%2Fformat-data-settings.png?alt=media" alt="Format Data settings" width="555"></picture><figcaption></figcaption></figure>

### Actions

* **Remove word**\
  Example: "Hello world" (remove "w, rld") ⟶ "Hello o"
* **Replace text**\
  Example: "Hello world" (replace "world" with "universe") ⟶ "Hello universe"
* **Shorten content length**\
  Example: "Hello world" (shorten to 5 characters) ⟶ "Hello"
* **Convert to lower case**\
  Example: "HELLO WORLD" ⟶ "hello world"
* **Convert to upper case**\
  Example: "hello world" ⟶ "HELLO WORLD"
* **Capitalize first letters**\
  Example: "Hello world" ⟶ "Hello World"
* **Normalize URL**\
  Examples:
  * [www.wikipedia.org](http://www.wikipedia.org) ⟶ <https://www.wikipedia.org/>
  * wikipedia.org ⟶ <https://www.wikipedia.org/>
  * wikipedia ⟶ error is generated "The URL is not a valid URL and cannot be normalized."
* **Trim white spaces**\
  Example: " Hello world " ⟶ "Hello World"
* **Remove line breaks**\
  Example:
  * "Hello\
    world" ⟶ "Hello World"
* **Remove smileys**\
  Example: "Hello world 🌎" ⟶ "Hello World "
