Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case instantly.
Frequently Asked Questions
myVariableName. It's used in JavaScript, Java, and Swift for variable and function names. PascalCase (also called UpperCamelCase) starts with an uppercase letter: MyClassName. It's used in C#, PHP, and most languages for class names./blog/how-to-use-case-converter. Underscores are treated as connectors, meaning word_count is indexed as a single word rather than two.
getUserName, myVariableCount. It is the standard naming convention for variables and functions in JavaScript, Java, Swift, and Kotlin. It is compact and readable, but becomes hard to parse with many joined words.
UserProfile), while camelCase starts with a lowercase letter (userProfile). PascalCase (also called UpperCamelCase) is used for class names in most languages — C#, PHP, Java, Python — and for React component names. camelCase is used for variables and functions in the same languages.
my_variable) and is the standard in Python, Ruby, and database columns. kebab-case uses hyphens (my-variable) and is used in CSS class names, HTML attributes, and URL paths. Hyphens cannot be used in most programming language identifiers because they are interpreted as the minus operator.
About This Text Case Converter
This free text case converter instantly converts any text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Paste text, click a button, and copy the result — no installation required.
When to use this tool
- Converting variable names between coding conventions
- Fixing ALL-CAPS text pasted from a document or email
- Preparing URL slugs and identifiers from a human-readable title
- Normalising text formatting in bulk before importing to a database
Standards & References
How It Works
Paste Your Text
Paste or type any text into the input area. Your original text is preserved and never modified until you choose a conversion.
Choose a Format
Click any case button — UPPER, lower, Title Case, camelCase, snake_case, kebab-case, and more. Each applies a dedicated JavaScript algorithm.
Copy the Result
The converted text appears in the output box. Click the clipboard icon to copy it to your clipboard with one click.
Common Use Cases
Variable Names in Code
Convert a human-readable label to camelCase (JavaScript) or snake_case (Python, PHP) for use as variable or function names instantly.
URL Slug Preparation
Convert page titles to lowercase before pasting into a URL slug field, or use kebab-case output directly as a clean SEO-friendly URL path.
Database Columns
Transform snake_case database column names into Title Case for display in reports and dashboards without touching the schema.
Headline Formatting
Apply consistent Title Case to article headings and subheadings across a CMS. Fix all-lowercase or ALL-CAPS titles pasted from a document in seconds.
Data Normalization
Lowercase inconsistent form submissions before storing to a database to avoid duplicates like "London", "LONDON", and "london" being treated as different values.
Social Media Bios
Apply aLtErNaTiNg case for stylized social media posts and bios, or UPPERCASE to create attention-grabbing CTAs and announcements.
Related Text Tools
Related Articles
View all articles
Title Case Isn't One Rule: How AP, Chicago, and MLA Disagree on Prepositions and Hyphens
"The Art of War" or "The Art Of War"? AP style capitalizes 4+ letter prepositions; Chicago and MLA lowercase all prepositions regardless of length. Here's how major style guides disagree on prepositions, why hyphenated compounds are the hardest case for any automated title-case tool, and why "to" as an infinitive marker needs different treatment than "to" as a preposition.
Why "JohnSmith" and "johnsmith" Are the Same Account Here But Different Accounts There: Case Sensitivity in Login Systems
"JohnSmith" and "johnsmith" might be the same account on one platform and two different accounts on another — usernames, emails, and passwords each have different case-sensitivity conventions, and none of them are universal. Here's why email local-parts are technically case-sensitive but practically never are, why username case-sensitivity varies by platform and creates genuinely hard migration problems if changed later, why passwords must remain case-sensitive for security, and why mobile autocapitalize causes invisible login failures.
Unicode Case Conversion Challenges: The Turkish I Problem, German ß, and Locale-Aware APIs
JavaScript's toUpperCase() returns the wrong character for Turkish 'i', and uppercasing German ß changes the string length from 6 to 7 characters. Here's the Unicode case conversion edge cases that cause real bugs, locale-aware API alternatives in JavaScript and Python, and why title case rules differ across languages.
Code Naming Conventions: Why camelCase, snake_case, and kebab-case Each Exist
Case conventions exist for reasons, not tradition. Here's why Python uses snake_case, JavaScript uses camelCase, CSS uses kebab-case, and how to handle naming across language boundaries when data crosses APIs and databases.
Case Converter — Transform Text to Any Case Style Instantly
Learn the difference between upper, lower, title, sentence, camelCase, PascalCase, snake_case, and kebab-case, when each is used in writing and programming, and how to convert text instantly with a free case converter.