# Case Converter

> The Case Converter changes the capitalisation of your text in one click: UPPER, lower, smart Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg and inverse.

URL: https://atechcraft.com/case-converter/
Category: Text Tools
Last updated: 2026-12-01
Author: Abdul Moid Khan, ATechCraft

Runs in your browser. Your data never leaves your device.

## How to use the Case Converter

1. Paste or type your text.
2. Click the case you want. The result appears below.
3. Copy the result or download it as a text file.

## What is a case converter?

A case converter changes the capital and small letters in a piece of text without retyping it. This case converter offers eleven styles: UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg case and iNVERSE case. Paste your text, pick a style and copy the result.

Writers use it to fix headings typed with Caps Lock on. Developers use it to turn a phrase like "user first name" into a variable name such as `userFirstName` or `user_first_name`.

## How does each case style work?

| Style | Example | Common use |
| --- | --- | --- |
| UPPER CASE | THE QUICK BROWN FOX | Short labels, acronyms |
| lower case | the quick brown fox | Tags, email addresses |
| Title Case | The Quick Brown Fox of the Year | Headlines, book titles |
| Sentence case | The quick brown fox of the year | Most UI text and headings |
| camelCase | theQuickBrownFox | JavaScript and Java variables |
| PascalCase | TheQuickBrownFox | Class and component names |
| snake_case | the_quick_brown_fox | Python variables, database columns |
| kebab-case | the-quick-brown-fox | URLs, CSS classes, file names |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX | Constants, environment variables |
| aLtErNaTiNg | tHe QuIcK bRoWn FoX | Jokes and memes |
| iNVERSE | swaps every letter's case | Fixing text typed with Caps Lock on |

UPPER and lower case use your browser's built-in Unicode functions, so they work with accented letters (é → É) and other alphabets like Greek and Cyrillic. Scripts without capital letters, such as Urdu, Arabic and Hindi, are left as they are.

## How does smart Title Case decide which words to capitalise?

Style guides such as the Chicago Manual of Style and APA keep short "minor" words in lowercase inside a title. This tool keeps these words lowercase unless they are the first or last word: *a, an, the, and, but, or, nor, for, yet, so* (as conjunctions), *as, at, by, in, of, on, per, to, up, via, vs*.

It also leaves words that already contain capitals in the middle or numbers alone, so "iPhone", "NASA" and "4G" are not changed. Words joined by hyphens are capitalised on both sides: "state-of-the-art" becomes "State-Of-The-Art". Some style guides prefer "State-of-the-Art", so check your house style.

## Worked example

Input (typed with Caps Lock on by mistake):

> hOW TO aPPLY FOR A pAKISTANI pASSPORT oNLINE

- **iNVERSE** gives: *How to Apply for a Pakistani Passport Online*, exactly what was meant.
- **Title Case** leaves words with unusual capitals (like hOW) alone, because they might be brand names. Convert to lower case first, then Title Case gives: *How to Apply for a Pakistani Passport Online*.
- **Sentence case** gives: *How to apply for a pakistani passport online*. Proper nouns like "Pakistani" lose their capital, because the tool can't know which words are names. Fix those by hand.
- **kebab-case**, applied to the lower-case version, gives: `how-to-apply-for-a-pakistani-passport-online`, ready for a URL. (Applied to the mixed-case original, it would split words at every case change, such as `h-ow`.) For shorter, cleaner URLs with accents removed, use the [Slug Generator](https://atechcraft.com/slug-generator/).

## How do programming cases split words?

For camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE, the tool first breaks the text into words at spaces, punctuation and existing case changes. That means you can convert between programming styles directly: `userNameID` → `user_name_id`, and `HTTPServer` → `http_server`. Each line is converted separately, so you can paste a list of field names and convert them all at once.

## Tips

1. **Use Sentence case for UI text.** Many design systems, including Google's Material Design, recommend it because it reads more naturally.
2. **Clean lists before converting.** Remove repeated lines first with [Remove Duplicate Lines](https://atechcraft.com/remove-duplicate-lines/).
3. **Check what changed.** Paste the before and after into the [Text Diff Checker](https://atechcraft.com/text-diff/) for long documents.
4. **Count your heading length** with the [Word Counter](https://atechcraft.com/word-counter/) when writing titles for a page.
5. **Want decorative letters instead?** The [Fancy Text Generator](https://atechcraft.com/fancy-text-generator/) makes Unicode styles like 𝐛𝐨𝐥𝐝 and 𝓈𝒸𝓇𝒾𝓅𝓉.

## Limitations

The converter doesn't know grammar or names, so Sentence case lowercases proper nouns, and Title Case can't tell when "up" or "on" is part of a phrasal verb that some guides would capitalise ("Set Up Your Account"). Special cases in some languages are handled by the browser: for example the German "ß" becomes "SS" in upper case, which can't be reversed exactly. Text with Turkish dotted and dotless "i" may need manual checking.

## Frequently asked questions

### What does smart Title Case do?

It capitalises main words and keeps short words such as a, an, the, and, of and in lowercase unless they start or end the title, which matches common style guides.

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

Both join words without spaces. camelCase starts with a lowercase letter (userName); PascalCase starts with a capital (UserName).

### Does it keep line breaks?

Yes for text cases like UPPER, lower and Title Case. Programming cases treat each line separately.

### Does it work with accented and non-Latin letters?

Yes. It uses your browser’s Unicode-aware upper and lower case functions. Scripts without case, such as Urdu, are left unchanged.
