Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more

Text Case Types Explained

Different text cases serve different purposes in writing and programming. Here is a reference of all supported case types:

CaseExampleWhen to Use
UPPERCASEHELLO WORLDHeadings, acronyms, emphasis, constants
lowercasehello worldURLs, email addresses, casual text
Title CaseHello WorldBook titles, article headings, proper nouns
Sentence caseHello worldBody text, UI labels, natural prose
camelCasehelloWorldJavaScript/Java variables and functions
PascalCaseHelloWorldClass names, C# methods, Go types
snake_casehello_worldPython variables, Ruby, database columns
kebab-casehello-worldCSS classes, URL slugs, CLI flags
CONSTANT_CASEHELLO_WORLDEnvironment variables, constants in code
dot.casehello.worldJava packages, configuration keys
aLtErNaTiNghElLo WoRlDSarcasm text, memes, stylistic emphasis
iNVERSEhELLO wORLDSwap existing case of each character

Case Conventions in Programming

Programming languages and ecosystems each have their own naming conventions:

How to Convert Case in Code

Quick reference for common case conversions in popular languages:

For camelCase, snake_case, and other developer-oriented conversions, most languages require a library or a custom function that splits words on boundaries and re-joins them with the appropriate separator and capitalization.

Frequently Asked Questions

What is Title Case?

Title Case capitalizes the first letter of each word, except for short articles, prepositions, and conjunctions like "a", "an", "the", "in", "on", "at", "to", "for", "of", "and", "but", and "or" -- unless they are the first or last word. It is the standard style for book titles, article headlines, and headings in most style guides.

What is the difference between camelCase and PascalCase?

Both join words without separators. camelCase starts with a lowercase letter (myFunction), while PascalCase starts with an uppercase letter (MyFunction). Use camelCase for variables and functions in JavaScript/Java, and PascalCase for class names and React components.

How do I convert snake_case to camelCase?

Paste your snake_case text into the input area and click the camelCase button. The tool splits your text on underscores, lowercases the first word, capitalizes the first letter of each remaining word, and joins them. For example, my_variable_name becomes myVariableName.

Is my text sent to a server?

No. All conversion happens locally in your browser using JavaScript. Your text never leaves your device. There is no server-side processing, no upload, and no storage.