🔀Coding Case Converter

Enter any text to instantly convert it to camelCase, PascalCase, snake_case, kebab-case, and more naming conventions.

Conversion Results

Case TypeResult

Coding Case Converter — Naming Convention Guide for Developers

Naming conventions are fundamental to readable, consistent code. Each programming language has established standards, and following them makes your code immediately recognizable to other developers on the same stack. This tool parses any input — including space-separated words, existing camelCase, snake_case, or kebab-case identifiers — and converts them to all major coding cases simultaneously.

Case conventions by language:
JavaScript / TypeScript: camelCase (variables, functions), PascalCase (classes, components)
Python: snake_case (variables, functions), PascalCase (classes), SCREAMING_SNAKE_CASE (constants)
CSS / HTML: kebab-case (class names, data attributes)
SQL / Databases: snake_case (column names, table names)
Go: PascalCase (exported), camelCase (unexported), no snake_case
Environment variables: SCREAMING_SNAKE_CASE universally

The tokenizer automatically splits input on spaces, underscores, hyphens, and camelCase boundaries. This means you can paste an existing identifier in any format and convert it to another without manual editing. For example, "getUserByEmail", "get_user_by_email", and "get-user-by-email" all tokenize to the same four words: get, user, by, email.

Frequently Asked Questions

Q: Which case should I use for file names?

A: File naming conventions vary by ecosystem. JavaScript/TypeScript projects often use kebab-case for component files (user-profile.tsx) or PascalCase for React components (UserProfile.tsx). Python uses snake_case (user_profile.py). Go uses snake_case (user_profile.go). CSS/SCSS files typically use kebab-case. Follow whatever your project or framework convention specifies in its style guide.

Q: Does this tool handle abbreviations like "API" or "URL" correctly?

A: The tokenizer treats all-caps sequences as single tokens. "getUserAPIResponse" converts to words ["get", "user", "api", "response"], so the PascalCase output is "GetUserApiResponse" with "Api" rather than "API". If you need to preserve all-caps abbreviations, adjust manually after conversion.

Q: What is dot.case and when is it used?

A: dot.case separates words with periods (e.g., my.variable.name). It is rarely used in programming identifiers but appears in configuration file keys (e.g., spring.datasource.url in Java Spring properties files), namespace strings, and some logging frameworks. This tool does not output dot.case since it overlaps with property accessor syntax in most languages.