Case Converter
UPPER, lower, Title and Sentence case, plus camelCase, snake_case and kebab-case for code.
Text
Convert to
Programmer cases (camelCase, snake_case…) convert each line separately, so a pasted list of names converts in one go.
Runs in your browser — nothing you enter leaves this device.
About this tool
What it does
The case converter rewrites text in the capitalisation you need, in one click. For writing, it does UPPER CASE, lower case, Sentence case and Title Case — with small words like “of” and “the” kept lowercase except at the start and end, and acronyms such as GST or API left alone. For code, it renames phrases and identifiers into camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and path/case. It splits identifiers at case changes as well as spaces and symbols, so XMLHttpRequest becomes xml_http_request, and it converts a pasted list of names one line at a time.
How to use it
- Type or paste your text into the box.
- Press a case on the right. The text changes in place, so you can apply several in a row.
- For a list of column or variable names, put one per line and choose a programmer case.
- Press Copy to take the result.
Limits and your data
- Title Case follows a common rule set; newspaper and academic styles differ on words such as “with”, “from” and capitals after a colon, so check headings against your style guide.
- Acronyms are kept only when the text also has lowercase letters. Text that is entirely in capitals is treated as shouting and lowered first.
- Converting to camelCase and back can’t restore original capitals, such as the “ID” in “userID”.
- Scripts without capital letters, such as Devanagari, Tamil and Chinese, are left as they are; programmer cases still split and join the words.
- German ß becomes SS in upper case, as the Unicode standard requires, and doesn’t change back.
- Conversion happens in your browser. Your text isn’t uploaded or saved, and it’s cleared when you leave the page.
Questions
What’s the difference between camelCase and PascalCase?
Both join words with capitals. camelCase starts with a lowercase letter (userName) and is common for variables; PascalCase starts with a capital (UserName) and is used for classes and React components.
When should I use snake_case or kebab-case?
snake_case is the norm in Python and SQL column names; CONSTANT_CASE for constants and environment variables; kebab-case for URLs, CSS classes and file names, where underscores are awkward.
Why wasn’t “of” capitalised in my title?
Short articles, conjunctions and prepositions stay lowercase in Title Case unless they’re the first or last word. That’s the convention in most English style guides.
Can I undo a conversion?
Use your browser’s undo (Ctrl+Z or ⌘Z) in the text box, or paste the original again.