# toUpperCase

> This document is the Markdown version of [valibot.dev/api/toUpperCase/](https://valibot.dev/api/toUpperCase/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Creates a to upper case transformation action.

```ts
const Action = v.toUpperCase();
```

## Returns

- `Action` `ToUpperCaseAction`

## Examples

The following examples show how `toUpperCase` can be used.

### Lower case string

Schema that transforms a string to upper case.

```ts
const StringSchema = v.pipe(v.string(), v.toUpperCase());
```

## Related

The following APIs can be combined with `toUpperCase`.

### Schemas

[`any`](/api/any.md), [`custom`](/api/custom.md), [`string`](/api/string.md)

### Methods

[`pipe`](/api/pipe.md)

### Utils

[`isOfKind`](/api/isOfKind.md), [`isOfType`](/api/isOfType.md)
