Case Converter
Change the case of any text with one click: fix CAPS LOCK accidents, format headlines in Title Case, or turn phrases into camelCase, snake_case and other programming styles. Works line by line and runs in your browser.
How it works
- Paste your textAnything from a single variable name to a whole document.
- Pick a caseClick a button; the result updates as you keep typing.
- Copy or chainCopy the result, or use it as the new input to apply another conversion.
- Multi-line safeProgramming cases convert each line separately, so a list of names stays a list.
The cases explained
- UPPERCASE / lowercase: every letter changed, everything else kept.
- Title Case: the first letter of every word capitalised, the way many headlines and book titles are written.
- Sentence case: only the first letter of each sentence (and the word "I") capitalised. Most style guides now prefer it for headings because it reads more naturally.
- camelCase: words joined, each after the first capitalised. Used for variables and properties in JavaScript, Java and JSON APIs.
- PascalCase: like camelCase but starting with a capital. Used for class and type names in most languages.
- snake_case: lowercase words joined with underscores. Common in Python, Ruby and database column names.
- kebab-case: lowercase words joined with hyphens. Used in URLs, CSS class names and file names.
- CONSTANT_CASE: uppercase with underscores, for constants and environment variables.
Smart word splitting
For the programming cases, the converter splits words at spaces and punctuation and also at existing case changes, so "userAccountId", "user_account_id" and "User Account ID" all become the same set of words. Acronyms are kept together: "API_RESPONSE" becomes "apiResponse" in camelCase. Letters with accents and non-Latin scripts are supported.
Automatic Title Case capitalises every word. Formal styles such as AP or Chicago keep short words like "and", "of" and "the" lowercase; adjust those by hand if your publication requires it.
Frequently asked questions
Is my text sent anywhere?
No. Conversion happens in your browser.
Can I convert JSON keys?
This tool converts plain text. To rename every key in a JSON document, use JSON Key Renamer.
Why did my acronym change in Title Case?
Title Case lowercases the rest of each word, so "NASA" becomes "Nasa". Fix acronyms by hand afterwards.
What is the difference between camelCase and PascalCase?
Only the first letter: camelCase starts lowercase, PascalCase starts uppercase.