---
title: strings.toTitle() function
description: strings.toTitle() converts all characters in a string to title case.
url: https://docs.influxdata.com/flux/v0/stdlib/strings/totitle/
estimated_tokens: 764
product: Flux
version: v0
---

# strings.toTitle() function

-   Flux 0.18.0+
-   View InfluxDB support

`strings.toTitle()` converts all characters in a string to title case.

#### toTitle vs toUpper

The results of `toTitle()` and `toUpper()` are often the same, however the difference is visible when using special characters:

```no_run
str = "ǳ"

strings.toTitle(v: str) // Returns ǲ
strings.toUpper(v: str) // Returns Ǳ
```

##### Function type signature

```js
(v: string) => string
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### v

(Required) String value to convert.

## Examples

### Convert characters in a string to title case

```js
import "sampledata"
import "strings"

sampledata.string()
    |> map(fn: (r) => ({r with _value: strings.toTitle(v: r._value)}))
```

#### Related

-   [strings.toUpper() function](/flux/v0/stdlib/strings/toupper/)
-   [strings.toLower() function](/flux/v0/stdlib/strings/tolower/)
-   [strings.title() function](/flux/v0/stdlib/strings/title/)
