---
title: "startCase"
description: "Convert a string to Start Case, capitalizing each word and separating them with spaces, ideal for readable titles and headings."
canonical_url: "https://core.mhaibaraai.cn/en/docs/transformers/string/start-case"
---
# startCase

> Convert a string to Start Case, capitalizing each word and separating them with spaces, ideal for readable titles and headings.

## Usage

Converts a string to Start Case format (each word capitalized, separated by spaces).

```ts
import { startCase } from '@movk/core'

startCase('firstName') // => 'First Name'
startCase('first_name') // => 'First Name'
startCase('first-name') // => 'First Name'
startCase('XMLHttpRequest') // => 'XML Http Request'
```

## API

`startCase(str: string): string`

### Parameters

**str** (`string`) *required*: The string to convert.

### Returns

**string**: Returns the string in Start Case format.

## Changelog

See commit history for [src/transformers/string/startCase.ts](https://github.com/mhaibaraai/movk-core/commits/main/src/transformers/string/startCase.ts).

---

- [GitHub](https://github.com/mhaibaraai/movk-core/blob/main/src/transformers/string/startCase.ts)


## Sitemap

See the full [sitemap](https://core.mhaibaraai.cn/sitemap.md) for all pages.
