Change the case of any text
Paste your text and choose a case. The result updates as you type and is one click away from your clipboard. It covers the cases used in writing and the naming styles used in code, and runs entirely in your browser.
Cases for writing
- Sentence case capitalises the first letter of each sentence and the word I. Many style guides, including Google's guide for developer documentation, use it for headings because it is easier to read.
- Title Case capitalises the important words of a headline. Short articles, conjunctions and prepositions such as a, and, of, in and to stay lowercase unless they start or end the title or follow a colon. Acronyms like NASA are kept, and hyphenated compounds become Self-Driving.
- Capitalize Each Word capitalises every word with no exceptions, which suits lists of names, product names and table headers.
- UPPERCASE and lowercase do what they say.
Style guides disagree on the finer points of title case. The Chicago Manual lowercases prepositions of any length, while AP style capitalises any word of four letters or more. This tool follows the common middle ground, so if your publication has a house style, check the result against it.
What automatic conversion cannot know
The converter does not recognise names. Sentence case and lowercase turn London, Maria and NASA into lowercase, and Title Case makes iPhone into Iphone. After converting, read through for proper nouns and brand names and fix them by hand.
Fixing text typed with caps lock on
Paste it in, choose Sentence case, then correct the names. It is much faster than retyping, especially for long emails or form answers.
Naming styles for code
- camelCase for variables and functions in JavaScript and Java, and for most JSON keys.
- PascalCase for classes, types and React components.
- snake_case for Python and Ruby variables and for database columns.
- kebab-case for URLs, CSS class names and file names.
- CONSTANT_CASE for constants and environment variables.
The converter splits words at spaces, punctuation and existing capital letters, so it can switch between styles directly: parseHTTPResponse becomes parse_http_response, and user-first-name becomes userFirstName.