Free text tool

Case Converter

Need to change text from uppercase to lowercase, format a heading in Title Case, or convert variable names into camelCase and snake_case? Paste your text, choose a conversion style and get the result instantly, then copy or download it. Everything runs in your browser.

Everyday cases

Programming cases

0Characters
0Words
0Lines

What is a case converter?

A case converter changes the capital and small letters in a piece of text without you retyping a single word. Letter "case" is simply whether a letter is a capital (upper case, like A) or a small letter (lower case, like a). The names come from old print shops, where capital letters were kept in the upper case of type and small letters in the lower one.

You need to convert case more often than you might think. Maybe you typed a whole paragraph with Caps Lock on. Maybe a spreadsheet export arrived in shouty capitals, or you need a headline in proper title case for a blog post. Developers also need the same words in different formats, such as userName, user_name and user-name. This free case converter handles all of these jobs in your browser with one click.

How to use the case converter

  1. Paste or type your text into the box. It can be a single word, a heading, a list or several pages.
  2. Click the case you want. The text in the box changes straight away. You can click another button to try a different style.
  3. Changed your mind? Press Undo to bring back the text as it was before the last conversion.
  4. Copy or download. Use Copy text to paste it somewhere else, or Download .txt to save a plain text file.
  5. Check the counts. The character, word and line counts update live as you type and convert.

Every case style explained

Here is what each button does, using the same sample text: "the quick brown fox jumps over the lazy dog".

CaseResultTypical use
UPPERCASETHE QUICK BROWN FOX JUMPS OVER THE LAZY DOGSigns, labels, short warnings
lowercasethe quick brown fox jumps over the lazy dogCleaning up text typed in caps, tags, emails
Title CaseThe Quick Brown Fox Jumps Over the Lazy DogHeadlines, book and article titles
Sentence caseThe quick brown fox jumps over the lazy dogNormal writing, UI text, subheadings
Capitalize Each WordThe Quick Brown Fox Jumps Over The Lazy DogNames, product lists, menu items
aLtErNaTiNgtHe QuIcK bRoWn FoX jUmPs OvEr ThE lAzY dOgJokes, memes, playful captions
InVeRsETHE QUICK BROWN FOX… (swaps each letter's case)Fixing text typed with Caps Lock on
camelCasetheQuickBrownFoxJumpsOverTheLazyDogJavaScript and Java variables
PascalCaseTheQuickBrownFoxJumpsOverTheLazyDogClass and component names
snake_casethe_quick_brown_fox_jumps_over_the_lazy_dogPython variables, database columns
kebab-casethe-quick-brown-fox-jumps-over-the-lazy-dogURLs, CSS classes, file names
CONSTANT_CASETHE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOGConstants and environment variables

Upper case to lower case (and back)

The two most common jobs are converting upper case to lower case and lowercase to uppercase. lowercase turns every capital into a small letter. It is the quickest fix for an email or note that was typed with Caps Lock on. UPPERCASE does the reverse and works well for short labels, but long blocks of capitals are harder to read and can feel like shouting online.

The InVeRsE option swaps the capitalization of every letter individually: uppercase letters become lowercase, and lowercase letters become uppercase. For example, if you enter "hELLO wORLD" (typed with Caps Lock on by mistake), the result becomes "Hello World". Numbers, spaces and punctuation remain unchanged.

Title case converter rules

Title case capitalizes the important words in a heading. Our title case converter capitalizes the first letter of every word, except short "minor" words such as a, an, the, and, but, or, nor, for, so, yet, as, at, by, in, of, on, to, up and via. Those stay in lower case unless they are the first or last word of the title, which are always capitalized.

Style guides disagree on the details. AP style, Chicago style and APA each have slightly different lists of minor words and rules for longer prepositions such as "over" or "with". Treat the result as a strong first draft and adjust any word your style guide treats differently.

Sentence case

Sentence case writes text the way you would in a normal sentence. The converter makes everything lower case, then capitalizes the first letter of the text, the first letter after a full stop, question mark or exclamation mark, and the first letter of each new line. It also turns a lone "i" into "I", including in "i'm" and "i'll".

Sentence case cannot know which words are names. "i met sarah in paris" becomes "I met sarah in paris", so check for names, places, brands and acronyms afterwards and capitalize them yourself.

Capitalize Each Word vs Title Case

The capital letter converter button, Capitalize Each Word, makes the first letter of every word a capital and the rest small, with no exceptions. It suits names, lists of products, table headers and menu items. Title Case is the smarter choice for headlines because it leaves minor words like "of" and "the" in lower case.

Both buttons lower the rest of each word, so acronyms like "NASA" or "USA" become "Nasa" and "Usa". Fix those by hand after converting.

Real-world examples of case conversion

A case converter helps with everyday writing tasks as well as programming work. Here are some practical examples of how the different conversion styles can be used.

1. Fixing text typed with Caps Lock

Input: WELCOME TO MY WEBSITE
Output (lowercase): welcome to my website

Use lowercase when you need to correct text accidentally typed in capital letters.

2. Preparing blog headings

Input: how to improve your writing skills
Output (Title Case): How to Improve Your Writing Skills

Use Title Case for article headings, book titles and other formatted headings.

3. Creating JavaScript variable names

Input: total product price
Output (camelCase): totalProductPrice

camelCase is commonly used for variable names in JavaScript and other programming languages.

4. Preparing Python variable names

Input: total product price
Output (snake_case): total_product_price

snake_case is commonly used for Python variables and database column names.

5. Creating URL-friendly text

Input: my first blog article
Output (kebab-case): my-first-blog-article

kebab-case is useful for website URLs, CSS class names and file naming conventions.

6. Formatting constants

Input: maximum login attempts
Output (CONSTANT_CASE): MAXIMUM_LOGIN_ATTEMPTS

This format is commonly used for constants and environment variables.

Programming cases: camelCase, snake_case and more

Programmers cannot use spaces in names, so they join words using different conventions. The converter splits your text into words at spaces, punctuation, underscores, hyphens and existing case changes. So userName, user_name, user-name and "User Name" are all understood as the same two words. It then rebuilds them in the style you pick.

camelCase and PascalCase

camelCase starts with a small letter and capitalizes each later word: totalPrice. It is the usual style for variables in JavaScript, Java and many other languages. PascalCase capitalizes every word, including the first: TotalPrice. It is common for class names and React components.

snake_case and CONSTANT_CASE

snake_case uses small letters joined by underscores: total_price. Python, Ruby and many databases use it. CONSTANT_CASE (also called screaming snake case) uses capitals: TOTAL_PRICE, typically for constants and environment variables.

kebab-case

kebab-case joins small words with hyphens: total-price. You see it in web addresses, CSS class names and file names. It is also a good way to create a clean URL slug from a blog title.

Multi-line text

The programming cases work line by line. Paste a list of column names, one per line, and each line is converted separately, so you can rename a whole list of fields in one go.

Case converter examples and testing

You can use these sample inputs to check how each conversion option works. Paste the input into the box above, click the conversion, and you should get the expected output.

InputConversionExpected output
hello worldUPPERCASEHELLO WORLD
HELLO WORLDlowercasehello world
my first websiteTitle CaseMy First Website
my first websiteSentence caseMy first website
hELLO wORLDInVeRsEHello World
user namecamelCaseuserName
user namePascalCaseUserName
user namesnake_caseuser_name
user namekebab-caseuser-name
user nameCONSTANT_CASEUSER_NAME

These examples show the basic behaviour of each conversion style. Actual output can vary depending on punctuation, existing capitalization and special characters.

How the converter handles other languages

The tool uses your browser's built-in, language-aware functions to change case. That means accented letters such as é, ñ and ü change correctly, as do Greek and Cyrillic letters. Some languages have special rules, for example Turkish has both a dotted and a dotless "i". These follow the language settings of your browser.

Scripts with no upper and lower case, such as Hindi, Arabic, Chinese and Japanese, stay exactly as they are. Numbers, emoji and punctuation are never changed by the everyday cases. The programming cases remove punctuation and emoji because they are not allowed in most code names.

When to use each case

Tips for clean capitalization

Related free text tools

The case converter works well alongside our other writing tools. Count words in an essay or article with the Word Counter. Count, sort and de-duplicate a list with the Line Counter. Make eye-catching text for bios and captions with the Font Generator, or see how long a script takes to read aloud with the Words to Minutes Calculator.

Writing for social media or search? Our guides to the YouTube title and description limit and meta description length explain how long titles should be. If you want stylish letters for a profile, read how to use a font generator for copy-and-paste text.

Limitations of a case converter

A case converter changes the capitalization and formatting of text, but it cannot always understand the meaning or context of individual words. Keep these limitations in mind:

Always review the final output before using it in code, professional documents or published content.

Is it safe to use an online case converter?

Privacy matters when you work with personal notes, emails and unpublished documents. This case converter processes your text directly in your browser using JavaScript. There is no account to create, and your text is not uploaded to a conversion server, saved or stored. You enter text, choose a conversion style and copy or download the result, all on your own device.

Like most websites, this page also loads analytics and advertising scripts, and browser extensions you have installed can read what you type on any site. Before entering sensitive information, keep that in mind and review our Privacy Policy for details.

Frequently asked questions

How do I convert upper case to lower case?
Paste your text into the box and click the lowercase button. Every capital letter changes to a small letter instantly, and you can copy or download the result.
How do I change lowercase to uppercase?
Paste your text and click UPPERCASE. All letters become capitals, while numbers, punctuation and emoji stay the same.
What is the difference between Title Case and Sentence case?
Title Case capitalizes the main words of a heading, such as "How to Write a Great Cover Letter". Sentence case only capitalizes the first word and the start of each sentence, such as "How to write a great cover letter".
Which words stay lower case in Title Case?
Short words such as a, an, the, and, but, or, for, of, in, on, at, by and to stay lower case unless they are the first or last word. Style guides vary slightly, so check any word your guide treats differently.
Does the case converter preserve abbreviations?
Not necessarily. Abbreviations such as NASA, USA and HTML, and names such as Paris, may be changed during conversion because the tool cannot tell which words are special. Review the result and correct important abbreviations manually.
Can I convert multiple lines at once?
Yes. Paste as many lines as you like and click a conversion. Line breaks are kept, and the programming cases convert each line separately, so a list of names stays one per line.
Does the case converter work for programming variable names?
Yes. It includes camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE, and it understands names that are already joined, so userName can become user_name and back.
Can I undo a conversion?
Yes. The Undo button restores the text as it was before your last conversion or clear. It keeps one step of history.
What is camelCase and snake_case?
They are naming styles used in programming. camelCase joins words and capitalizes each new word, like totalPrice, while snake_case uses small letters joined by underscores, like total_price.
Does it work with accented letters and other languages?
Yes. The converter uses your browser's language-aware case functions, so accented, Greek and Cyrillic letters convert correctly. Scripts without capital letters, such as Hindi or Chinese, are left unchanged.
Does changing the case change the character count?
Usually not. A few special letters change length, for example the German ß becomes SS in upper case. The programming cases also remove spaces and punctuation, which lowers the count.
Can I convert text without uploading it?
Yes. All conversions happen in your browser with JavaScript, so your text is not uploaded to a server or stored. See our Privacy Policy for how the website's analytics and advertising handle visit data.

More free writing tools

Hand-picked articles on the same topic as this tool, with limits, examples and tips.

Latest Articles & Guides

Read our newest tutorials, guides and helpful articles from RandomCount.

View All Articles

AK

About the Author

· Founder & Creator of RandomCount

Ashish K. creates and reviews the free online tools and educational guides on RandomCount. RandomCount focuses on making everyday digital tasks easier through practical tools, clear instructions and useful examples.

This page explains different text capitalization formats, their applications and limitations.

More from Ashish K. →