# `Uncapitalize<StringType>`

> The `Uncapitalize<StringType>` utility type in TypeScript converts the first character of a string literal type to lowercase.

## How do I lowercase the first letter of a string type in TypeScript?

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

- Topic: Utility Types
- Type: utility type

## Example

Wrong:

```ts
type Prop<T> = T extends `get${infer R}` ? R : never;
type P = Prop<'getName'>; // 'Name'
```

Right:

```ts
type Prop<T> = T extends `get${infer R}` ? Uncapitalize<R> : never;
type P = Prop<'getName'>; // 'name'
```

`Uncapitalize` lowercases the first letter, so the getter name maps back to the property 'name'.

## Key points

- The runtime value also gets its first character lowercased, the type alone does not change the string.
- The input is a literal or template literal type, a plain `string` stays `string`.

## Interview questions

### Uncapitalize vs Lowercase: what is the difference?

`Uncapitalize` changes only the first character; `Lowercase` changes the whole string.

### Does Uncapitalize change the runtime value?

No, it only transforms the type. Lowercase the first character of the value yourself.

## Related cards

- [`Capitalize<StringType>`](https://wonderium.dev/ts/capitalize.md)
- [`Lowercase<StringType>`](https://wonderium.dev/ts/lowercase.md)
- [Template Literal Types](https://wonderium.dev/ts/template-literal-types.md)
- [Mapped Types](https://wonderium.dev/ts/mapped-types.md)
- [Literal Types](https://wonderium.dev/ts/literal-types.md)

---

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