Case Converter

Developer

Transform text between camelCase, snake_case, PascalCase, UPPERCASE, and lowercase. Essential naming convention converter.

lower case
UPPER CASE
camelCase
PascalCase
snake_case
kebab-case
CONSTANT_CASE
Title Case
Sentence case
Dot.Case

What is a Case Converter?

A case converter transforms text between different naming conventions used in programming. Consistent naming is critical for code readability, style guide compliance, and cross-language interoperability. This tool instantly converts between 10 common case formats including camelCase, snake_case, PascalCase, kebab-case, and more.

Different programming languages and frameworks have their own naming conventions — JavaScript uses camelCase for variables and PascalCase for classes, Python uses snake_case, CSS uses kebab-case, and environment variables use CONSTANT_CASE. Converting between these formats is a daily task for developers.

Case Naming Conventions

camelCase

First word lowercase, subsequent words capitalized. Standard for JavaScript/TypeScript variables, Java methods, and JSON property names.

PascalCase

Every word capitalized, no separators. Used for class names in JavaScript, TypeScript, C#, Java, and React component names.

snake_case

Words separated by underscores, all lowercase. The Python standard (PEP 8) for variables and functions. Also used in Ruby and database column names.

kebab-case

Words separated by hyphens, all lowercase. Standard for CSS class names, HTML attributes, URL slugs, and CLI flag names.

CONSTANT_CASE

All uppercase with underscores. Used for constants in JavaScript, environment variables, and compile-time configuration values.

dot.case

Words separated by dots, all lowercase. Common in Java package names, property file keys, and configuration namespaces.

Frequently Asked Questions

Which naming convention should I use?

Follow your language or framework's standard: camelCase for JavaScript, snake_case for Python, PascalCase for C# and React components, kebab-case for CSS and URLs, CONSTANT_CASE for environment variables.

What is the difference between camelCase and PascalCase?

In camelCase the first letter is lowercase (myVariable), while PascalCase capitalizes the first letter too (MyVariable). PascalCase is sometimes called UpperCamelCase.