Loading...
Transform text between camelCase, snake_case, UPPER, lower, Title Case, kebab-case, and more for code and content
Text case converters transform text between different naming conventions used in programming and writing. Each format has specific rules for capitalization, spacing, and separators to match style guides and language requirements.
Convert between programming naming conventions, ensure consistent variable naming, and format text for different contexts.
Answers about camelCase vs PascalCase, snake_case vs kebab-case, SCREAMING_SNAKE_CASE, and special character handling.
What's the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (e.g., myVariable). PascalCase starts with an uppercase letter (e.g., MyVariable). Both are used in programming, with conventions varying by language and style guide.
When should I use snake_case vs kebab-case?
snake_case (my_variable) is common in Python and databases. kebab-case (my-variable) is used in URLs, CSS, and some file naming. Both use lowercase with separators, but the separator character differs.
What is SCREAMING_SNAKE_CASE used for?
SCREAMING_SNAKE_CASE (MY_CONSTANT) is typically used for constants in programming. It's all uppercase with underscores, making constants visually distinct from variables.
How do I choose the right case format?
Follow the conventions of your programming language, framework, or team style guide. JavaScript often uses camelCase, Python uses snake_case, URLs use kebab-case. Consistency within a project is most important.
Recommendations for maintaining consistency, following language conventions, prioritizing readability, and using linting tools.
Examples of each supported case format.
camelCase: myVariableName
PascalCase: MyVariableName
snake_case: my_variable_name
kebab-case: my-variable-name
Supported formats, conversion logic, and Unicode support.