How to use the Case Converter
- Choose the case you want at the top of the tool, for example “Title Case” or “snake_case”.
- Type or paste your text in “Your text”. The converted version appears straight away.
- Switch between cases as often as you like; your original text is never changed.
- Click “Copy result” to copy the converted text.
Examples
the lord of the rings: the return of the king
The Lord of the Rings: The Return of the King
THIS IS A TEST. IT WORKS! i think so.
This is a test. It works! I think so.
first name last name HTTP response code
firstName lastName httpResponseCode
10 Tips for Better Sleep!
10-tips-for-better-sleep
Choosing the right case
UPPERCASE is useful for short labels and acronyms, but long passages in capitals are harder to read. lowercase is handy for normalising email addresses, tags or keywords before comparing them.
Title Case suits headlines, book and film titles, and email subject lines. Sentence case reads more naturally for body text, buttons and most interface labels, and is the style many modern websites use for headings.
Cases for code and URLs
Programming languages and tools have their own conventions. JavaScript and Java use camelCase for variables and functions and PascalCase for classes and components. Python, Ruby and database columns typically use snake_case. URLs, CSS class names and many file names use kebab-case, which search engines also read as separate words.
Code cases are applied line by line and drop punctuation, so 10 Tips for Better Sleep! becomes 10-tips-for-better-sleep, a clean slug ready to use in a URL.
Related text tools
If pasted text has extra spaces or blank lines, tidy it with the Text Cleaner before converting. To check the length of a headline or title afterwards, paste it into the Word Counter.
Common uses
- Fixing text that was typed with Caps Lock on.
- Formatting headlines, article titles and email subject lines in Title Case.
- Turning labels or column names into variable, function or class names for code.
- Creating URL slugs, CSS class names and file names in kebab-case or snake_case.
- Making lists of names or headings consistent before pasting them into a document.
Limitations
- Sentence case cannot recognise proper nouns, so names such as “Paris” or “NASA” become lowercase and need fixing by hand.
- Title Case follows one common style (short articles, conjunctions and prepositions in lowercase). Style guides such as APA, Chicago or AP differ in details, for example on prepositions of four or more letters.
- Code cases keep accented letters (“café_crème”). Remove accents yourself if your programming language or system only accepts ASCII identifiers.
- Some letters change length when their case changes, for example the German “ß” becomes “SS” in uppercase.