Case Converter
Convert text between UPPERCASE, Title Case, camelCase, snake_case, and more.
Result
About this tool
Different contexts call for different capitalization: a heading wants Title Case, a variable name wants camelCase or snake_case, a constant wants CONSTANT_CASE. Retyping text by hand to match is tedious and error-prone. This tool converts your text into nine common case styles instantly.
The programming styles each have a home. camelCase is standard for variables and functions in JavaScript and Java; PascalCase for class and component names; snake_case for variables in Python and Ruby and for database columns; kebab-case for URLs, CSS class names, and file names; and CONSTANT_CASE for constants and environment variables. Converting between them is common when moving data between systems, such as turning API field names into database columns.
For prose, the choice is usually between Title Case and Sentence case. Many publications and style guides now prefer sentence case for headings because it's easier to read, while book and article titles traditionally use title case. Title case rules differ between style guides like AP, Chicago, and APA, mostly in how they treat short words; this tool follows the common convention of lowercasing articles, short conjunctions, and short prepositions in the middle of a title.
Frequently asked questions
- How does Title Case handle small words like "the" or "of"?
- It lowercases common short words (articles, conjunctions, short prepositions) in the middle of a title, while always capitalizing the first and last word, matching typical title-casing conventions.
- What counts as a "word" for camelCase or snake_case?
- Runs of letters and numbers are treated as words, and everything else (spaces, punctuation, existing hyphens or underscores) is treated as a separator. So "hello-world 123" becomes "helloWorld123" in camelCase.
- What happens to acronyms like NASA or HTML?
- Title Case and Sentence case lowercase each word before capitalizing, so acronyms become "Nasa" or "Html". The programming cases treat acronyms as ordinary words, which gives htmlParser in camelCase. Fix acronyms by hand afterward if your style keeps them in capitals.
- Can I convert a whole document at once?
- Yes. Paste as much text as you like. Keep in mind that the programming cases (camelCase, snake_case, and so on) join everything into a single identifier, so they're meant for short phrases rather than paragraphs.