~ / text / case-converter

Aa Case Converter

Type once and get nine cases side by side. Paste several lines to convert each line separately — perfect for renaming a whole list of variables.

options
Options
UPPERCASE · all caps
lowercase · all lowercase
Title Case · headlines & titles
Sentence case · normal sentences
camelCase · JS variables & functions
PascalCase · classes & components
snake_case · Python & database columns
kebab-case · URLs & CSS classes
CONSTANT_CASE · constants & env vars

How to use the case converter

  1. Type or paste a sentence, a headline or a variable name. All nine boxes below update at the same time.
  2. Press copy on the box you need — or simply click the result — to copy it.
  3. Paste several lines to convert each line on its own. For example, turn a list of database columns into camelCase field names in one go.

Which case should I use?

CaseExampleTypical use
camelCaseuserProfileImageJavaScript, TypeScript and Java variables and functions; JSON keys
PascalCaseUserProfileImageClasses, React components, C# methods and types
snake_caseuser_profile_imagePython variables and functions, Ruby, SQL table and column names
kebab-caseuser-profile-imageURL slugs, CSS classes, file names, npm package names
CONSTANT_CASEUSER_PROFILE_IMAGEConstants and environment variables (.env)
Title CaseThe Lord of the RingsBook, article and song titles; headlines; buttons
Sentence caseThe lord of the ringsBody text, UI labels, Google-style headings

How words are split

The programming cases (camel, Pascal, snake, kebab, CONSTANT) first break the input into words, then glue them back together with the right rule. Spaces, underscores, hyphens, dots and other symbols are word boundaries — and so is a lowercase-to-uppercase change. That means maxRetryCount, max_retry_count, max-retry-count and Max Retry Count are all recognized as the same three words and can be converted into each other freely.

Title Case rules

English titles capitalize the major words and keep short function words lowercase: articles (a, an, the), short prepositions (of, in, on, to, for, with…) and coordinating conjunctions (and, but, or, nor). The first and last words are always capitalized. Style guides differ in the details — AP and APA capitalize every word of four letters or more (so "With" and "From" get a capital), while Chicago lowercases all prepositions regardless of length — so review important headlines. Turn off the "keep a, of, the… lowercase" option to capitalize every word (sometimes called Start Case).

Title Case and Sentence case lowercase the rest of each word, so NASA can become Nasa. Turn on "Keep acronyms in caps" to leave words of two or more capital letters untouched. Proper nouns with unusual casing (iPhone, GitHub, eBay) should be checked by hand. Nothing you type leaves your browser.

FAQ

What is the difference between camelCase and PascalCase?
Both join words together and capitalize each word, but camelCase starts with a lowercase letter (userName) while PascalCase capitalizes the first word too (UserName). JavaScript uses camelCase for variables and PascalCase for classes and React components.
How do I convert snake_case to camelCase?
Paste your snake_case names, one per line. The camelCase box shows every line converted — copy them all at once with the copy button.
How do I change uppercase to lowercase in Excel or Google Sheets?
Use =LOWER(A1), =UPPER(A1) or =PROPER(A1). PROPER capitalizes every word, similar to Title Case but without the exceptions for a, of, the and other small words.
Which case is best for URLs?
Lowercase kebab-case (for example /case-converter/). Google recommends hyphens rather than underscores to separate words in URLs, and lowercase avoids duplicate-URL problems on case-sensitive servers.
Should "is" and "are" be capitalized in a title?
Yes. "Is", "are", "be" and other verbs are capitalized in title case even though they are short. Only articles, coordinating conjunctions and (depending on the style guide) short prepositions stay lowercase.

Related tools