Case Converter
Convert text between different cases: camelCase, PascalCase, snake_case, kebab-case, UPPERCASE, lowercase, Title Case, and more.
About Case Converter
Naming conventions are a fundamental part of writing clean, maintainable code. Different programming languages and contexts require different casing styles -- JavaScript uses camelCase for variables, Python uses snake_case, CSS uses kebab-case, and environment variables use CONSTANT_CASE. Using the correct naming convention is not just a style preference; it is a core part of language idioms that affects code readability, team consistency, and linter compliance.
Naming Convention Reference
camelCase capitalizes each word except the first (e.g., getUserName) and is standard in JavaScript, TypeScript, Java, and C#. PascalCase capitalizes every word including the first (e.g., UserAccount) and is used for class names, React components, and C# methods. snake_case separates words with underscores (e.g., user_name) and is the standard in Python, Ruby, Rust, and SQL. kebab-case uses hyphens (e.g., page-header) and is preferred in CSS, HTML attributes, and URL slugs.
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uses uppercase letters with underscores (e.g., MAX_RETRY_COUNT) and is the universal convention for constants and environment variables across nearly all programming languages. dot.case is used in Java package names and configuration property keys. When working across multiple languages in a full-stack project, consistent case conversion between API responses (often snake_case from Python/Ruby backends) and frontend code (camelCase in JavaScript) is a daily task.
Frequently Asked Questions
What is camelCase?
camelCase capitalizes the first letter of each word except the first, with no spaces or separators. It is commonly used for variable names in JavaScript, Java, and TypeScript.
What is snake_case?
snake_case uses underscores to separate words, with all letters in lowercase. It is the standard naming convention in Python, Ruby, and Rust.
What is kebab-case?
kebab-case (also called dash-case) uses hyphens to separate words. It is commonly used in URLs, CSS class names, and HTML attributes.