Input
camelCasehelloWorldFoo
PascalCaseHelloWorldFoo
snake_casehello_world_foo
SCREAMING_SNAKE_CASEHELLO_WORLD_FOO
kebab-casehello-world-foo
Title CaseHello World Foo
UPPERCASEHELLO WORLD FOO
lowercasehello world foo
dot.casehello.world.foo
Auto-detects camelCase, PascalCase, snake_case, kebab-case, spaces and mixed input

When to use each case

camelCase is the standard for JavaScript and TypeScript variables, functions, and object keys. PascalCase (UpperCamelCase) is used for class names, React components, and TypeScript types. snake_case is common in Python, Ruby, and database column names. SCREAMING_SNAKE_CASE is the convention for constants and environment variables. kebab-case is used in CSS class names, HTML attributes, URL slugs, and npm package names. Title Case appears in headings and proper nouns. dot.case is used in configuration keys (e.g. logging.level) and some framework conventions.

How auto-detection works

The converter parses any input format into a sequence of words, then re-formats them into every target case. It splits on spaces, underscores, hyphens, dots, slashes, and colons. For camelCase and PascalCase input, it inserts a split point before each uppercase letter following a lowercase one (e.g. "myVariableName" → ["my", "variable", "name"]) and handles consecutive uppercase sequences like acronyms (e.g. "parseHTMLString" → ["parse", "HTML", "string"]). Mixed inputs like "my-Variable_name" are fully supported.

Case conventions by language

JavaScript / TypeScript: camelCase for variables and functions, PascalCase for classes and components, SCREAMING_SNAKE_CASE for constants. Python: snake_case for variables and functions, PascalCase for classes, SCREAMING_SNAKE_CASE for constants. CSS: kebab-case for class names and custom properties (--my-color). SQL: UPPER_SNAKE_CASE for keywords by convention, snake_case for table and column names. Go: PascalCase for exported identifiers, camelCase for unexported. Rust: snake_case for functions and variables, PascalCase for types and traits, SCREAMING_SNAKE_CASE for constants.