---
title: CAPITALIZE
url: https://www.tines.com/docs/formulas/functions/capitalize/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# CAPITALIZE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/capitalize/)*

Makes the first character of text uppercase and converts the remaining characters to lowercase.

**Categories:** Text

## Syntax

```
CAPITALIZE(text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "hello world"
  }
}
```

Formula:

```
CAPITALIZE(my_action.message)
```

Output:

```json
"Hello world"
```

### Example 2: Only the first character of the text is capitalized. Later words are not capitalized.

Input:

```json
{
  "my_action": {
    "message": "hello WORLD"
  }
}
```

Formula:

```
CAPITALIZE(my_action.message)
```

Output:

```json
"Hello world"
```

## Sample actions

```json
{
  "standardLibVersion": "12",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "example": "this is an example. the capitalize function makes the first character of text uppercase and converts the remaining characters to LOWERCASE."
        }
      },
      "position": {
        "x": 615,
        "y": 330
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "CAPITALIZE",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "capitalize": "=CAPITALIZE(my_action.example)"
        }
      },
      "position": {
        "x": 615,
        "y": 450
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
