How to use the Case Converter
1. Type or paste your text in the input field.
2. Click any conversion type button to transform the text.
3. The output appears in the result box instantly.
4. Click Copy to copy the result to your clipboard.
What is it?
Case conversion is a fundamental text transformation task in programming, writing, and data processing. Different naming conventions are used for different purposes across programming languages and contexts.
camelCase is the JavaScript convention for variable names. PascalCase is used for class and component names in most languages. snake_case is preferred in Python and database column names. kebab-case is used for HTML attributes, CSS classes, and URL slugs. CONSTANT_CASE denotes immutable values in many languages.
This tool intelligently splits input text by spaces, hyphens, underscores, dots, and camelCase transitions before converting, so you can paste any format as input and get any format as output.
Example
the quick brown fox
UPPER CASE: THE QUICK BROWN FOX lower case: the quick brown fox Title Case: The Quick Brown Fox camelCase: theQuickBrownFox PascalCase: TheQuickBrownFox snake_case: the_quick_brown_fox kebab-case: the-quick-brown-fox CONSTANT_CASE: THE_QUICK_BROWN_FOX
The tool detects word boundaries from spaces, hyphens, underscores, and camelCase transitions automatically.
Benefits
Convert variable names to any language's convention instantly
camelCase for JavaScript, snake_case for Python, PascalCase for C# and Java, kebab-case for CSS and URLs — one click each.
Rename multiple identifiers to a consistent style before a refactor
Convert a list of names all at once rather than renaming field by field — consistent casing across the entire batch.
Fix inconsistent naming in copied or imported code
Normalise casing before adding to your codebase so new code matches your style guide without a follow-up cleanup pass.
Convert API field names between snake_case and camelCase
REST APIs often use snake_case while JavaScript clients use camelCase — convert between them without writing a mapping function.
Frequently asked questions
Can I convert between any two cases?
Yes! Paste any format — the tool automatically detects word boundaries from spaces, hyphens, underscores, dots, and camelCase transitions, then converts to your target format.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (firstName), while PascalCase starts with an uppercase letter (FirstName). PascalCase is also called UpperCamelCase.
When should I use snake_case vs kebab-case?
snake_case is conventional in Python variables and database column names. kebab-case is used in URLs, HTML attributes, and CSS class names because hyphens are URL-safe.
What is CONSTANT_CASE used for?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is the convention for constants and environment variable names in most programming languages.