---
title: "to_upper | Grafana Agent documentation"
description: "Learn about to_upper"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# to\_upper

`to_upper` converts all lowercase letters in a string to uppercase.

## Examples

Alloy ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```alloy
> to_upper("hello")
"HELLO"
```
