How to use the Case Converter
- Type or paste your text. For identifiers, put one name per line.
- Click a case button. The result updates below the buttons; hover a button to see an example.
- Click Copy result, or Use result as input to chain a second conversion.
Text cases and identifier cases
Text cases change capitalization but keep your words, punctuation and line breaks: UPPER CASE, lower case, Title Case, Sentence case, aLtErNaTiNg and iNVERSE. Title Case keeps short words such as of, the and to in lower case unless they come first or last, which follows common English style guides; Sentence case capitalizes the first letter of each sentence and line.
Identifier cases join the words of each line without spaces: camelCase (helloWorld), PascalCase (HelloWorld), snake_case, CONSTANT_CASE, kebab-case and dot.case. The tool detects word boundaries at spaces, underscores, hyphens, dots and at lower-to-upper changes, and treats runs of capitals as acronyms, so XMLHttpRequest becomes xml_http_request.
Where each style is used
camelCase is the usual style for variables and functions in JavaScript and Java, PascalCase for classes and components, snake_case in Python and SQL, CONSTANT_CASE for constants and environment variables, and kebab-case in URLs and CSS class names.
Frequently asked questions
Does it work with accented and non-Latin letters?
Yes for scripts that have upper and lower case, such as Vietnamese, French, Spanish, German, Greek and Cyrillic. Scripts without case, such as Chinese or Japanese, are left unchanged. Some language-specific rules, such as the Turkish dotted I, are not applied.
How are acronyms handled in camelCase?
When converting from a form that has acronyms, such as getHTTPResponse, the words are split as get, HTTP and Response. Converting to camelCase gives getHttpResponse, because each word after the first is capitalized and the rest lowercased.
Why was "of" not capitalized in Title Case?
Common short words (a, an, and, as, at, but, by, for, in, nor, of, on, or, per, the, to, vs, via) stay lower case in the middle of a title, as most English style guides recommend. The first and last words are always capitalized.
Are numbers kept?
Yes. Digits become their own word in identifier cases, so version2Beta becomes version_2_beta in snake_case.
Is my text sent anywhere?
No. The conversion runs in your browser.