# Text Case Converter

> Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case and more, in any language, line by line. Free.

Canonical: https://cromagnon.app/tools/case-converter
Last updated: 2026-10-26

- Category: Text
- Formats: TEXT
- Use it: https://cromagnon.app/tools/case-converter (free, runs in the browser)

## What it does

Type or paste text and see it in fifteen cases at once: UPPERCASE, lowercase, Title Case (with small words like “of” and “the” kept lower, as style guides do), Capitalize Each Word, Sentence case, and the programmer cases camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, Train-Case and path/case, plus iNVERSE and aLtErNaTiNg. Click a result to copy it, or put it back in the box to keep editing.

## How to use it

1. Type or paste your text.
2. Find the case you need in the list on the right.
3. Click it to copy, or press ↺ to replace your text with it.
4. Tick Keep acronyms to leave words like NASA, PDF and USA in capitals.

Tip: Fix text typed with Caps Lock on in one click: choose Sentence case. Each sentence starts with a capital, and the word “I” stays a capital letter.

## The writing cases

- **UPPERCASE**: Every letter capital. Good for short labels and headings; long passages in capitals are hard to read and look like shouting.
- **lowercase**: Every letter small, useful for cleaning email lists, tags and file names.
- **Title Case**: Major words capitalised, small words (a, an, the, and, but, or, for, of, on, in, to, at, by, via…) kept lower unless they are the first or last word or follow a colon: “The Lord of the Rings: The Return of the King”. This follows the common rules of AP, Chicago and APA style.
- **Capitalize Each Word**: Every word starts with a capital, including small words: “A Tale Of Two Cities”. Some brands and YouTube titles use this style.
- **Sentence case**: Only the first word of each sentence and each new line is capitalised. Most style guides (and Google's own) recommend it for headings, buttons and menus because it reads more naturally.

## The programmer cases

The tool splits words wherever they are joined: spaces, punctuation, underscores, dashes and capital letters inside camelCase. So myVariableName becomes my_variable_name and parseHTTPResponse becomes parse_http_response. Each line is converted on its own, so you can paste a whole list of names at once.

- **camelCase**: userFirstName: variables and functions in JavaScript, Java, C# and Swift, and JSON keys.
- **PascalCase**: UserFirstName: class names, React components and C# methods.
- **snake_case**: user_first_name: Python variables, database columns and Ruby.
- **CONSTANT_CASE**: USER_FIRST_NAME: constants and environment variables.
- **kebab-case**: user-first-name: URLs, CSS class names, file names and command-line options.
- **dot.case and path/case**: user.first.name for config keys and package names; user/first/name for paths.
- **Train-Case**: User-First-Name: HTTP headers such as Content-Type.

## Title case rules in practice

Style guides agree on the basics: capitalise the first and last word and all nouns, verbs, adjectives and adverbs; keep articles, short conjunctions and short prepositions lower. They differ on details: AP capitalises prepositions of four or more letters (With, From), Chicago lowercases all prepositions, and APA capitalises every word of four letters or more. The tool keeps a common list of short words lower; check your publication's style for words like “with”, “from” and “into”.

Hyphenated words get a capital after the hyphen (Well-Known, Long-Term), which is what Chicago and AP do in headlines.

## Languages and special letters

Conversion follows Unicode rules, so accented and non-Latin letters work: élan becomes Élan, straße becomes STRASSE in capitals, and Cyrillic and Greek change case properly. Scripts without capital letters, such as Arabic, Urdu, Hindi, Chinese and Japanese, are left as they are. Turkish has a dotted and dotless i; if exact Turkish capitals matter, check words with i after converting.

## Change case in other apps

- **Microsoft Word**: Select the text and press Shift+F3 to cycle through lowercase, UPPERCASE and Capitalize Each Word.
- **Excel and Google Sheets**: =UPPER(A1), =LOWER(A1) and =PROPER(A1) (which capitalises every word).
- **VS Code**: Run Transform to Uppercase, Lowercase, Title Case or Snake Case from the command palette.
- **Google Docs**: Format → Text → Capitalization.

## Naming conventions by language

- **JavaScript and TypeScript**: camelCase for variables and functions, PascalCase for classes and React components, CONSTANT_CASE for fixed values.
- **Python**: snake_case for variables and functions, PascalCase for classes, CONSTANT_CASE for constants (PEP 8).
- **CSS and HTML**: kebab-case for class names, ids and custom properties (--main-color).
- **SQL databases**: snake_case for table and column names, so they work without quotes in PostgreSQL and MySQL.

## Tips

- **Keep brand names right**: Tick Keep acronyms so NASA, HTML and iPhone-style names you typed in capitals aren't flattened; fix mixed-case brands like iPhone by hand.
- **Clean imported lists**: Paste a column of names typed in random capitals and choose Capitalize Each Word, then check names like McDonald and O'Brien.
- **Make URL slugs**: kebab-case is close to a URL slug; for accents, stop words and length limits use the Slug Generator.
- **Rename variables**: Paste a list of database columns in snake_case and copy them back as camelCase for your JavaScript code.

## Questions

### What is the difference between Title Case and Sentence case?

Title Case capitalises the main words (The Best Way to Learn), Sentence case only the first word and names (The best way to learn).

### Which words stay lower case in a title?

Articles (a, an, the), short conjunctions (and, but, or, nor, so, yet) and short prepositions (at, by, for, in, of, on, to, up, via), unless they start or end the title.

### How do I convert camelCase to snake_case?

Paste the names and copy the snake_case result: the tool splits words at each capital letter.

### Does it keep line breaks?

Yes. Every line is converted separately, so lists stay lists, even for camelCase and snake_case.

### What is alternating case?

aLtErNaTiNg capitals, used for jokes and memes. It doesn't change spaces or punctuation.

### Why is NASA shown as Nasa?

Title and Sentence case lowercase the rest of every word. Tick Keep acronyms to leave words already in capitals as they are.

### Is my text uploaded?

No. Everything runs in your browser; what you paste never leaves your device and nothing is stored on a server.

## Related

- [Slug Generator](https://cromagnon.app/tools/slug-generator)
- [Word Counter](https://cromagnon.app/tools/word-counter)
- [Text Extractor](https://cromagnon.app/tools/text-extractor)
- [Line Sorter & Duplicate Remover](https://cromagnon.app/tools/line-sorter)
- [All tools](https://cromagnon.app/tools)
