Case Converter
Convert text between uppercase, lowercase, title case, sentence case, and more online. Free case converter for any text format.
About Text Case Converter
Convert text between different case formats instantly. Useful for programming variable names, file naming conventions, formatting titles and headlines, and more.
How to Use Case Converter
Paste your text
Enter the text or identifier you want to convert. Single words, multi-word phrases, and full sentences all work.
View all conversions
The tool displays all common cases simultaneously — camelCase, PascalCase, snake_case, kebab-case, UPPER_SNAKE, Title Case, sentence case, UPPER CASE, and lower case.
Copy the format you need
Click the format you want to copy it to your clipboard. This is particularly useful when you're bulk-renaming variables during a refactor.
Iterate or batch convert
Process multiple items at once by pasting in a line-separated list, or convert individual identifiers one at a time. Conversions are instant — no submit button required.
When to Use Case Converter
Code refactoring
Renaming variables and functions across naming conventions is a routine part of keeping a codebase consistent. Convert snake_case database columns to camelCase JavaScript variables, PascalCase classes to kebab-case CSS files, or bulk-translate Python API responses to JavaScript-friendly camelCase. It saves a lot of manual editing time during a refactor, especially when you're moving identifiers between languages.
Content writing and editing
Long stretches of ALL CAPS text are hard to read, and Title Case or sentence case generally land better for publication. The tool quickly normalizes emphatic emails, screen-shouted social media copy, or anything else that arrived in the wrong register, so you can drop it into your CMS without manual retyping.
URL slug generation
Article titles need to become URL-safe slugs — 'My First Post!' becomes 'my-first-post'. Kebab-case with punctuation stripped and whitespace normalized is the standard pattern for blog URLs, file names, and identifiers, and the converter handles the transformation in one step.
Database to API mapping
SQL columns are typically snake_case while JSON keys for REST APIs tend to be camelCase, and class properties often want PascalCase. The converter helps when you're hand-rolling a mapping layer in a project without an ORM, or when you're connecting two systems whose naming conventions don't agree.
Case Converter Examples
Multi-format conversion
convert this textcamelCase: convertThisText\nPascalCase: ConvertThisText\nsnake_case: convert_this_text\nkebab-case: convert-this-text\nUPPER_SNAKE: CONVERT_THIS_TEXT\nTitle Case: Convert This Text\nSentence case: Convert this text\nUPPER CASE: CONVERT THIS TEXTA single input transformed into all eight common case formats at once. You can pick the one that matches your target system, and seeing them side by side makes the relationships between conventions much clearer than memorizing each individually.
Code symbol conversion
user_full_namecamelCase: userFullName\nPascalCase: UserFullName\nkebab-case: user-full-nameA database column name moves cleanly into a JavaScript variable (camelCase), a React component name (PascalCase), or a CSS class (kebab-case). The semantic meaning stays identical; only the syntactic form changes for each language.
URL slug generation
10 Tips for Better SEO in 2024!kebab-case: 10-tips-for-better-seo-in-2024\nsnake_case: 10_tips_for_better_seo_in_2024An article title becomes a URL slug. Punctuation gets stripped, whitespace normalizes to a single separator, and everything lowercases. This is the standard pattern for blog URLs and file names that need to remain readable but URL-safe.
Tips & Best Practices for Case Converter
- 1.Pick the case for the context. JavaScript variables go in camelCase, classes and constructors in PascalCase, constants in UPPER_SNAKE_CASE, CSS classes in kebab-case, Python identifiers and most database columns in snake_case. Following the host language's convention makes the code feel idiomatic.
- 2.Watch how acronyms get handled. Is 'URL' rendered as 'Url' or 'URL' in camelCase? Conventions vary — some style guides keep acronyms uppercase ('XMLHttpRequest'), others lowercase everything after the first letter. Check your team's preference and verify the output matches.
- 3.Numbers in identifiers are an edge case. 'version2' and 'version_2' get treated differently by different tools, depending on whether numbers count as a word boundary. Inspect the output if you're converting identifiers that mix letters and digits.
- 4.Don't convert the values inside strings. The tool changes the entire input. If you paste in 'API_KEY = "AbC123"' and convert to camelCase, the value 'AbC123' will be mangled along with the variable name. Convert identifiers separately from the strings they contain.
- 5.Consistency beats personal preference. If you're adding a new file to a codebase that's already using snake_case, write the new code in snake_case even if you happen to prefer camelCase. Mixed styles are harder to read than any single style.
- 6.For Title Case, remember the small-word rule. 'The Lord of the Rings' is proper Title Case — articles and short prepositions stay lowercase unless they appear as the first word. Tools sometimes capitalize every word, which produces 'The Lord Of The Rings' and looks slightly off.
Frequently Asked Questions
Related Tools
Word Counter
Count words, characters, sentences, and paragraphs online. Free word counter with reading time estimation and keyword density.
Character Counter
Count characters with and without spaces online. Free character counter for Twitter, SMS, titles, and other length-limited content.
Line Counter
Count lines in text online with blank line detection and statistics. Free line counter for code, logs, and text file analysis.
String Reverse
Reverse characters, words, or lines in text online. Free string reversal tool for text manipulation and palindrome checking.
Reverse Words
Reverse the order of words in text online. Free word reversal tool that flips word sequence while keeping characters intact.
Sort Lines
Sort text lines alphabetically, numerically, or by length online. Free line sorter with ascending, descending, and custom options.