1---
2layout: docs
3page_title: upper - Functions - Configuration Language
4description: >-
5  The upper function converts all cased letters in the given string to
6  uppercase.
7---
8
9# `upper` Function
10
11`upper` converts all cased letters in the given string to uppercase.
12
13## Examples
14
15```shell-session
16> upper("hello")
17HELLO
18> upper("алло!")
19АЛЛО!
20```
21
22This function uses Unicode's definition of letters and of upper- and lowercase.
23
24## Related Functions
25
26- [`lower`](/docs/job-specification/hcl2/functions/string/lower) converts letters in a string to _lowercase_.
27- [`title`](/docs/job-specification/hcl2/functions/string/title) converts the first letter of each word in a string to uppercase.
28