Case Converter
About the Case Converter
This case converter transforms text between every major case in one click: UPPERCASE, lowercase, Title Case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. It is an essential utility for programmers, writers, and anyone who needs to reformat text for a specific style or codebase. Each case has a specific purpose. For writing, UPPERCASE is for strong emphasis and headings, lowercase for natural text, Title Case capitalises the key words of a headline, and sentence case capitalises only the first word and proper nouns. For programming, the choice of case is part of a code style and, often, by a language's built-in. JavaScript, Java, and many languages conventionally use camelCase for variables (helloWorld). Class names use PascalCase (HelloWorld). Python and database columns use snake_case (hello_world). CSS and file names often use kebab-case (hello-world). Constants in many languages use CONSTANT_CASE (MAX_COUNT). Consistency matters because most style guides and linters enforce a single naming convention across a whole codebase. Mixing camelCase and snake_case is one of the quickest and easiest signals of messy, hard-to-maintain code, and it can even cause bugs in case-sensitive languages where a variable written one way does not refer to the same thing as it written another way. For writers, this tool handles the fiddly rules — Title Case capitals the first letter of every word, sentence case handles the punctuation properly, and the converter manages the transitions between cases that people often get wrong. Paste in any text, click the case you want, and copy the result. Perfect for cleaning up names for variables, formatting headers, converting an API response, or fixing a name into a slug.
How to use this tool
- Paste your text into the input text area.
- Click the case you want — UPPERCASE, lowercase, Title Case, sentence case, or a programmer case.
- Read the converted result in the output area.
- Use the Copy button to copy the result to your clipboard.
Common uses
- Formatting headings and titles with title case or sentence case
- Converting variable and class names between coding conventions
- Creating slugs or file names in kebab-case
- Cleaning up mixed-case text in a hurry
Frequently asked questions
What is camelCase?
camelCase capitalises the first letter of each word except the first: helloWorld. Used in JavaScript, Java, and many programming languages for variable names.
What is snake_case?
snake_case uses underscores between lowercase words: hello_world. Used in Python, Rust, and database column names.
What is PascalCase?
PascalCase capitalises the first letter of every word: HelloWorld. Also known as UpperCamelCase. Used for class names in many programming languages.
What is kebab-case used for?
kebab-case joins words with hyphens: hello-world. It is common in CSS class names, file names, slugs, and URLs because it reads cleanly and has no issues with URL encoding.
What is CONSTANT_CASE?
CONSTANT_CASE is all-caps with underscores: MAX_RETRY_COUNT. It is used for constants in programming languages like JavaScript, Python, and Java.