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
- Paste or type your text into the box. It can be a single word, a heading, a list or several pages.
- Click the case you want. The text in the box changes straight away. You can click another button to try a different style.
- Changed your mind? Press Undo to bring back the text as it was before the last conversion.
- Copy or download. Use Copy text to paste it somewhere else, or Download .txt to save a plain text file.
- 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".
| Case | Result | Typical use |
|---|---|---|
| UPPERCASE | THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG | Signs, labels, short warnings |
| lowercase | the quick brown fox jumps over the lazy dog | Cleaning up text typed in caps, tags, emails |
| Title Case | The Quick Brown Fox Jumps Over the Lazy Dog | Headlines, book and article titles |
| Sentence case | The quick brown fox jumps over the lazy dog | Normal writing, UI text, subheadings |
| Capitalize Each Word | The Quick Brown Fox Jumps Over The Lazy Dog | Names, product lists, menu items |
| aLtErNaTiNg | tHe QuIcK bRoWn FoX jUmPs OvEr ThE lAzY dOg | Jokes, memes, playful captions |
| InVeRsE | THE QUICK BROWN FOX… (swaps each letter's case) | Fixing text typed with Caps Lock on |
| camelCase | theQuickBrownFoxJumpsOverTheLazyDog | JavaScript and Java variables |
| PascalCase | TheQuickBrownFoxJumpsOverTheLazyDog | Class and component names |
| snake_case | the_quick_brown_fox_jumps_over_the_lazy_dog | Python variables, database columns |
| kebab-case | the-quick-brown-fox-jumps-over-the-lazy-dog | URLs, CSS classes, file names |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG | Constants 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.
| Input | Conversion | Expected output |
|---|---|---|
| hello world | UPPERCASE | HELLO WORLD |
| HELLO WORLD | lowercase | hello world |
| my first website | Title Case | My First Website |
| my first website | Sentence case | My first website |
| hELLO wORLD | InVeRsE | Hello World |
| user name | camelCase | userName |
| user name | PascalCase | UserName |
| user name | snake_case | user_name |
| user name | kebab-case | user-name |
| user name | CONSTANT_CASE | USER_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
- Headlines and blog titles: use Title Case, or Sentence case if your site prefers a modern, relaxed style.
- Emails and documents typed in capitals: use Sentence case, then fix names by hand.
- Lists of names or products: use Capitalize Each Word to make them consistent.
- Social media posts: aLtErNaTiNg case is fun for a joke, but use it sparingly because screen readers struggle with it.
- Code, URLs and file names: use the programming cases to match the convention of your language or project.
- Spreadsheet clean-up: paste a column, convert it, then paste it back. Each row stays on its own line.
Tips for clean capitalization
- Convert first, then fix the exceptions. No automatic tool can know every name, brand or acronym. A quick read-through after converting catches them.
- Pick one style and stick to it. Mixing Title Case and Sentence case in headings on the same page looks untidy.
- Avoid long text in all capitals. Capital letters all have a similar shape, which makes long passages slower to read.
- Check your character count. Case changes do not change the number of characters in most text, but use the Character Counter if you are writing to a strict limit.
- Keep the original. If you are not sure which style you want, try a few. Undo restores the text from before your last click.
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:
- Names and proper nouns: the converter may change names of people, cities, companies and brands. Review these words after conversion.
- Abbreviations: words such as NASA, USA and HTML may lose their original capitalization when converted to Title Case, Sentence case or lowercase.
- Title Case conventions: different style guides use different rules for capitalizing short words, prepositions and conjunctions.
- Special characters: some Unicode characters change length or behave differently during conversion, for example the German ß becomes SS in uppercase.
- Programming formats: converting text into camelCase or snake_case removes punctuation and can change existing acronyms (HTTPResponse becomes http_response).
- Languages: scripts without uppercase and lowercase letters, such as Hindi and Chinese, remain unchanged.
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.