# `Lowercase<StringType>`

> The `Lowercase<StringType>` utility type in TypeScript converts each character of a string literal type to lowercase.

## How do I convert a string type to lowercase in TypeScript?

The intrinsic string manipulation type that converts every character of a string literal type to lowercase.

- Topic: Utility Types
- Type: utility type

## Example

Wrong:

```ts
type Env = 'DEV' | 'PROD';
type EnvKey = 'dev' | 'prod';
```

Right:

```ts
type Env = 'DEV' | 'PROD';
type EnvKey = Lowercase<Env>;
```

`Lowercase` derives the lowercase union, so the two lists cannot drift apart.

## Key points

- The runtime value is also converted with `toLowerCase()`, the type alone does not change the string.
- The input is a literal or template literal type, a plain `string` stays `string`.

## Interview questions

### Does Lowercase change the string at runtime?

No, it is a type-level transform only. Use `toLowerCase()` on the value.

### Does Lowercase work on a union?

Yes, it maps over each member, so `Lowercase<'A' | 'B'>` is `'a' | 'b'`.

## Related cards

- [`Uppercase<StringType>`](https://wonderium.dev/ts/uppercase.md)
- [`Uncapitalize<StringType>`](https://wonderium.dev/ts/uncapitalize.md)
- [Template Literal Types](https://wonderium.dev/ts/template-literal-types.md)
- [Literal Types](https://wonderium.dev/ts/literal-types.md)
- [.toLowerCase()](https://wonderium.dev/js/string-to-lower-case.md)

---

- Level: [TypeScript](https://wonderium.dev/ts.md)
- HTML version: https://wonderium.dev/ts/lowercase
- Last updated: 2026-11-25
