Case Converter
Free text case converter. Convert text to UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, path/case, mOcKiNg CaSe, and more, all at once.
Frequently asked questions
When should I use camelCase vs PascalCase?
Both join words with no separators and capitalize word boundaries โ camelCase starts with a lowercase letter (firstName), PascalCase starts with a capital (FirstName). By convention, camelCase is typically used for variables and function names in languages like JavaScript, while PascalCase is used for class and component names.
What is the difference between snake_case and kebab-case?
snake_case joins words with underscores (first_name) and is common in Python variable names and database column names. kebab-case joins words with hyphens (first-name) and is common in URLs, CSS class names, and HTML attributes โ mainly because underscores and hyphens both read as word separators, but the convention differs by ecosystem.
What is CONSTANT_CASE used for?
CONSTANT_CASE (all uppercase, underscore-separated, e.g. MAX_RETRY_COUNT) is the near-universal convention for naming constants across most programming languages, signalling at a glance that a value is fixed and shouldn't be reassigned.
What is the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every major word ("The Quick Brown Fox"), typically used for headings and titles. Sentence case only capitalizes the first letter of the whole string ("The quick brown fox"), matching normal prose punctuation rules.
What is path/case used for?
path/case joins words with forward slashes (first/name) โ used far less often than the others here, but occasionally seen in file paths or route segments built up from separate words.
What is "mocking SpongeBob case"?
MoCkInG CaSe (aka SpOnGeBoB cAsE) alternates between upper and lower case on every letter, used online to convey a sarcastic or mocking tone โ it comes from a SpongeBob SquarePants meme image. It has no real technical use; it's here for fun.