Case Converter
Convert between UPPER, lower, Title, camelCase, snake_case.
About this tool
Case Converter takes any text and re-cases it on demand: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, plus toggles for the rarer dot.case, path/case, and aLtErNaTiNg. Each format is shown in its own row so you can copy the exact one you need without re-running the conversion.
Title and Sentence case use a small stop-words list (English: "and", "of", "the", etc.) so titles read naturally — "The Lord of the Rings", not "The Lord Of The Rings". For camelCase, snake_case, and friends, the tool tokenises the input first (splitting on whitespace, punctuation, and existing case transitions), then re-joins with the target separator and casing rules. Non-ASCII characters are preserved when possible — "über" stays "über" through every transformation.
When to use this tool
- Renaming code identifiers. A function imported as
getUserIdneeds to becomeget_user_idin Python orGET_USER_IDas an env var — paste once, copy the variant. - Normalising data exports. A CSV column called
First Namebecomesfirst_namefor the database andfirstNamefor the API. - Writing consistent titles and headings. Apply Title Case automatically instead of guessing capitalisation rules.
- Generating slugs for URLs. Turn "How to set up Docker" into
how-to-set-up-dockerin one click.
The naming-convention zoo
Different ecosystems prefer different conventions: JavaScript and Java favour camelCase for variables and PascalCase for classes; Python uses snake_case for functions and PascalCase for classes; Ruby uses snake_case for everything except class names; C# uses PascalCase even for methods. Environment variables are universally CONSTANT_CASE. URL slugs are kebab-case. Each convention is unambiguous in its own ecosystem; mixing them is what makes naming hard.Frequently asked questions
What is the difference between camelCase and PascalCase?
getUserName. In PascalCase (sometimes called UpperCamelCase) the first letter is uppercase: GetUserName. JavaScript and Java use camelCase for variables and functions, PascalCase for classes; C# uses PascalCase for both. The only difference is the very first letter.
Why does Title Case leave "of" and "the" lowercase?
Does it work with non-English text?
Can it round-trip safely?
userName to user_name and back gives userName again. Title Case → lowercase → Title Case loses the stop-word handling unless you keep the original. Always keep the source of truth in one canonical case (typically snake_case for storage, camelCase for code, kebab-case for URLs) and derive the others on demand.