Copied!
Text Tool

String Case Converter

Convert text between camelCase, snake_case, kebab-case, PascalCase, UPPER_SNAKE_CASE, Title Case, dot.case, path/case and more programming naming conventions. This free online text case converter uses smart word splitting to detect camelCase boundaries, underscores, hyphens, dots, slashes, and spaces — then re-joins words in your target format. All processing happens in your browser.

case-converter.tool
0 chars 0 words

Frequently Asked Questions

What are the different naming conventions in programming?
The most common naming conventions are camelCase (JavaScript, Java variables), PascalCase (classes, React components), snake_case (Python, Ruby), UPPER_SNAKE_CASE (constants), kebab-case (CSS, URLs, HTML attributes), Title Case (headings), dot.case (property paths, package names), and path/case (file paths, module imports). Each convention is favored by different languages and communities, and consistency within a project is key.
How do I convert camelCase to snake_case?
To convert camelCase to snake_case, insert an underscore before each uppercase letter and then lowercase the entire string. For example, myVariableName becomes my_variable_name. This tool automatically detects camelCase word boundaries — including consecutive uppercase letters like parseHTMLString which becomes parse_html_string. Just paste your text and the conversion happens instantly.
When should I use kebab-case vs snake_case?
Use kebab-case for CSS class names, HTML attributes, URL slugs, and CLI flags — it is the web standard convention. Use snake_case for Python variables and functions, Ruby identifiers, database column names, and file names in many systems. The choice depends on the language or technology you are working with. JavaScript and CSS favor camelCase and kebab-case respectively, while Python and databases prefer snake_case. Consistency within a project matters more than the specific convention chosen.
What is PascalCase and where is it used?
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word with no separators — for example, MyClassName or UserProfileSettings. It is used for class names in most object-oriented languages (Java, C#, Python, TypeScript), React and Vue component names, TypeScript interfaces and type aliases, C# method names and properties, and namespace declarations. PascalCase signals that an identifier represents a type, class, or constructor rather than a variable or function.
How do programming languages differ in naming conventions?
Different languages have established conventions: JavaScript uses camelCase for variables and functions, PascalCase for classes. Python uses snake_case for variables and functions, PascalCase for classes, and UPPER_SNAKE_CASE for constants. Java uses camelCase for methods, PascalCase for classes. CSS uses kebab-case for properties and class names. Go uses camelCase for private and PascalCase for exported identifiers. Ruby uses snake_case for methods and variables, PascalCase for classes. Following these conventions improves readability and team collaboration.