Skip to content

Text Tools

Case Converter

Eight common case styles in one click each, handy for cleaning up copy or formatting variable names.

  • Free
  • No sign-up
  • Runs in your browser

Guide

What are text case styles?

A case style is a rule for how letters are capitalized and how words are joined. Ordinary prose uses sentence case and title case, where the choice of capitals signals the start of a sentence or the importance of a word in a heading. Programmers use another family of styles to write names that cannot contain spaces: camelCase, PascalCase, snake_case, and kebab-case.

Switching between them by hand is tedious and easy to get wrong, especially for long strings. A converter applies the same rule to the whole text at once, so you can fix a pasted block of shouting capitals or turn a plain phrase into a variable name in one click.

When changing case actually saves you time

Writers use case conversion to repair text that arrived in the wrong format: an all-caps email subject, a heading typed in lowercase, or a spreadsheet column with inconsistent capitalization. Title case and sentence case are the usual targets for cleaning up headlines and captions.

Developers use it to move names between conventions. A database column in snake_case may need to become a camelCase property in JavaScript, a class name in PascalCase, or a kebab-case file name or URL slug. Typing a phrase in normal words and converting it is quicker than retyping with the right separators.

How to convert text case with this tool

  1. Type or paste your text into the "Your text" box. It starts with a sample sentence you can replace.
  2. Click one of the eight style buttons: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, or kebab-case. The selected button is highlighted, and UPPERCASE is selected by default.
  3. Read the converted text in the Result box. It updates as you keep typing or switch styles.
  4. Click Copy to put the result on your clipboard.

Only one style is shown at a time, and your original text is never changed, so you can try each style and compare.

Things to check after converting

The tool applies simple rules, so review the output before using it. Title Case capitalizes the first letter of every word and lowercases the rest, which means small words like "of" or "and" are capitalized too, and acronyms such as "NASA" become "Nasa". Sentence case lowercases everything first, so proper nouns and acronyms in the middle of a sentence also need to be restored by hand.

For camelCase and PascalCase, the text is lowercased first and then rebuilt from the word boundaries, so an input that is already camelCase will lose its inner capitals. snake_case and kebab-case do detect a lowercase letter followed by a capital, so "myVariableName" becomes "my_variable_name". Characters outside the basic English letters and digits, such as accented letters, are treated as separators in the programming styles, so check those results. To change specific words rather than the whole text, Find and Replace can be more precise.

Frequently asked questions

Can I use more than one case style at once?

No. The tool shows the result for the one style you have selected. Click a different button to see another style, and your original text stays unchanged.

Why did my acronyms turn into lowercase letters?

Title Case, Sentence case, and the programming styles lowercase letters before rebuilding the text, so acronyms are not preserved. Fix them by hand in the result.

Which style should I use for variable names?

It depends on the language or project convention. camelCase is common for JavaScript variables, PascalCase for class names, snake_case for Python and many databases, and kebab-case for URLs and file names.

Is my text uploaded?

No. The conversion is done by code running in your browser, and the text is not sent to a server.