Case Converter
Convert text to uppercase, lowercase, title case, sentence case, camelCase, snake_case, and more.
About the Case Converter
Convert text between nine common case formats with a single click. Whether you're standardizing database column names to snake_case, formatting programming variables to camelCase, or preparing a title in Title Case, our Case Converter handles all conversions instantly. Each case format serves a specific purpose in writing, programming, and data processing.
What Is Case Converter?
Letter case is the difference between uppercase (capital) and lowercase letters, and 'case format' refers to the conventions for combining and separating words within an identifier or title. Programming languages settled on different conventions: camelCase (first word lowercase, subsequent words capitalized) is the default for JavaScript and Java variables and functions; PascalCase (every word capitalized) is used for class and component names in C#, TypeScript, and React; snake_case (words separated by underscores) is standard in Python, Ruby, Rust, and SQL; kebab-case (words separated by hyphens) is used in CSS class names, URLs, and file names; CONSTANT_CASE (all uppercase with underscores) marks constants and environment variables. For natural language, Title Case capitalizes every major word (used in headlines and book titles), Sentence case capitalizes only the first word of each sentence, and UPPERCASE/lowercase change every letter. Converting between these formats requires splitting the input into words — by spaces, punctuation, or existing delimiters — then re-joining with the target convention's rules.
How to Use
- Type or paste your text into the textarea above.
- Choose a case format: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE.
- The converted text appears immediately — click 'Copy' to copy the result.
- Try different formats to see how your text transforms in each.
- Use the result directly in your code, document, or database.
Common Use Cases
- Standardizing database column and table names to snake_case
- Renaming JavaScript variables to camelCase or React components to PascalCase
- Formatting CSS class names and URL slugs as kebab-case
- Preparing article titles and headlines in Title Case
- Normalizing constants and environment variables to CONSTANT_CASE
Examples
user login count
camelCase: userLoginCount PascalCase: UserLoginCount snake_case: user_login_count kebab-case: user-login-count CONSTANT_CASE: USER_LOGIN_COUNT
One phrase rendered in five programming case formats.
Tips & Best Practices
- camelCase: first word lowercase, subsequent words capitalized — standard for JavaScript variables.
- PascalCase: all words capitalized — used for React components and C# class names.
- snake_case: words separated by underscores — standard for Python, Ruby, and SQL column names.
- kebab-case: words separated by hyphens — used in CSS class names and URL slugs.
Frequently Asked Questions
How does the tool split words for programming cases?
It treats spaces, hyphens, and underscores as delimiters and also splits at boundaries between lowercase and uppercase letters (so 'camelCase' becomes the words 'camel' and 'Case'). This lets it convert between camelCase, snake_case, kebab_case, and PascalCase reliably.
Which case is best for URLs?
kebab-case (lowercase with hyphens) is the convention for URL slugs. Hyphens are word separators to Google's crawler, while underscores are not, so 'my-article' ranks better as separate words than 'my_article'.
What is the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every major word, suited to headlines and book titles. Sentence case capitalizes only the first letter of each sentence, suited to body text and prose.
Does the converter handle acronyms like 'URL' or 'ID'?
It applies the selected case format uniformly, so 'URLParser' may become 'urlparser' in lowercase or 'UrlParser' in PascalCase. For identifiers that must preserve acronym casing, adjust the result manually after conversion.
This case converter runs entirely in your browser. No data is uploaded to any server. Your privacy is completely protected.
Related Tools
Word Counter
Count words, characters, sentences, and paragraphs. Get reading time estimates for your text.
Regex Tester
Test regular expressions against text with real-time matching. See matches, groups, and replacements.
Text Deduplicator
Remove duplicate lines from text. Sort alphabetically, keep first occurrence, or remove all duplicates.
Lorem Ipsum Generator
Generate Lorem Ipsum placeholder text for your designs. Customize paragraph count and length.