Case Converter
Convert text to camelCase, snake_case, kebab-case, Title Case, Sentence case, UPPER or lower case. Keeps acronyms and accents. Runs in your browser.
Runs in your browser. Nothing you enter is uploaded.
How to use
This tool changes the case of text, from everyday styles like Title Case to programming styles like camelCase and snake_case.
- Pick a style under Convert to.
- Type or paste your text into Your text, or open a text file. The result updates as you type.
- Press Copy to put the result on your clipboard.
Programming styles split your text into words and join them again. They understand the usual separators, such as spaces, hyphens, underscores and dots, and also words that are already joined, like getHTTPResponseCode. Acronyms stay together, so XMLHttpRequest becomes xml_http_request in snake_case, not x_m_l_http_request. Numbers stay with the word before them.
Text styles only change letters and keep your punctuation and spacing:
- Title Case capitalises the main words and keeps short words like "of", "and" and "the" in lowercase, unless they start or end the title.
- Sentence case starts each sentence with a capital letter and makes the rest lowercase.
- UPPER CASE and lower case change every letter.
In text that isn't all capitals, Title Case and Sentence case leave acronyms like NASA and brand spellings like iPhone as they are.
With One per line on, each line is converted on its own, which is handy for a list of names or variables. Turn it off to treat the whole text as one piece.
Accented and non-Latin letters work too. Very long texts are converted in the background so typing stays smooth.
Frequently asked questions
What is the difference between camelCase and PascalCase?
Both join words without spaces and start each new word with a capital. camelCase starts with a lowercase letter, like userName. PascalCase starts with a capital, like UserName, and is common for class names.
Which words stay lowercase in Title Case?
Short articles, conjunctions and prepositions: a, an, and, as, at, but, by, for, in, nor, of, on, or, the, to, vs and via. They are still capitalised when they are the first or last word, or follow a colon.
Is my text sent anywhere?
No. The conversion runs in your browser with JavaScript, so your text never leaves your device. That makes it safe for code, private notes or unpublished writing.
Related tools
More text tools
- Regex tester Test JavaScript regular expressions with matches highlighted as you type.
- Diff checker Compare two texts and see what changed, line by line and word by word, side by side or inline.