Skip to content

Case Converter

Convert text between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case, CONSTANT_CASE, and PascalCase.

Case Converter tool

Loading...

Example

Input: hello world example, Convert To: camelCase

Result: helloWorldExample

The words are joined with the first word lowercase and every later word capitalized. The same input gives hello_world_example in snake_case and hello-world-example in kebab-case.

The Same Phrase in Every Case

CaseOutput
UPPER CASETHE QUICK BROWN FOX
lower casethe quick brown fox
Title CaseThe Quick Brown Fox
Sentence caseThe quick brown fox
camelCasetheQuickBrownFox
PascalCaseTheQuickBrownFox
snake_casethe_quick_brown_fox
kebab-casethe-quick-brown-fox
CONSTANT_CASETHE_QUICK_BROWN_FOX

Input: "the quick brown fox".

  1. Paste or type the text you want to convert into the input area.
  2. Choose a style in the Convert To menu: UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case, CONSTANT_CASE or PascalCase.
  3. Read the converted text in the output area.
  4. Click the copy button to copy the result.
  5. Pick another style to compare results without typing your text again.

Nine Text Cases and When to Use Each

This case converter changes text into nine styles: UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Paste your text, pick a style from the menu, and the result appears at once, ready to copy.

The first four styles only change letters, so spaces and punctuation stay where they are. Title Case capitalizes the first letter of every word, even short ones like "of" and "the". Sentence case capitalizes the first letter of the text and the first letter after a period, question mark, exclamation mark or line break. It cannot tell that "paris" is a name, so check proper nouns after you convert.

The other five styles are for code and file names. The tool splits your text into words at spaces, punctuation and each switch from a small letter to a capital. Then it joins the words in the new style. So "getUserName" becomes get_user_name in snake_case, and "HTTPResponse code" becomes http_response_code. Apostrophes are dropped, so "don't stop" turns into dontStop in camelCase. Each line is converted on its own, which means you can paste a whole list of names at once.

Need a web address rather than a variable name? The Text to Slug Generator also strips accents and symbols. To fix repeated words before you convert, use Find and Replace.

Frequently Asked Questions

Both join words with no spaces and start each word with a capital letter. The only difference is the first letter. camelCase starts with a small letter, as in myVariableName. PascalCase starts with a capital, as in MyVariableName. Many languages use camelCase for variables and functions and PascalCase for class and component names.
No. This tool capitalizes the first letter of every word, including short words such as "a", "and", "of" and "the". AP, Chicago and most other style guides keep some of those short words lowercase unless they start the title. If you follow one of those guides, convert first and then lowercase the minor words by hand.
Common conventions are: camelCase for variables and functions in JavaScript, and PascalCase for its classes. Python uses snake_case for variables and functions, PascalCase for classes and CONSTANT_CASE for constants, as set out in its PEP 8 style guide. CSS class names, HTML attributes and URLs usually use kebab-case. Always follow the style your project already uses.
In UPPER, lower, Title and Sentence case, numbers and symbols stay exactly where they are. In the five code styles, symbols and spaces become word breaks and numbers are kept as words. For example, "version 2 release!" becomes version_2_release in snake_case and version2Release in camelCase.

Related Tools

Word Counter and Character Counter

Count words, characters, sentences, and paragraphs in your text. Includes reading time and speaking time estimates.

Text and Writing

Text to Slug and URL Generator

Convert any text into a clean, URL-friendly slug. Handles special characters and accented Latin letters automatically.

Text and Writing

Find and Replace

Find and replace text with regular expressions, capture groups, case-sensitive matching, and a live match count.

Text and Writing

Text to Binary Converter

Convert text to binary and binary back to text. Supports ASCII and UTF-8 encoding with space-separated bytes.

Text and Writing

ASCII Art Text Generator

Convert text to ASCII art in Standard, Banner, Block, Big, Slant, and Small font styles for eye-catching displays.

Text and Writing

Letter Counter and Frequency Analyzer

Analyze letter frequency with counts and percentages. Visualize character distribution and find the most used letters.

Text and Writing