---
title: "toLowerCase Formula Function: Convert Text to Lowercase in Nodinite Search Fields"
description: The toLowerCase Formula function returns content in lowercase, from the message body, a context property, or another function such as jsonPath. Use it to normalize case in Search Field values.
---

# :fa-function: Formula - toLowerCase

The `toLowerCase` [Formula][] function returns the content with every letter in lowercase.

![Lowercase the customer name of an Order-to-Cash event with toLowerCase, then compare it without caring about case, animated walkthrough (7.12)][hero]  
*Animated walkthrough: on the JSON Order Received event of order ORD-10005 in the [Order-to-Cash demo][], `toLowerCase(jsonPath('$.customer.name', body))` returns `tailspin toys`. Nested in [equal][], `equal('tailspin toys', toLowerCase(jsonPath('$.customer.name', body)))` returns `true`, whatever case the system logged.*  

## :fa-code: Syntax

```text
toLowerCase(content)
```

### Parameters

|Parameter|Required|Description|
|---|---|---|
|`content`|Yes|The text to convert: [body][], [context][], or the result of another function, such as [jsonPath][].|

### Returns

The content in lowercase. When the content holds several values, each value is converted and returned as its own [Search Field][] value. When the content has no value, nothing is returned.

## :fa-list-ol: Examples

### Example 1: Lowercase the message body

#### Input

```text
JAVA
```

#### Formula

```text
toLowerCase(body)
```

#### Result

```text
java
```

![Test Expression tab: toLowerCase(body) returns java for the message body JAVA (7.12)][1]  
*The whole message body is returned in lowercase.*  

### Example 2: Lowercase a context property

#### Input

|Key|Value|
|---|---|
|`id`|`JAVASCRIPT`|

#### Formula

```text
toLowerCase(context('id'))
```

#### Result

```text
javascript
```

![Test Expression tab: toLowerCase(context('id')) returns javascript for the context value JAVASCRIPT (7.12)][2]  
*The value of the context property `id` is converted; the message body isn't used.*  

### Example 3: Lowercase several values from a JSON body

#### Input

```json
[
    { "name" :"HELLO"},
    {"name" :"WORLD"}
]
```

#### Formula

```text
toLowerCase(jsonPath('$..name',body))
```

#### Result

```text
hello
world
```

![Test Expression tab: toLowerCase of a jsonPath result returns hello and world (7.12)][3]  
*`jsonPath` returns two values, and `toLowerCase` converts each one: two unique matches.*  

## :fa-circle-info: Notes

* Use `toLowerCase` for case normalization: when systems log the same value in different cases, such as `North` and `NORTH`, `toLowerCase(context('Region'))` stores one spelling, `north`. [toUpperCase][] does the same in uppercase.
* To compare without caring about case, lowercase the content first: `equal('tailspin toys', toLowerCase(jsonPath('$.customer.name', body)))`. [equal][] itself is case-sensitive.
* `toLowerCase` follows the culture rules of the server, like [toUpperCase][].

## :fa-hand-point-right: Next Steps

* :fa-magnifying-glass-plus: [Add or manage Search Field][]  
* :fa-flask: [Test Your Expression][]  
* :fa-hard-drive: [Add or manage Log View][]  

## :fa-link-horizontal: Related Topics

* :fa-unlock: [base64decode][]  
* :fa-lock: [base64encode][]  
* :fa-language: [convert][]  
* :fa-arrow-up-a-z: [toUpperCase][]  
* :fa-function: [Formula][]  
* :fa-scroll: [Formula language rules][]  
* :fa-puzzle-piece: [Search Field Expressions][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Log/Search%20Fields/Plugins/Formula/Convert/tolowercase_BodyAsContent.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Log/Search%20Fields/Plugins/Formula/Convert/tolowercase_ContextAsContent.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Log/Search%20Fields/Plugins/Formula/Convert/tolowercase_FormulaFuntionAsContent.png

[Add or manage Log View]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Add%20or%20Manage%20Log%20View.md
[Add or manage Search Field]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Add%20or%20manage%20Search%20Field.md
[base64decode]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Convert/base64decode.md
[base64encode]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Convert/base64encode.md
[body]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Source/body.md
[Context]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Source/context.md
[convert]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Convert/convert.md
[equal]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Logical/equal.md
[Formula]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Overview.md
[Formula language rules]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Overview.md#fa-scroll-formula-language-rules
[hero]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Log/Search%20Fields/Plugins/Formula/Convert/Formula_ToLowerCase.gif
[jsonPath]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Extract/jsonPath.md
[Order-to-Cash demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data.md
[Search Field]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Test Your Expression]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Add%20or%20manage%20Search%20Field.md#test-your-expression
[toUpperCase]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Convert/toUpperCase.md