Case converter
Change the case of text to camel, capital and other cases.
Input
Output
Readme
What is text case conversion?
Text case conversion is the process of transforming text between different formatting styles used in writing and programming. Different cases serve specific purposes: camelCase for JavaScript variables, snake_case for Python functions, CONSTANT_CASE for configuration values, and many others. Each case style follows specific rules about capitalization, word separation, and formatting that make code more readable and conform to language conventions.
Tool description
The Case Converter tool transforms text between multiple case formats commonly used in programming and writing. It supports various naming conventions including camelCase, snake_case, PascalCase, CONSTANT_CASE, and more. The tool automatically converts your input text to the selected case format, making it easy to adapt text to different coding standards and style guides.
Examples
Input: "hello world example"
- Camel Case: helloWorldExample
- Pascal Case: HelloWorldExample
- Snake Case: hello_world_example
- Constant Case: HELLO_WORLD_EXAMPLE
- Dot Case: hello.world.example
- Path Case: hello/world/example
- Capital Case: Hello World Example
- Sentence Case: Hello world example
Input: "UserProfileSettings"
- Camel Case: userProfileSettings
- Snake Case: user_profile_settings
- Constant Case: USER_PROFILE_SETTINGS
- Dot Case: user.profile.settings
Features
- Multiple Case Formats: Supports 9 different case conversion styles
- Real-time Conversion: Instant transformation as you type
- Visual Examples: Each format shows a preview badge with example output
- Searchable Dropdown: Quick filtering to find the desired case format
- One-Click Copy: Copy converted text to clipboard instantly
Use cases
- Code Refactoring: Convert variable and function names when switching between programming languages
- API Development: Transform endpoint names to match different naming conventions
- Database Design: Convert table and column names to preferred database naming standards
- Documentation Writing: Standardize terminology across technical documentation
- Style Guide Compliance: Ensure code follows team or project naming conventions
Supported Case Formats
- No Case: Text without any transformations
- Camel Case: firstWordLowerCaseFollowingUpperCase (common in JavaScript, Java)
- Pascal Case: FirstWordAndFollowingUpperCase (common in C#, class names)
- Snake Case: words_separated_by_underscores (common in Python, Ruby)
- Constant Case: WORDS_SEPARATED_BY_UNDERSCORES_UPPERCASE (for constants)
- Dot Case: words.separated.by.dots (package names, namespaces)
- Path Case: words/separated/by/slashes (file paths, URLs)
- Capital Case: Words Separated By Spaces Capitalized (titles, headers)
- Sentence Case: First word capitalized rest lowercase (natural language)