Skip to content

Case Converter

Change text to UPPERCASE, lowercase, Title Case or Sentence case, or turn lines into camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE names. Copy the result with one click.

  • Free, no sign-up
  • Runs in your browser
  • Text
Up to 1,000,000 characters. The result updates as you type, and your text never leaves your browser.

Read the guide Text Case Styles Explained: Title Case, Sentence Case, camelCase and More

How to use the case converter

Paste or type your text, then choose a style in Convert to. The converted text appears next to the input as you type, and you can switch styles as often as you like without losing your original. Press Copy result to copy the output, or Clear to start over.

Your text stays on your device

The conversion runs in your browser. Nothing you type is sent to our server or saved, so it is fine to convert private notes, emails or source code.

Writing styles

  • UPPERCASE makes every letter a capital, useful for headings and labels.
  • lowercase makes every letter small, handy for cleaning up text typed with Caps Lock on.
  • Title Case capitalizes the first letter of every word and makes the rest small. Contractions stay intact, so "don't" becomes "Don't". Small words such as "of" and "the" are capitalized too; adjust them by hand if your style guide keeps them small.
  • Sentence case makes everything small except the first letter of each sentence and each line. The word "I" on its own is capitalized as well. Names and brands are not detected, so check them afterwards.

Programming styles

For code, each line becomes one name. Spaces, hyphens, underscores and other symbols split the words, apostrophes are removed, and existing camelCase words are split at their capital letters, so XMLHttpRequest is read as XML, Http and Request.

  • camelCase: words joined, every word after the first capitalized. Common for JavaScript variables.
  • PascalCase: like camelCase but the first word is capitalized too. Common for class names.
  • snake_case: small letters joined with underscores. Common in Python and databases.
  • kebab-case: small letters joined with hyphens. Common in URLs and CSS class names.
  • CONSTANT_CASE: capital letters joined with underscores, used for constants and environment variables.

Worked example

The line user account ID becomes userAccountId in camelCase, UserAccountId in PascalCase, user_account_id in snake_case, user-account-id in kebab-case and USER_ACCOUNT_ID in CONSTANT_CASE. In Title Case it reads "User Account Id", which shows why acronyms may need a manual touch.

Fun styles

Alternating case switches between small and capital letters, starting small, and skips spaces and symbols. Inverse case swaps every letter, so capitals become small and small letters become capitals.

Good to know

  • Letters from other alphabets, such as é, ü or Greek and Cyrillic letters, are converted too.
  • Converting to lowercase and back cannot restore the original capitals, so keep your source text until you are happy with the result.
  • You can convert up to 1,000,000 characters at a time.

Frequently asked questions

What is the difference between Title Case and Sentence case?

Title Case capitalizes the first letter of every word, as in many headlines. Sentence case only capitalizes the first letter of each sentence, the way normal text is written, which many websites now prefer for headings.

How do I convert several variable names at once?

Put each name on its own line and choose camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE. Each line is converted on its own and empty lines are kept, so the list stays in the same order.

Why did my acronym change?

Title Case and the programming styles make every letter after the first small, so NASA becomes Nasa and ID becomes Id. This keeps names consistent, but you may want to fix acronyms by hand where your style requires capitals.

Is my text stored anywhere?

No. The text is converted by JavaScript in your browser and never sent to a server. It disappears when you close or reload the page.