# Case Converter

> Convert text to upper, lower, title and sentence case, and to camelCase, snake_case, kebab-case and a URL slug, all at once.

- Page: https://codethatmoves.com/tools/text/case-converter/
- Site: Code That Moves
- Category: Text tools
- Free, runs in the browser, nothing is uploaded
- Last checked: 2026-11-03

## What it does

- Shows UPPER, lower, Title, Sentence, Capitalize Each Word, alternating (sponge) and inverted case together
- Title Case in AP, APA, Chicago or MLA style, with the first word after a colon or a dash capitalised
- Keeps acronyms and names typed with inner capitals, such as NASA, iOS and McDonald, and capitalises the pronoun I in sentence case
- Code cases: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case and path/case
- A URL slug that removes accents and special characters
- Clean-ups: remove extra spaces, line breaks and blank lines, sort lines, drop duplicate lines, reverse, with a one-step Undo
- Use any result as the new text to chain conversions, with a count of characters, words and lines
- Copy any result with one click, nothing is uploaded

## How to use it

1. Type or paste your text. Every conversion appears at once.
2. Pick the Title Case style your publication follows: AP, APA, Chicago or MLA.
3. Copy the one you need, or use a clean-up button or Use this to change the text itself. Undo puts the text back.
4. For code names, paste a phrase or a name in any case. It is split into words first, so the results are right.

## What it checks and why

Writers need Title Case and sentence case. Developers need camelCase, snake_case and kebab-case. Both groups need the same first step: splitting the text into words correctly. A phrase, a variable name in another case and a file name all hide their words differently. The converter splits on spaces, hyphens, underscores and dots, and also at the points where a lower case letter meets a capital, and it keeps acronyms together, so XMLHttpRequest becomes XML, Http and Request.

Title Case keeps minor words in lower case unless they are the first or last word or follow a colon, and the style guides disagree on which words are minor. AP and APA capitalise every word of four letters or more, so With and From get a capital, and lower-case only short articles, conjunctions and prepositions. Chicago lower-cases prepositions of any length, and MLA also lower-cases so and yet. Words typed with a capital inside, such as NASA, iOS or JavaScript, are kept as typed, unless the whole text is in capitals. Case changes use the browser's Unicode rules, so Ukrainian, German and Turkish letters are handled, and the German sharp s becomes SS in capitals, as the standard says.

The URL slug removes accents, turns the text lower case and joins the words with hyphens, which is what most sites use for a clean address. The clean-up buttons change the text in place: remove extra spaces, join lines, delete blank lines, sort lines, drop duplicates or reverse the text.

## Reference data

| Case | Example |
| --- | --- |
| camelCase | userAccountName |
| PascalCase | UserAccountName |
| snake_case | user_account_name |
| CONSTANT_CASE | USER_ACCOUNT_NAME |
| kebab-case | user-account-name |
| dot.case | user.account.name |

## Specs and sources

- [MDN: String.prototype.toLocaleUpperCase()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase)
- [MDN: String.prototype.normalize()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
- [Wikipedia: Title case rules of the major style guides](https://en.wikipedia.org/wiki/Title_case)
- [Unicode: case mapping FAQ](https://www.unicode.org/faq/casemap_charprop.html)

## Limits

- The style rules work word by word. A word that is a preposition in one title and an adverb in another, such as up in Give Up, cannot be told apart, so words like up, out, off and down are always capitalised.
- Names and acronyms are kept only when they are typed with a capital inside (NASA, iOS). A name typed in lower case, such as nasa, is treated like any other word.
- Some languages have special case rules, such as Turkish dotted and dotless i. The converter uses your browser's language settings.
- The slug keeps letters that have no plain Latin form, such as Chinese or Arabic; it does not transliterate them.

## Questions

### What is the difference between camelCase and PascalCase?

Both join words without separators and capitalise each word. camelCase starts with a lower case letter, as in userName, and PascalCase starts with a capital, as in UserName. Many languages use PascalCase for class names.

### Which title case style should I use?

The one your publication follows. News sites usually use AP, academic papers APA or MLA, and books Chicago. The difference is mostly in prepositions and conjunctions: AP and APA capitalise those of four letters or more, Chicago and MLA keep prepositions in lower case at any length.

### What is the difference between Title Case and Capitalize Each Word?

Title Case leaves small words like of, and and the in lower case, as most style guides ask. Capitalize Each Word puts a capital on every word, including the small ones.

### Which case should I use in a URL?

Use lower case with hyphens, such as my-page-title. Search engines treat a hyphen as a word break, and lower case avoids two addresses that differ only by capitals.

### Does it work with other alphabets?

Yes. The conversions use the browser's Unicode rules, so Cyrillic, Greek, accented Latin and other cased alphabets convert correctly. Alphabets with no case, such as Chinese, stay as they are.
