# tf.strings.lower

<br />

Converts all uppercase characters into their respective lowercase replacements.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.strings.lower`](https://www.tensorflow.org/api_docs/python/tf/strings/lower)

<br />

    tf.strings.lower(
        input: Annotated[Any, _atypes.String],
        encoding: str = '',
        name=None
    ) -> Annotated[Any, _atypes.String]

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Basic text classification](https://www.tensorflow.org/tutorials/keras/text_classification) - [Image captioning with visual attention](https://www.tensorflow.org/text/tutorials/image_captioning) - [Neural machine translation with attention](https://www.tensorflow.org/text/tutorials/nmt_with_attention) - [Warm-start embedding layer matrix](https://www.tensorflow.org/text/tutorials/warmstart_embedding_matrix) - [word2vec](https://www.tensorflow.org/text/tutorials/word2vec) |

#### Example:

    tf.strings.lower("CamelCase string and ALL CAPS")
    <tf.Tensor: shape=(), dtype=string, numpy=b'camelcase string and all caps'>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | A `Tensor` of type `string`. The input to be lower-cased. |
| `encoding` | An optional `string`. Defaults to `""`. Character encoding of `input`. Allowed values are '' and 'utf-8'. Value '' is interpreted as ASCII. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `string`. ||

<br />