Case Converter
Your text in 14 case styles
Convert text to uppercase, lowercase and 12 other cases
Paste text, type it, or drop a .txt or .md file up to 2 MB, and all 14 formats update together: UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Each Word, aLtErNaTiNg, InVeRsE, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and Train-Case. Input over 1,000,000 characters is truncated.
How to convert text case
- Paste or type text into the input pane, or upload a .txt or .md file. The character and word counts update with it.
- Find the row for the case you need. Text cases and code cases are listed in two groups, and all 14 rows update together.
- For Title Case, choose Chicago, AP, APA, MLA or First letter. For the code cases, set acronym detection and the number boundary.
- Copy a single row with its copy button, or use Copy all to take every format at once.
- Click Use as input on a row to replace the input with that result. This chains two conversions, for example lowercase first and Title Case second.
Title case rules: Chicago, AP, APA and MLA
All four styles capitalize the first and last word, the first word after a colon or em dash, and every noun, verb, adjective, adverb and pronoun. They differ on short words. Chicago and MLA lowercase every preposition; AP and APA lowercase prepositions of three letters or fewer and capitalize longer ones. So "the quick brown fox jumps over the lazy dog" becomes "The Quick Brown Fox Jumps over the Lazy Dog" in Chicago and MLA, and "...Jumps Over the Lazy Dog" in AP and APA. Words that already contain a capital letter, such as iPhone or NASA, are left as they are.
camelCase, snake_case and kebab-case for code
For the programmer formats, the text is split into words at spaces, punctuation, and lowercase-to-uppercase changes. With acronym detection on, a run of capitals counts as one word, so XMLHttpRequest becomes xml_http_request. "Keep numbers attached" turns userId2 into user_id2; "Split numbers" gives user_id_2. Only A–Z, a–z and 0–9 are kept in these formats; accented letters and other scripts act as separators.
Sentence case and language-specific casing
Sentence case lowercases the text, then capitalizes the first letter after . ! ? and the Chinese full stops 。!?, and restores the pronoun "I". The Turkish locale maps i to İ and I to ı when changing case; the default Unicode rules turn German ß into SS in uppercase.
Which naming convention goes where
camelCase is the norm for variables and functions in JavaScript, TypeScript and Java, and for JSON keys in many APIs. PascalCase names classes, types and React components. snake_case is standard for Python functions and variables (PEP 8), Ruby methods and most SQL column names. CONSTANT_CASE marks constants and environment variables. kebab-case is used for URL slugs, CSS classes, HTML attributes and npm package names. Train-Case matches HTTP header names such as Content-Type, and dot.case appears in configuration keys such as server.port.
Case conversion examples
- user profile page → userProfilePage, UserProfilePage, user_profile_page, USER_PROFILE_PAGE, user-profile-page, user.profile.page and User-Profile-Page.
- the lord of the rings: the return of the king → "The Lord of the Rings: The Return of the King" in Title Case. The word after the colon is capitalized even though it is an article.
- i think so. do you? yes! → "I think so. Do you? Yes!" in Sentence case.
- Hello World → hELLO wORLD in InVeRsE and hElLo wOrLd in aLtErNaTiNg.
- version2Beta → version2_beta with Keep numbers attached, and version_2_beta with Split numbers.
- istanbul → İSTANBUL in UPPERCASE with the Turkish locale, and ISTANBUL with the default one.
Common case conversion mistakes
- Title-casing text that is already in capitals. Words that contain a capital letter are left alone, so QUARTERLY SALES REPORT comes out unchanged. Click Use as input on the lowercase row first, then read the Title Case row.
- Expecting Sentence case to keep names. "meeting with john in paris" becomes "Meeting with john in paris"; capitalize John and Paris by hand.
- Using Capitalize Each Word for a headline. It gives "The Lord Of The Rings", where Title Case gives "The Lord of the Rings".
- Running brand names through the code cases. A lowercase-to-uppercase change starts a new word, so iPhone becomes i_phone in snake_case.
- Leaving accented letters in an identifier. café au lait becomes caf_au_lait, because é is treated as a separator. Replace accented letters with plain ASCII before converting.
- Assuming hyphenated compounds are fully capitalized. Only the first part is: state-of-the-art design becomes State-of-the-art Design, so adjust the rest to match your style guide.
Frequently asked questions
Which words are not capitalized in title case?
Articles (a, an, the), coordinating conjunctions such as and, but and or, and prepositions, unless they are the first or last word. The styles differ on prepositions: Chicago and MLA lowercase them at any length, while AP and APA capitalize prepositions of four or more letters, such as Over, With and From.
What is the difference between title case and sentence case?
Title case capitalizes every major word: "How to Write a Cover Letter". Sentence case capitalizes only the first word of each sentence: "How to write a cover letter". This tool does not recognize proper nouns, so names inside a sentence-case result need to be capitalized by hand.
What's the difference between camelCase and PascalCase?
Both join words with no separators and capitalize each word — except camelCase keeps the first word lowercase (myVariable) while PascalCase capitalizes it too (MyClass).
How do I convert camelCase to snake_case?
Paste the identifier and copy the snake_case card: userName becomes user_name and getHTTPResponse becomes get_http_response. The same input also fills the kebab-case, CONSTANT_CASE, PascalCase and dot.case cards.
How are acronyms like XMLHttpRequest handled?
With acronym detection on, a run of capitals is treated as one word, so XMLHttpRequest becomes xml_http_request rather than x_m_l_http_request. Turn it off to split every capital letter.
Related tools
Related articles
- Most 'Title Case' Buttons Are Wrong: What Chicago and AP Actually Require
Chicago writes Gone with the Wind, AP writes Gone With the Wind. Four title-case styles, and the regex that splits XMLHttpRequest correctly.