---
name: "toUpper"
type: command
status: ok
groups: ["Strings"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/toUpper
revid: 308976
updated: 2022-04-21T14:52:14Z
---

# toUpper

*Command · Strings · Arma 3 v0.50 · introduced in Armed Assault v1.09*

## Description

Converts the supplied Unicode string to all uppercase characters. If the string doesn't have characters with [codes](../commands/toArray.md) > 255, use [toUpperANSI](../commands/toUpperANSI.md).

## Syntax

```sqf
toUpper string
```

**Parameters:**

- `string`: [String](../topics/String.md)

**Returns:** [String](../topics/String.md)

## Examples

### Example 1

```sqf
hint toUpper "AaBb1"; // returns "AABB1"
```

## See also

[toString](../commands/toString.md) · [toArray](../commands/toArray.md) · [toLower](../commands/toLower.md) · [toFixed](../commands/toFixed.md) · [toLowerANSI](../commands/toLowerANSI.md) · [toUpperANSI](../commands/toUpperANSI.md)

<sub>Source: [BI Community Wiki — toUpper](https://community.bistudio.com/wiki/toUpper) (revision 308976).</sub>
