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.
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.
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.
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.
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.
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.