Convert the Case of a String!

Convert a string to your desired case format!
  • Sentence case
  • UPPER CASE
  • lower case
  • Title Case
  • Start Case
  • aLtErNaTiNg cAsE
String
Result

Convert the Case of a String!

Convert a string to your desired case format!

A Start Case converter: every space-separated word gets a capital first letter and lowercase for the rest. Unlike Title Case, short words like of and the are capitalized too, with no exceptions.

Use it to give short names a uniform look, such as form labels, table headers or menu items, or to tidy a list of names typed in lowercase, turning kim minji into Kim Minji.

How to use

  1. Click the Start Case tab above the input (URL /converter/string/startcase).
  2. Paste labels or names into the String box, one per line.
  3. Copy Result. Lines and the number of spaces stay exactly as in the input.

Example

Input (Text)
first name
date of birth
shipping address of the customer
Output (Start Case)
First Name
Date Of Birth
Shipping Address Of The Customer

of and the, which Title Case would keep lowercase, became Of and The. This is what you want when every word in a label list should follow the same rule.

Supported features

  • For each word separated by whitespace (spaces, tabs, line breaks), the first letter is uppercased and the rest lowercased.
  • No article or preposition exceptions, so the result is fully predictable.
  • Runs of spaces and line breaks are preserved.

Use cases

Turning field names into UI labels

Convert a list of field names written out with spaces, like first name or date of birth, into admin table headers (First Name, Date Of Birth). For first_name style names, swap underscores for spaces with find-and-replace before pasting.

Cleaning up lists of names

Names entered in all lowercase or all caps through a survey or sign-up form can be unified to the Kim Minji pattern.

Notes and limitations

  • Only whitespace separates words: hello_world becomes Hello_world and e-mail becomes E-mail.
  • Capitals inside a word are lowercased: McDonald → Mcdonald, iPhone → Iphone, O'Neil → O'neil, so review name data.
  • A word starting with a symbol, like (test), has no letter to capitalize first and stays as is.

FAQ

Is this the same as lodash's _.startCase?

No. lodash splits fooBar and foo_bar into words and replaces separators with spaces to produce Foo Bar; this tool splits on whitespace only and leaves _ and - in place.

When should I use this instead of Title Case?

For names rather than sentences, such as short labels, buttons and table headers, capitalizing every word looks more consistent. For headline-style titles, Title Case reads more naturally.