Case Converter
Convert text between different letter cases instantly. Supports programming conventions like camelCase, snake_case, kebab-case, and more. Everything runs in your browser — no data is sent anywhere.
Convert To
About This Tool
The Case Converter transforms text between ten different naming and formatting conventions. It is useful for:
- Formatting variable and function names for different programming languages
- Converting headings and titles to the correct case
- Cleaning up text that was typed in the wrong case
- Converting between naming conventions (e.g., camelCase to snake_case)
All processing happens locally in your browser. Your text is never sent to a server.
FAQ
What is camelCase?
camelCase is a naming convention where the first word starts with a lowercase letter and each subsequent word starts with an uppercase letter, with no spaces or separators. It is widely used for variable and function names in JavaScript, Java, and many other languages. Example:
myVariableName.What is the difference between snake_case and kebab-case?
Both use lowercase words, but snake_case separates words with underscores (_) while kebab-case uses hyphens (-). snake_case is common in Python, Ruby, and database column names. kebab-case is used in CSS class names, URL slugs, and file names. Example:
my_variable_name vs my-variable-name.When should I use PascalCase vs camelCase?
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word, including the first. It is typically used for class names, type names, and component names (e.g., in React). camelCase leaves the first letter lowercase and is used for variables, functions, and methods. The convention depends on the programming language and project style guide.
What is CONSTANT_CASE used for?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uses all uppercase letters with underscores between words. It is the standard convention for constant values and environment variables in most programming languages. Examples:
MAX_RETRY_COUNT, API_BASE_URL, DATABASE_HOST.