---
schema_version: "1"
id: e3e2f6fd197ce64b25a79ea217f8f81048d2b2c2e74b9c38221c730b426fedda
title: camelize
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-strings-functions-camelize.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-strings-functions-camelize
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c2b7608a65d4532f91e9509293ddba9f303de937bf3ae795d8dbf56f73cace40
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# camelize

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## camelize(String): String

Returns a string in camel case based on underscores in the string.

All underscores are deleted, including any underscores at the beginning of the string.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>text</code></p></td><td><p>The string to convert to camel case.</p></td></tr></tbody></table>

### Example

This example converts a string that contains underscores to camel case.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Strings
output application/json
---
{
  "a" : camelize("customer_first_name"),
  "b" : camelize("_name_starts_with_underscore")
}
```

#### Output

```JSON
{
   "a": "customerFirstName",
   "b": "nameStartsWithUnderscore"
 }
```

## camelize(Null): Null

Helper function that enables `camelize` to work with a `null` value.
