Case Converter
Convert your text to any case format instantly.
How to Use the Case Converter
Type or paste your text into the input field, then click any of the case format buttons to convert it instantly. The converted text appears in the output area below, ready to copy. Click "Copy" to copy the result to your clipboard.
Understanding Text Cases
UPPERCASE
All letters are capitalized. UPPERCASE text is commonly used for acronyms, emphasis, headings, and constants in programming. In digital communication, writing in all caps is often perceived as shouting.
lowercase
All letters are converted to lowercase. This is useful for normalizing text, creating uniform data entries, and preparing text for case-insensitive comparisons in programming.
Title Case
The first letter of each word is capitalized while the rest remain lowercase. Title Case is the standard format for book titles, article headlines, and formal headings. Style guides vary on whether small words like "the," "and," and "of" should be capitalized.
Sentence case
Only the first letter of the first word is capitalized, with the rest in lowercase. This is the most natural format for regular sentences and paragraph text.
Programming Case Conventions
camelCase
Starts with a lowercase letter, with each subsequent word capitalized and no separators. This is the dominant convention for variables and functions in JavaScript, TypeScript, Java, and C#. Example: getUserProfile, totalItemCount.
PascalCase
Similar to camelCase but starts with an uppercase letter. PascalCase is used for class names in most languages and component names in React and Angular. Example: UserProfile, ShoppingCart.
snake_case
All lowercase with words separated by underscores. This is the standard in Python and Ruby, and is commonly used for database column names, API parameters, and file names. Example: user_profile, total_count.
kebab-case
All lowercase with words separated by hyphens. kebab-case is used in CSS class names, URL slugs, and HTML attributes. Example: user-profile, nav-bar.
CONSTANT_CASE
All uppercase with words separated by underscores. Used for constants and environment variables in most programming languages. Example: MAX_RETRY_COUNT, API_BASE_URL.
When to Use Each Case
- Writing headlines: Use Title Case for formal headlines or Sentence case for a modern, casual feel.
- JavaScript variables: Use camelCase for variables and functions, PascalCase for classes and components.
- Python code: Use snake_case for variables, functions, and modules; CONSTANT_CASE for constants.
- CSS classes: Use kebab-case for all class names and custom properties.
- Database columns: Use snake_case for column and table names.
- Environment variables: Use CONSTANT_CASE for all environment variables.
Tips for Consistent Naming
- Follow your project's existing conventions — consistency is more important than any single convention.
- Use a linter or formatter to automatically enforce naming conventions in your codebase.
- When converting between cases, be mindful of acronyms (e.g., HTML, API) which may need special handling.
- Bookmark this tool for quick conversions when switching between languages or file types.
Frequently Asked Questions
What text cases are supported?
What is camelCase?
What is snake_case?
What is the difference between Title Case and Sentence case?
Is my text stored or sent anywhere?
Related Tools
Word Counter
Count words, characters, sentences, paragraphs, and estimate reading time from any text.
JSON Formatter
Format, validate, and prettify JSON data with syntax highlighting and error detection.
Base64 Encode/Decode
Encode text to Base64 or decode Base64 strings back to plain text instantly.
URL Encode/Decode
Encode or decode URLs and query strings for safe transmission and debugging.