Case Converter

Developers constantly switch between naming conventions like camelCase, snake_case, and kebab-case, and writers often need to fix capitalization across entire paragraphs. This free tool converts text between eight popular case styles in a single click, saving you tedious manual editing.

How to Use This Tool

  1. Type or paste your text into the input area above. You can paste anything from a single variable name to multiple paragraphs of prose.
  2. Choose a case style — click one of the eight conversion buttons (Uppercase, Lowercase, Title Case, Sentence Case, camelCase, snake_case, kebab-case, or PascalCase) to transform your text instantly.
  3. Review the output — the converted text appears in the read-only output area below the buttons so you can verify it looks correct before copying.
  4. Copy the result — click "Copy result" to copy the converted text to your clipboard, ready to paste into your code editor, document, or CMS.
  5. Clear and start over — click "Clear" to reset both the input and output text areas so you can convert a new piece of text.

What Is Case Conversion?

Case conversion is the process of changing the capitalization pattern of text to match a specific style. In everyday writing, the most common styles are uppercase (all caps), lowercase, title case (major words capitalized), and sentence case (only the first word capitalized). These styles help establish tone, hierarchy, and readability in headings, body text, and user interfaces.

In software development, case conventions serve a different purpose: they encode meaning into variable, function, and file names. JavaScript and TypeScript communities favor camelCase for variables and functions, while PascalCase is the standard for class names and React components. Python developers use snake_case almost exclusively, and CSS class names and URL slugs typically rely on kebab-case. Using the wrong convention can break linters, violate style guides, or simply make code harder to read.

Manually rewriting text from one convention to another is slow and error-prone, especially when converting between programming styles that require splitting on word boundaries. This tool handles all the edge cases for you, including preserving acronyms in title case and correctly splitting compound words when moving between camelCase and snake_case.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?
Both styles remove spaces and capitalize the first letter of each word. The difference is that camelCase keeps the very first letter lowercase (e.g. "myVariableName"), while PascalCase capitalizes the first letter as well (e.g. "MyVariableName"). In most JavaScript and TypeScript codebases, camelCase is used for variables and functions, while PascalCase is reserved for class names and React components.
How does title case handle small words like "the" and "of"?
Title case capitalizes the first letter of every major word while keeping minor words like "the", "of", "and", "in", and "a" in lowercase, unless they appear at the start of the title. This follows the conventions used by most English-language style guides.
Can I convert code variable names?
Yes. The camelCase, snake_case, kebab-case, and PascalCase options are designed specifically for converting between programming naming conventions. Paste a variable name like "my-css-class" and convert it to "myCssClass" or "my_css_class" with a single click.
What is camelCase?
camelCase is a naming convention where spaces are removed, each word after the first is capitalized, and the very first letter remains lowercase. For example, "my variable name" becomes "myVariableName". It is the dominant convention for variable and function names in JavaScript, TypeScript, Java, and many other programming languages.
When should I use snake_case vs kebab-case?
snake_case uses underscores to separate words (e.g. "my_variable_name") and is the standard in Python, Ruby, and Rust. kebab-case uses hyphens instead (e.g. "my-variable-name") and is common in CSS class names, HTML attributes, and URL slugs. The choice typically depends on the language or context you are working in.
Does case conversion affect numbers and special characters?
Numbers and most special characters are preserved as-is during case conversion, since they do not have uppercase or lowercase forms. However, when converting to programming naming conventions like camelCase or snake_case, special characters and punctuation may be stripped or replaced with separators to produce valid identifiers.
What is Title Case?
Title Case capitalizes the first letter of each major word while keeping minor words like "the", "of", "and", "in", and "a" in lowercase, unless they appear at the beginning of the title. It is commonly used for headings, book titles, and article headlines in English-language publishing.