Case Converter

Free online tool. All processing is client-side. No signup needed.

How to Use the Case Converter

  1. Enter your input values above
  2. Results update automatically
  3. Copy or download the output

What is a Case Converter?

A Case Converter transforms text between different naming conventions and capitalization styles used in programming and writing: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Train-Case, lower case, UPPER CASE, Title Case, Sentence case, and more. Every programming language and framework has its preferred casing convention — JavaScript uses camelCase for variables, Python uses snake_case for functions, CSS uses kebab-case for class names, and Java/C# use PascalCase for class names. Converting between these manually is tedious and error-prone, especially for long identifiers.

How Does It Work?

Paste your text and select the target case. The converter detects the input case automatically (most cases are unique: camelCase has first word lowercase + capitals, snake_case has underscores, etc.) and applies the transformation rules. For multi-word conversions, the tool handles word boundary detection in any case format. Special handling for: acronyms (URLParser → url-parser, not u-r-l-parser), numbers (file123name stays intact), and Unicode characters.

Formula

Case Conversion Rules:\n\ncamelCase: first word lowercase, subsequent words capitalized, no separators\nPascalCase: all words capitalized, no separators\nsnake_case: all lowercase, underscore separators\nkebab-case: all lowercase, hyphen separators\nCONSTANT_CASE: all uppercase, underscore separators\nTrain-Case: all words capitalized, hyphen separators\n\nWord Splitting (detect word boundaries):\n• camelCase: split before uppercase letters → ['camel', 'Case']\n• snake_case: split at underscores → ['snake', 'case']\n• kebab-case: split at hyphens → ['kebab', 'case']\n• Title Case: capitalize first letter of each word\n\nSpecial Rules:\n• Leading/trailing underscores preserved (convention for 'private' in some languages)\n• Numbers treated as word separators: file123name → ['file', '123', 'name']

Who Uses This Tool?

Pro Tips

Frequently Asked Questions about Case Converter

Which case should I use for my project?

Follow the idiomatic convention of your language/framework:\n• JavaScript/TypeScript: camelCase\n• Python: snake_case\n• Java/C#: PascalCase (classes), camelCase (methods)\n• Rust: snake_case\n• SQL: snake_case or PascalCase depending on convention\nConsistency within a project matters more than which convention you choose.

Does case matter in URLs?

URL paths are case-sensitive on Linux/Unix servers but case-insensitive on Windows servers. Domain names are always case-insensitive. For SEO and user experience, use lowercase kebab-case for URL slugs (/my-article-name).

Free online Case Converter — no signup, 100% client-side processing. All data stays in your browser.