Case Converter
Convert text between different naming conventions.
How to use the Case Converter
Programming languages and configuration files use different naming conventions. This tool converts any identifier or phrase to camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, or dot.case instantly.
- 1
Paste text or an identifier
Enter a variable name, phrase, or any text in the input field. The converter handles spaces, hyphens, underscores, and mixed case input — it auto-detects word boundaries.
- 2
Click the target format
Choose the naming convention you need:
camelCase,snake_case,kebab-case,PascalCase,CONSTANT_CASE, ordot.case. The result appears in the output field immediately. - 3
Copy the output
Click "Copy Output" to copy the converted identifier to your clipboard, ready to paste into your code editor or configuration file.
Frequently asked questions
When should I use camelCase vs snake_case?
camelCase (getUserName) is the convention for variables and functions in JavaScript, Java, and Swift. snake_case (get_user_name) is the standard in Python, Ruby, and SQL column names. Follow the convention of the language or codebase you are working in.
What is PascalCase used for?
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word with no separators. It is the convention for class names, TypeScript interfaces, and React components: UserProfile, ButtonGroup, ApiResponse.
Where is kebab-case used?
kebab-case is standard for CSS class names (.nav-bar), HTML attributes, URL slugs, and npm package names. It cannot be used directly as a JavaScript variable name because the - is interpreted as subtraction.
What is CONSTANT_CASE?
CONSTANT_CASE (all uppercase with underscores) is used for constants and environment variables: API_BASE_URL, MAX_RETRIES, NODE_ENV. It signals that the value should not change at runtime.
What is dot.case?
dot.case (user.profile.name) is used in configuration files (Java .properties files, Spring), some logging frameworks, and certain CLI tools. It mirrors the dotted-path syntax for nested object access.
How does the converter handle mixed input?
The tool splits your input on spaces, hyphens, underscores, and camelCase boundaries, then reassembles the words in the target format. So "myVariableName", "my-variable-name", and "my variable name" all produce the same output for any chosen case format.