Case Converter

Paste text and switch between UPPERCASE, lowercase, Title Case by style guide, Sentence case and 11 more formats, including camelCase and snake_case.

0 words · 0 characters

Result: UPPERCASE

Your converted text appears here. Pick a case above, then type or paste.

Why use a case converter?

Retyping a heading because Caps Lock was on, fixing a spreadsheet column of SHOUTED names, formatting a headline for a style guide, or turning a phrase into a variable name are small jobs that eat time. Paste the text once and switch between 15 formats: everyday UPPERCASE, lowercase, Sentence case and Title Case following AP, APA, Chicago or MLA rules, plus camelCase, snake_case, kebab-case and other naming conventions for code. Each button previews its result before you click it.

How to change text case

  1. Type or paste text into Your text. Every button shows a preview of what it will do.
  2. Click a case. The result updates instantly and stays live while you keep editing.
  3. For headlines, choose a Title Case style; leave Keep acronyms on so NASA and iPhone survive.
  4. Press Copy, download a .txt file, or choose Use as input to apply another conversion on top.

Every case format, with examples

What each button does to "how to reset your password" (InVeRsE is shown on "How To Reset Your Password", since inverting all-lowercase text simply gives capitals):

FormatExampleTypical use
UPPERCASEHOW TO RESET YOUR PASSWORDShort labels, acronyms, emphasis
lowercasehow to reset your passwordNormalizing emails, tags and other data
Title CaseHow to Reset Your PasswordHeadlines, book and article titles, headings
Sentence caseHow to reset your passwordBody text, UI labels, many headings
Capitalize WordsHow To Reset Your PasswordLabels where every word is capitalized
camelCasehowToResetYourPasswordJavaScript and Java variables, JSON keys
PascalCaseHowToResetYourPasswordClasses, React components, C# methods
snake_casehow_to_reset_your_passwordPython and Ruby variables, database columns
kebab-casehow-to-reset-your-passwordURL slugs, CSS classes, CLI flags
CONSTANT_CASEHOW_TO_RESET_YOUR_PASSWORDConstants and environment variables
dot.casehow.to.reset.your.passwordConfig keys and translation IDs
path/casehow/to/reset/your/passwordFile paths and URL routes
Train-CaseHow-To-Reset-Your-PasswordHTTP headers (Content-Type)
aLtErNaTiNghOw tO ReSeT YoUr pAsSwOrDMocking-meme text
InVeRsEhOW tO rESET yOUR pASSWORDFixing text typed with Caps Lock on

Title Case rules: AP, APA, Chicago and MLA

Every major style guide capitalizes the first and last word of a title, the first word after a colon, and all nouns, pronouns, verbs, adjectives and adverbs, including short verbs such as "Is" and "Be". They disagree about the small words:

  • AP and APA: lowercase articles (a, an, the) and conjunctions and prepositions of three letters or fewer (and, but, for, or, nor, so, yet, as, at, by, in, of, on, per, to, via). Any word of four letters or more is capitalized, so "With", "From" and "Into" get capitals.
  • Chicago: lowercase articles, the conjunctions and, but, for, or and nor, and prepositions of any length (with, from, between, through). "So" and "Yet" are capitalized.
  • MLA: like Chicago, but "so" and "yet" are lowercase too.

The same three headlines in each style, straight from this converter:

AP / APAChicagoMLA
A Guide to Living With Cats so You Can SleepA Guide to Living with Cats So You Can SleepA Guide to Living with Cats so You Can Sleep
Walking Through the Valley Between Two RiversWalking through the Valley between Two RiversWalking through the Valley between Two Rivers
What Is Up With the Plan for the YearWhat Is Up with the Plan for the YearWhat Is Up with the Plan for the Year

AP's rule is for composition titles such as books, films and articles; AP-style news headlines themselves use sentence case. APA applies the same "four letters or more" rule to titles of works and to headings in papers.

One limit applies to every automatic title-caser, including this one: some words change role. "Up" in "Look It Up" is part of the verb and capitalized, while "up" in "Up the Hill" is a preposition. The converter capitalizes words like up, out, off, over, after and before (their most common use in titles) and keeps a fixed list of prepositions lowercase, so check a headline that must follow a guide exactly. Hyphenated words are capitalized on both sides unless the second part is a minor word: State-of-the-Art, Step-by-Step.

Sentence case, and keeping NASA and iPhone intact

Sentence case capitalizes the first letter of each sentence and line (after any list marker such as - or 1.) and the word "I", and lowercases the rest. It is how AP-style news headlines are written, and the style Google's and Microsoft's writing style guides recommend for headings and buttons, because it reads more naturally than Title Case.

Plain lowercasing would turn NASA into nasa and iPhone into iphone. With Keep acronyms and names ticked (the default), Title Case and Sentence case leave alone any word that has a capital after its first letter: NASA, USB-C, iPhone, eBay, McDonald. A line typed entirely in capitals, or a run of three or more words in capitals, is treated as shouting and converted normally. Untick the option to lowercase everything. Proper nouns written normally, such as Paris or Monday, cannot be told apart from ordinary words, so fix those by hand after Sentence case.

Programming naming conventions: camelCase, snake_case and kebab-case

The developer formats first break your text into words, splitting on spaces, on existing separators (_ - . / \) and on changes of case. That lets you convert straight from one convention to another: userProfileId becomes user_profile_id, and acronyms stay together, so XMLHttpRequest becomes xml-http-request.

  • JavaScript, TypeScript and Java: camelCase for variables and functions, PascalCase for classes and React components.
  • Python (PEP 8): snake_case for functions and variables, PascalCase for classes, CONSTANT_CASE for constants.
  • CSS classes, URL slugs and CLI flags: kebab-case. Environment variables use CONSTANT_CASE; HTTP headers use Train-Case.

Letters in any alphabet are kept, so "élan vital" becomes élan_vital; check that your language allows them in names. Punctuation, symbols and emoji act as word breaks and are dropped, and an apostrophe inside a word is removed, so "Don't stop, world!" becomes dontStopWorld. Line breaks count as spaces, so a multi-line list turns into one long identifier; convert one name at a time.

aLtErNaTiNg and InVeRsE case

aLtErNaTiNg switches case on every character, counting spaces and punctuation (an accented letter or emoji counts once), starting lowercase: the "mocking" text of internet memes. InVeRsE swaps the case of every letter, the quickest fix for text typed with Caps Lock on. For bold, italic or script letters that survive pasting into social profiles, use the fancy text generator instead: those are different Unicode characters, not a change of case.

Common mistakes

  • Using Capitalize Words for a headline. It capitalizes every word, including "of" and "the". Use Title Case for headlines; keep Capitalize Words for labels and names.
  • Converting a whole paragraph to camelCase. Line breaks and spaces all disappear into one identifier. Convert one name per conversion.
  • Trusting any converter with proper nouns. Sentence case can't know that "paris" is a city. Read the result once before you publish.

Related text tools: count words and characters with the word counter, put a list in A–Z order with the text sorter, strip repeated lines with remove duplicate lines, or tidy text copied from a chatbot with the Markdown cleaner.

Frequently asked questions

How do I change uppercase to lowercase?

Paste the text and click lowercase. If you want normal sentences rather than all-lowercase text, click Sentence case instead: it lowercases everything, then capitalizes the first letter of each sentence and the word I. The result is ready to copy, download or convert again.

How do I convert text to Title Case?

Paste the text, pick a style (AP / APA, Chicago or MLA) under Title Case style, and click Title Case. Each line is treated as its own title, so you can convert a whole list of headlines at once. Short words such as a, the, and, of and to stay lowercase unless they start or end the title or follow a colon.

What is the difference between Title Case and Sentence case?

Title Case capitalizes every major word (A Tale of Two Cities) and is used for book, article and film titles. Sentence case capitalizes only the first word and proper nouns (A tale of two cities), the way you write a sentence; AP news headlines and Google's and Microsoft's style guides use it for headings.

Which words should not be capitalized in a title?

Articles (a, an, the) in every style. AP and APA also lowercase conjunctions and prepositions of three letters or fewer (and, but, or, for, of, in, on, to, by, at). Chicago and MLA lowercase prepositions of any length, so they write "with" and "between" in lowercase where AP writes "With" and "Between". The first and last word are always capitalized.

Is "with" capitalized in a title?

In AP and APA style, yes: any word of four letters or more is capitalized (Living With Cats). In Chicago and MLA style, no: it is a preposition, and those guides lowercase prepositions regardless of length (Living with Cats). Pick the style under Title Case style and the converter applies the right rule.

Why did my acronym change, and how do I keep NASA or iPhone?

Leave "Keep acronyms and names like NASA, iPhone" ticked. Title Case and Sentence case then keep any word with a capital after its first letter exactly as typed. A line typed entirely in capitals, or a run of three or more capitalized words, is treated as shouting and converted normally. Capitalize Words never changes the rest of a word, so it keeps acronyms too.

How do I fix text typed with Caps Lock on?

Click InVeRsE: it swaps the case of every letter, so 'hELLO wORLD' becomes 'Hello World'. If everything came out in capitals, use Sentence case instead.

Does it handle camelCase and snake_case input?

Yes. Existing camelCase, PascalCase, snake_case, kebab-case, dot.case and path/case text is split into words before converting, and runs of capitals stay together. So 'myVariableName' becomes 'my-variable-name' in kebab-case, and 'XMLHttpRequest' becomes 'xml_http_request' in snake_case. Punctuation and emoji are dropped, and apostrophes inside words are removed.

Does it keep my line breaks?

UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Words, aLtErNaTiNg and InVeRsE keep your line breaks and spacing exactly. The developer formats (camelCase, snake_case and so on) treat line breaks as spaces and join everything into one identifier, so convert one name at a time.

Does it work with accented letters and other alphabets?

Yes. Accented and non-Latin letters are recognized as letters in every format, so 'élan vital' becomes 'Élan Vital' in Title Case, 'ÇA VA' becomes 'ça_va' in snake_case, and é becomes É in UPPERCASE. An emoji or accented letter counts as one character in the counts and in aLtErNaTiNg case.

How do I change text case in Word or Google Docs instead?

In Microsoft Word, select the text and press Shift+F3 to cycle through lowercase, UPPERCASE and Capitalize Each Word, or use the Change Case button (Aa) on the Home tab. In Google Docs use Format > Text > Capitalization. Neither offers style-guide Title Case or the programming formats, which is where this converter helps.

Is my text uploaded anywhere?

No. Every conversion happens in your browser with JavaScript, and nothing is sent to a server. Only your chosen case and options are remembered in this browser, not your text.

Advertisement