Case Converter
Paste text or type directly, click a case format, and copy the converted result. Converts between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more. Instant, private, and free forever.
How to Use the Case Converter
1. Paste or type your text into the input box above. 2. Click the case format you want, from UPPERCASE to camelCase. 3. The output updates instantly as you type; click Copy Output to grab the converted text. The character and word counts update live, so it doubles as a quick word counter.
Worked example: paste hello world example and click Title Case to get Hello World Example. Click snake_case instead and you get hello_world_example. Paste an existing identifier like myVariableName and the tool splits it on the camelCase boundary first, so one click gives you my_variable_name or my-variable-name with no retyping.
What Each Case Format Is For
Different cases exist because different communities settled on different conventions. This is the cheat sheet:
| Case style | Example | Common usage |
|---|---|---|
| camelCase | myVariable | JavaScript/TypeScript variables and function names |
| PascalCase | MyClass | Class names, React components, C# methods |
| snake_case | my_variable | Python and Ruby variables, database column names |
| kebab-case | my-class | CSS classes, HTML attributes, URL slugs |
| CONSTANT_CASE | MY_CONSTANT | Constants, environment variables, enum values |
| Title Case | My Title | Headlines, headings, book and article titles |
| Sentence case | My sentence | Body text, UI labels, descriptions |
| UPPERCASE / lowercase | MY TEXT | Fixing accidental Caps Lock, emphasis, normalization |
The rule of thumb: follow the conventions of the language or style guide you are working in. Using the right case is one of the cheapest ways to make code readable and writing look professional.
Who Uses a Case Converter
Developers renaming identifiers when moving between languages or codebases: a database column in snake_case becomes an API field in camelCase, a component name becomes a CSS class in kebab-case. Writers and editors fixing accidental Caps Lock text or formatting headlines without retyping. Content and SEO teams turning titles into URL-friendly slugs and standardizing heading capitalization across a site. Anyone cleaning text for spreadsheets, documents, or code, where one inconsistent string can break a lookup or a build.
Frequently Asked Questions
How do I change text from uppercase to lowercase?
Paste the text into the input box and click the lowercase button. The tool rewrites every letter at once, which is faster and less error-prone than retyping, especially for long passages.
What is camelCase?
camelCase writes a compound name with no spaces, lowercasing the first word and capitalizing each word after it, like myVariableName. It is the standard for variables and functions in JavaScript, TypeScript, and Java.
What is the difference between camelCase, PascalCase, and snake_case?
camelCase starts lowercase and capitalizes every word after the first (myVariable). PascalCase, also called UpperCamelCase, capitalizes every word including the first (MyVariable). snake_case writes everything lowercase with underscores between words (my_variable). Pick the one your language or style guide prefers: JavaScript uses camelCase for variables, classes use PascalCase, and Python uses snake_case.
When should I use snake_case vs kebab-case?
Use snake_case for Python, Ruby, and database column names. Use kebab-case for CSS class names, HTML attributes, and URL slugs. The choice usually follows the conventions of the language or framework you are working in.
What is CONSTANT_CASE used for?
CONSTANT_CASE (also SCREAMING_SNAKE_CASE) uppercases every letter and separates words with underscores, like MAX_SIZE. It is used for constants, environment variables, and enum values in many programming languages.
Does title case capitalize every word?
In formal title case (AP, Chicago, or APA style), small words like articles, short conjunctions, and short prepositions stay lowercase unless they start or end the title. This tool capitalizes the first letter of every word, which matches most headings but is not strict Chicago or AP style.
Can I convert code variable names between cases?
Yes. The converter splits the input on whitespace, underscores, hyphens, and camelCase boundaries before re-joining the words in the format you pick. Paste myVariableName and one click gives you my_variable_name, my-variable-name, MyVariableName, and every other style.
Is this case converter free?
Yes. It runs 100% in your browser, is free forever, and never sends your text to any server.