Case Converter : Instantly Switch Text Between Any Case Format
Case Converter
Case Converter is a free online tool that instantly changes text into UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.
Case Conversions
Click to select conversion type
🔒 Privacy First: All conversions happen in your browser. No data is stored or transmitted.
Supported Case Formats
This tool supports all eight common text case formats used in writing, programming, and web development:
THIS IS UPPERCASE TEXT
this is lowercase text
This Is Title Case Text
This is sentence case text
thisIsCamelCaseText
ThisIsPascalCaseText
this_is_snake_case_text
this-is-kebab-case-text
When to Use Each Case Format
Choosing the right case format is not just about preference. In programming, using the wrong convention can cause errors or make your code inconsistent with team standards.
MAX_RETRIES, API_KEY) and environment variables.Case Conventions in Real Code
Seeing each convention in actual code makes it clear why the right case format matters. These examples show the naming style expected in four common languages and environments.
How to Use This Case Converter
Converting your text takes just a few seconds. No setup or login required.
- Paste or type your text into the input box.
- Click the button for the case format you need.
- The converted text appears instantly.
- Click Copy to copy it to your clipboard.
You can convert the same input into multiple formats. Just click different buttons without re-entering your text. This is useful when you need to compare formats or generate versions for different environments.
Best Practices for Text Case in Code
Following these conventions prevents the most common naming errors and keeps codebases consistent across teams.
-
✓Always follow the convention of the language you are working in. Python uses snake_case for variables; JavaScript uses camelCase. Mixing conventions in a single codebase breaks readability and can confuse linters and style checkers.
-
✓Use UPPERCASE only for true constants, not for all variables. In JavaScript and Python, UPPERCASE signals that a value should never be reassigned. Using it for regular variables creates misleading expectations for other developers reading the code.
-
✓Use kebab-case for all CSS class names and HTML attributes. CSS is case-insensitive but the community standard is kebab-case. Mixing camelCase into CSS class names causes inconsistency when class names appear in both CSS files and JavaScript selectors.
-
✓Apply sentence case to UI text, not title case. Most modern style guides (including Google, Apple, and Microsoft) recommend sentence case for buttons, labels, and descriptions. Title case is reserved for page headings and navigation items.
-
✓Be consistent with acronyms in camelCase and PascalCase. The convention varies: some teams write
getUserIDand others writegetUserId. Pick one approach and apply it everywhere in the codebase. -
✓Use a linter or formatter to enforce case conventions automatically. ESLint, Pylint, and Stylelint all have rules for naming conventions. Automating this check removes the need to catch case violations in code review.
Common Case Convention Mistakes
These are the naming errors that appear most often in code reviews and style audits.
Writing user_first_name in JavaScript is technically valid but breaks the language convention. JavaScript uses camelCase: userFirstName. Mixing in snake_case makes the codebase inconsistent and harder to read.
Writing getUserProfile() in Python violates PEP 8, which requires get_user_profile(). Python linters flag camelCase function names as style violations. The only exception is class names, which use PascalCase.
Writing .nav_menu in CSS is valid but goes against the universal kebab-case convention. It also conflicts with BEM methodology if your team uses it. Use .nav-menu instead.
Writing button labels as "Submit Your Request" instead of "Submit your request" goes against modern UI style guides. Sentence case is the standard for interactive elements. Title case is reserved for page-level headings.
Frequently Asked Questions
This tool supports uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, and kebab-case. All eight common text case formats used in writing and programming are covered.
In camelCase, the first word is lowercase and each subsequent word starts with a capital: myVariableName. In PascalCase, every word is capitalised including the first: MyVariableName. PascalCase is typically used for class and component names. camelCase is used for variables and functions.
Both are all-lowercase with a separator between words. snake_case uses underscores (user_first_name) and is the standard in Python, Ruby, and SQL. kebab-case uses hyphens (user-first-name) and is the standard in CSS, HTML attributes, and URL slugs. Underscores are not valid in URLs, which is why CSS and URLs use hyphens.
snake_case is the standard naming convention in Python, Ruby, and SQL. All letters are lowercase with underscores separating words. For example: user_first_name or created_at.
Title case (capitalising the first letter of each major word) is appropriate for page headings, blog post titles, and navigation menu items. Sentence case (capitalising only the first word) is preferred for button labels, form field labels, descriptions, and most UI text. Modern style guides from Google, Apple, and Microsoft recommend sentence case for interface elements.
Yes. Paste any variable name or phrase and convert it to the case format required by your language or framework. For example, paste a database column name in snake_case and convert it to camelCase for use in a JavaScript object, or to PascalCase for a TypeScript interface property.
No. This tool has no character limit. You can paste entire documents and convert them instantly.
Yes. The converter preserves numbers and most special characters in the output. For programming case formats like camelCase and snake_case, special characters that are not valid in identifiers are handled based on the target format. Always review the output before pasting directly into code.
The Right Case Format, Every Time
Whether you're naming a JavaScript variable, writing a blog headline, or setting up a CSS class, using the correct case convention keeps your code consistent and your content professional.
This free case converter handles all eight formats instantly. Paste your text once and convert it into any format you need, with no setup required.