DevToolPal
EN

Case Converter

Convert text to UPPER, lower, Title, Sentence case, camelCase, PascalCase, snake_case, kebab-case and more, all at once.

Runs locally, never uploaded

Options

Text

0 chars · 0 B

Result

Result appears here

What it does

The case converter rewrites text in twelve different letter cases at the same time and shows every result in its own row with a copy button. It covers the cases writers use, such as UPPER CASE, lower case, Title Case and Sentence case, and the naming conventions programmers use for variables, constants, files and URLs: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and path/case. There is also aLtErNaTiNg case for when you want to sound sarcastic online.

You do not need to pick a target first. Paste a sentence, a database column name or a list of identifiers and the whole table updates while you type.

How to use

  1. Type or paste text into the input, or click Sample.
  2. Read the result you need from the table and press the copy button next to it.
  3. Keep Convert each line separately on to rename a list of identifiers, one per line. Turn it off to join the whole text into one name.
  4. Turn off Keep short words lowercase if your style guide capitalizes every word in a title.

Example

Three lines of input converted to snake_case and camelCase:

the quick brown fox      →  the_quick_brown_fox      theQuickBrownFox
getHTTPResponseCode      →  get_http_response_code   getHttpResponseCode
user_account_id          →  user_account_id          userAccountId

Which case to use where

  • camelCase: variables and functions in JavaScript, TypeScript and Java, and JSON keys in many APIs.
  • PascalCase: classes, React components, C# methods and type names.
  • snake_case: Python variables and functions, Ruby, and SQL column names.
  • CONSTANT_CASE: constants and environment variables such as MAX_RETRIES.
  • kebab-case: URLs, CSS classes, HTML attributes and file names.
  • dot.case and path/case: configuration keys, translation keys and folder paths.
  • Title Case: headlines, book titles and buttons in English interfaces.
  • Sentence case: most interface text, notifications and normal prose.

Sentence case lowercases everything and then capitalizes the first letter after a period, question mark, exclamation mark or line break. Names and acronyms inside a sentence become lowercase, so check proper nouns before you paste the result.

FAQ

› What is the difference between camelCase and PascalCase?

Both join words without spaces and capitalize each word. camelCase keeps the very first letter lowercase (userName), PascalCase capitalizes it too (UserName). JavaScript variables usually use camelCase, while class and type names use PascalCase.

› How does it split words in an existing identifier?

Spaces, underscores, hyphens, dots, slashes and other punctuation separate words, and so does a change from lowercase to uppercase. Runs of capitals are kept together as an acronym, so getHTTPResponse becomes get, HTTP and Response.

› Which words stay lowercase in Title Case?

With the smart option on, short articles, conjunctions and prepositions such as a, an, the, and, of, in and to stay lowercase unless they start or end the title or follow a colon. Turn the option off to capitalize every word.

› Does it work with accented letters and other alphabets?

Yes. Upper and lower case follow Unicode rules, so letters like é, ß, Greek and Cyrillic convert correctly. Scripts without case, such as Chinese, are left unchanged.

› Is my text sent anywhere?

No. Conversion happens in your browser as you type and nothing is uploaded.