---
title: "__changeCase"
description: "JMeter __changeCase function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/changecase/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __changeCase

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__changeCase).*

The change case function returns a string value which
case has been changed following a specific mode.
Result can optionally be saved in a JMeter variable.

| Name | Required | Description |
| --- | --- | --- |
| String to change case | Yes | The String             which case will be changed |
| change case mode | No | The mode to be used to change case, for example for `ab-CD eF`:              - `UPPER` result as AB-CD EF - `LOWER` result as ab-cd ed - `CAPITALIZE` result as Ab-CD eF              :::note `change case mode` is case insensitive :::             If no mode is given, `UPPER` is used as default. |
| Name of variable | No | The name of the variable to set. |

Examples:

```bash
\${__changeCase(Avaro omnia desunt\, inopi pauca\, sapienti nihil,UPPER,)}
```

will return `AVARO OMNIA DESUNT, INOPI PAUCA, SAPIENTI NIHIL`

```bash
\${__changeCase(LABOR OMNIA VINCIT IMPROBUS,LOWER,)}
```

will return `labor omnia vincit improbus`

```bash
\${__changeCase(omnibus viis romam pervenitur,CAPITALIZE,)}
```

will return `Omnibus viis romam pervenitur`

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
