Text Case Converter

100% Client-Side Instant Result

Your results will appear here.

Ready to run.
Verified

About this tool

What Is a Text Case Converter?

A text case converter transforms the capitalization pattern of text from one style to another. Common transformations include converting all-caps text to sentence case (fixing accidental caps lock), converting headlines to Title Case (following AP or Chicago style), and converting natural language to programming naming conventions like camelCase or snake_case.

This tool supports 11 distinct case styles, covering both editorial and programming use cases in a single interface.

Case Styles Explained

| Style | Example | Typical Use |
|---|---|---|
| Sentence case | The quick brown fox | Body text, paragraphs |
| lowercase | the quick brown fox | Email addresses, URLs |
| UPPERCASE | THE QUICK BROWN FOX | Abbreviations, emphasis |
| Title Case | The Quick Brown Fox | Headlines, titles |
| Capitalized Case | The Quick Brown Fox | Every word capitalized |
| camelCase | theQuickBrownFox | JavaScript variables, JSON |
| PascalCase | TheQuickBrownFox | React components, C# classes |
| snakecase | thequickbrownfox | Python variables, SQL columns |
| kebab-case | the-quick-brown-fox | CSS classes, URL slugs |
| aLtErNaTiNg | tHe QuIcK bRoWn FoX | Social media, memes |
| InVeRsE | Flips existing case | Utility conversion |

Title Case Rules

Title Case capitalizes the first letter of major words while keeping minor words (articles, prepositions, conjunctions) in lowercase. This tool follows the AP (Associated Press) style guide:

Capitalized: Nouns, verbs, adjectives, adverbs, pronouns, and words of 4+ letters.
Lowercase: a, an, and, as, at, but, by, en, for, if, in, of, on, or, the, to, v., via, vs.
Always capitalized: First word and last word of the title.

Example: "the lord of the rings" → "The Lord of the Rings"

Programming Naming Conventions

Different programming languages and technologies use different naming conventions:

camelCase is the standard in JavaScript, TypeScript, and Java for variable and function names. The first word is lowercase, and subsequent words are capitalized: getUserProfile, totalItemCount.

PascalCase (also called UpperCamelCase) is used for class names in C#, Java, and React component names: UserProfile, ShoppingCart.

snake_case is preferred in Python, Ruby, and SQL for variable names and database columns: user_profile, total_item_count.

kebab-case is the standard for CSS class names, HTML attributes, and URL slugs: user-profile, main-content-area.

Common Mistakes

  • Mixing unit systems: Using camelCase for CSS classes (which browsers interpret case-sensitively) instead of kebab-case
  • Ignoring minor words in Title Case: Writing "The Lord Of The Rings" instead of "The Lord of the Rings"
  • Using UPPERCASE for paragraphs: All-caps text is significantly harder to read because readers lose the word-shape cues that mixed case provides
  • Inconsistent naming: Mixing snake_case and camelCase within the same codebase, which reduces readability and increases error rates
Advertisement

Practical Usage Examples

Fix Caps Lock

Input: "ACCIDENTALLY TYPED IN CAPS LOCK"

Sentence case: "Accidentally typed in caps lock."

Convert to snake_case

Input: "User Profile Data"

snake_case: "user_profile_data"

Step-by-Step Instructions

Step 1: Paste Your Text. Type or paste the text you want to convert into the input field. The tool supports any length of text including multi-paragraph content.

Step 2: Select Case Style. Choose from 11 conversion modes: Sentence case, lowercase, UPPERCASE, Title Case, Capitalized Case, aLtErNaTiNg cAsE, InVeRsE CaSe, camelCase, PascalCase, snake_case, or kebab-case.

Step 3: Review the Output. The converted text appears instantly below the input. The tool also shows character count, word count, and sentence count.

Step 4: Copy the Result. Use the copy button to save the converted text to your clipboard for use in documents, code editors, or content management systems.

Step 5: Chain with Other Tools. For content workflows, combine with the Word Counter or Slug Generator for complete text optimization.

Core Benefits

11 Conversion Modes: Covers editorial styles (Title Case, Sentence case), programming conventions (camelCase, snake_case, PascalCase, kebab-case), and utility conversions (UPPER, lower, alternating, inverse, capitalized).

Client-Side Processing: Your text never leaves your browser. All conversions run locally in JavaScript — no server uploads, no data logging, no privacy concerns.

Developer Conventions: Supports the four major programming naming conventions: camelCase (JavaScript, Java), snake_case (Python, SQL), PascalCase (C#, React components), and kebab-case (CSS, URLs).

Content Statistics: Real-time character, word, and sentence counts to help you stay within platform limits (Twitter, meta descriptions, headlines).

Frequently Asked Questions

Paste the all-caps text into the converter and select "Sentence case" or "lowercase". The tool will instantly convert UPPERCASE TEXT to properly formatted text. This is much faster than retyping the content manually.

Title Case capitalizes the first letter of major words (nouns, verbs, adjectives) while keeping minor words lowercase: "The Lord of the Rings". Sentence case only capitalizes the first word of each sentence: "The lord of the rings". Title Case is used for headlines; Sentence case for body text.

camelCase is the standard convention for JavaScript variables and function names: firstName, getUserData, totalCount. PascalCase is used for class names and React component names: UserProfile, ShoppingCart. These conventions are widely followed and expected by other developers.

kebab-case (lowercase with hyphens) is the standard for URL slugs: my-blog-post-title. Search engines treat hyphens as word separators, making kebab-case URLs more readable and SEO-friendly than underscores, camelCase, or spaces encoded as %20.

Yes. To convert camelCase to snakecase, paste your camelCase text and select "snakecase". The tool splits words at capital letter boundaries and joins them with underscores. This works for converting between all four programming conventions: camelCase, PascalCase, snake_case, and kebab-case.

Yes. All text processing happens locally in your browser using JavaScript string functions. Your text is never uploaded to a server, stored in a database, or transmitted over the internet. You can verify this by checking the Network tab in your browser's developer tools.

Alternating case (aLtErNaTiNg CaSe) is primarily used in social media and memes to indicate sarcasm or mockery. It has no practical use in professional writing or programming. The pattern alternates between lowercase and uppercase on each character.

The tool supports UTF-8 text and correctly handles accented characters in Latin-based alphabets (French, Spanish, German, Portuguese). However, the minor-word rules (a, the, of) are based on English grammar and may not apply correctly to other languages.

There is no hard limit. The tool processes text in your browser's memory using JavaScript string operations, which can handle millions of characters on modern devices. Very large texts (10MB+) may briefly slow processing on mobile devices.

Select the "camelCase" mode. It converts any input text to camelCase by lowercasing the first character. For example, "UserProfileData" becomes "userProfileData". The reverse (camelCase to PascalCase) is also supported by selecting the "PascalCase" mode.

Related tools

View all tools