Aa Case Converter
Instantly convert text between seven different case formats: uppercase, lowercase, title case, camelCase, PascalCase, snake_case, and kebab-case.
How to Use the Case Converter
The Case Converter tool instantly converts text between seven different case formats with a single click. Paste or type your text into the left panel, then click any of the conversion buttons in the toolbar. UPPER converts all letters to capitals. lower makes everything lowercase. Title Case capitalizes the first letter of each word. camelCase removes spaces and capitalizes each word after the first, used in JavaScript variable names. PascalCase is like camelCase but with the first word also capitalized, used for class names. snake_case joins words with underscores, common in Python and databases. kebab-case joins words with hyphens, used in CSS class names and URLs. The converted text appears in the right panel and updates live as you switch between formats. Non-alphabetic characters and numbers are preserved as-is. Click Copy to copy the result to your clipboard. This tool is useful for programmers switching naming conventions, writers adjusting title styles, and marketers formatting text for different platforms.
Frequently Asked Questions
What is camelCase?
›
camelCase is a naming convention where multiple words are joined without spaces, with the first word in lowercase and each subsequent word starting with a capital letter. For example, "background color" becomes backgroundColor. It is named after the humps of a camel. camelCase is the standard for variable and function names in JavaScript, Java, and Swift.
What is snake_case?
›
snake_case is a naming convention where words are written in lowercase and separated by underscores. For example, "background color" becomes background_color. It is widely used in Python variable names, Ruby, and SQL column names. It is easy to read and avoids the capitalization ambiguity of camelCase.
What is the difference between camelCase and PascalCase?
›
Both join words without spaces and capitalize each word, but they differ in the first word: camelCase starts with a lowercase letter (myVariableName), while PascalCase (also called UpperCamelCase) starts with an uppercase letter (MyClassName). PascalCase is the standard for class names in most object-oriented languages including C#, Java, TypeScript, and Python.
What is kebab-case used for?
›
kebab-case joins words with hyphens and uses all lowercase. It is widely used in CSS class names (.my-button), HTML attribute values, URL slugs (/blog/my-first-post), and npm package names. It cannot be used as a JavaScript identifier without bracket notation because JavaScript interprets the hyphen as a minus operator.