Text Case Converter
How to use the Text Case Converter
Paste or type your text in the box, then click the case style you want. The text in the box is replaced with the converted version, and you can click another style or press “Copy result” to copy it. Conversion happens in your browser, so nothing is uploaded.
Available case styles
- UPPERCASE: every letter becomes a capital.
- lowercase: every letter becomes small.
- Title Case: major words are capitalized; short articles, conjunctions and prepositions (a, the, and, of, to, in, on…) stay lowercase unless they start or end the title or follow a colon.
- Sentence case: the first letter of each sentence is capitalized and the rest is lowercase, except acronyms such as NASA and mixed-case names such as iPhone, which are kept.
- camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case: programming styles that join words without spaces, used for variable names, file names and URLs.
Examples: titles, acronyms and code names
- “a guide to the best parks in the city” becomes A Guide to the Best Parks in the City in Title Case.
- “NASA’s new iPhone app” keeps NASA and iPhone as written in Title Case and Sentence case.
- “user first name” becomes userFirstName in camelCase and user_first_name in snake_case.
- “BLOG POST TITLE” becomes blog-post-title in kebab-case, which is handy for URL slugs.
When to change text case
- Fixing text accidentally typed with Caps Lock on
- Formatting headings and titles consistently
- Creating variable names, CSS classes and URL slugs
- Cleaning up copied text before publishing
Frequently asked questions
Does Title Case skip small words like “of” or “the”?
Yes. Articles, short conjunctions and short prepositions stay lowercase in the middle of a title, following the common rule used by most English style guides. They are capitalized when they are the first or last word, or come right after a colon or dash. Longer prepositions such as “about” or “between” are capitalized; a few guides lowercase them too, so adjust by hand if yours does.
Can I undo a conversion?
Yes. Press Undo to bring back the text from before your last conversion or Clear. Only one step is kept, and nothing is saved once you leave the page.
What happens to accents, symbols and other scripts in camelCase?
Accents are removed (café becomes cafe) because many programming languages and URLs handle plain letters more reliably. Symbols and punctuation act as word breaks. Letters from other scripts, such as Hindi or Russian, are kept as they are.
Choosing the right case: a practical reference
Each case style has a home. Using the wrong one is not an error that breaks anything, but it makes writing look inconsistent and code harder to read. Use this table as a quick reference before converting.
| Where | Usual style | Example |
|---|---|---|
| Book, article and video titles | Title Case | The Beginner’s Guide to Saving Money |
| Website headings, buttons and menus | Sentence case | Create your account |
| JavaScript and Java variables and functions | camelCase | totalPrice, getUserName() |
| Classes in most languages | PascalCase | ShoppingCart |
| Python variables, database columns | snake_case | order_total, created_at |
| Constants and environment variables | UPPER_SNAKE_CASE | MAX_RETRIES, API_BASE_URL |
| URL slugs, CSS classes, file names | kebab-case | /how-to-bake-bread, .main-nav |
Every style in this table has its own button above. CONSTANT_CASE is another name for UPPER_SNAKE_CASE.
Title Case and style guides
Most editorial style guides keep short articles, conjunctions and prepositions in lowercase unless they are the first or last word, and this tool follows that rule. Guides disagree about longer prepositions: AP capitalizes words of four letters or more, while Chicago lowercases all prepositions. This tool capitalizes them, so check those words if you follow Chicago.
For example, “a guide to the best parks in the city” becomes “A Guide to the Best Parks in the City”, not “A Guide To The Best Parks In The City”.
Fixing text typed with Caps Lock
Paste the text and press Sentence case. It lowercases everything and capitalises the first letter of each sentence. Then restore capitals for names, places, brands and acronyms such as “India”, “Google” or “PDF”, since no converter can know which words are proper nouns.
For more detail and examples of each convention, see Title Case, Sentence Case, camelCase and snake_case: which to use and when.
Limitations
Acronyms and mixed-case names are kept only when they are already written that way: if the whole text is in capitals, everything is converted. Proper nouns typed in lowercase, such as “london”, cannot be recognized and need to be fixed by hand. See our Disclaimer and Privacy Policy. Browse the full tools directory. Related tools: Word & Character Counter, URL Encoder & Decoder.
Learn more: read our Writing Guides, articles on word limits, text case and comparing lists.