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

# 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"
```
