Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Fstring%2Ftouppercase.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Fstring%2Ftouppercase.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# `toUpperCase`

## Description

Converts all alphabetical characters in a string to uppercase.

## Syntax

Like many functions in DataPrime, `toUpperCase` supports<!-- --> [two notations](https://coralogix.com/docs/docs/dataprime/language-reference/functions-reference/.md),<!-- --> **function** and **method**. These interchangeable forms allow flexibility in how you structure expressions.

* Function notation
* Method notation

```
toUpperCase(value: string): string
```

```
(value: string).toUpperCase(): string
```

## Arguments

| Name    | Type     | Required | Description                          |
| ------- | -------- | -------- | ------------------------------------ |
| `value` | `string` | **true** | The string to transform to uppercase |

## Example

**Normalize UUIDs for comparison**

A direct comparison would fail due to differing cases. Use `toUpperCase` to normalize them:

### Example data

```
{

    "uuid1": "37367559-35f4-459c-943e-19025765da15",

    "uuid2": "37367559-35F4-459C-943E-19025765DA15"

}
```

### Example query

* Function notation
* Method notation

```
filter toUpperCase(uuid1) == toUpperCase(uuid2)
```

```
filter uuid1.toUpperCase() == uuid2.toUpperCase()
```

### Example output

```
{

    "uuid1": "37367559-35f4-459c-943e-19025765da15",

    "uuid2": "37367559-35F4-459C-943E-19025765DA15"

}
```
