Case Converter
Convert text to UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more, line by line.
Runs in your browser. Nothing is uploaded.
How to use the Case Converter
- Type or paste your text, or a list of names with one per line. Load example shows a sample.
- Choose the case you want from Convert to.
- The converted text appears on the right as you type.
- For programming cases (camelCase, snake_case and so on), each line is converted separately.
- Copy the result, download it, or use it as the new input to convert again.
Change case in one step
Retyping text to fix its capitalisation is tedious and error-prone. Maybe a heading was written in capitals, a list of column names needs to become code identifiers, or a sentence was typed with caps lock on. Paste the text, choose a case, and copy the result.
Cases for writing
- Title Case capitalises the main words of a headline while keeping short words like “of” and “the” lowercase, and leaves acronyms such as NASA alone
- Sentence case capitalises only the first letter of each sentence, the style most news sites and apps use for headings
- UPPERCASE and lowercase convert every letter
- aLtErNaTiNg case, for when you need it
Cases for code
Programming languages and file formats each have their own naming conventions. JavaScript and Java use
camelCase for variables and PascalCase for classes, Python and SQL databases favour snake_case, URLs
and CSS use kebab-case, and constants are usually CONSTANT_CASE. Configuration keys often use
dot.case.
The converter splits your input into words intelligently, at spaces, underscores, hyphens and dots, and where a lowercase letter is followed by a capital, so it can convert between any of these styles. Each line is handled separately, which means a whole list of field names converts at once.
Private and Unicode-aware
Conversions follow Unicode case rules, so accented and non-Latin letters work correctly. Everything runs in your browser.
Frequently asked questions
What's the difference between camelCase, PascalCase, snake_case and kebab-case?
They're naming conventions for identifiers without spaces. camelCase starts lowercase and capitalises each next word (firstName). PascalCase capitalises every word (FirstName). snake_case uses lowercase words joined by underscores (first_name), and kebab-case uses hyphens (first-name). CONSTANT_CASE is snake_case in capitals.
How does Title Case decide which words to capitalise?
Every word is capitalised except short words such as a, an, the, and, of, in, on, to and with, unless they're the first or last word. Words already written in capitals, like NASA or API, are kept as they are. Style guides differ slightly, so check titles against the guide you follow.
Does it understand existing camelCase or snake_case?
Yes. Words are split at spaces, underscores, hyphens, dots and at changes from lowercase to uppercase, so parseHTTPResponse becomes parse, HTTP, Response before conversion.
Does it work with accented and non-English letters?
Yes. Upper and lower case conversion uses Unicode rules, so letters like é, ß and ü convert correctly, and words in other alphabets are kept intact.
Is my text saved or uploaded?
Conversion happens in your browser, and nothing is uploaded. Only your chosen case is remembered on this device.
Tutorials
How to convert spreadsheet column names to snake_case
Turn a list of column headers like "First Name" and "emailAddress" into consistent snake_case names for a database or code.