Your data is never sent to a server or stored anywhere. All processing happens in your browser.

Case Converter — camelCase, snake_case, kebab-case

Conversion Results
camelCase
PascalCase
snake_case
UPPER_SNAKE_CASE
kebab-case
UPPER-KEBAB-CASE
Title Case
lowercase
UPPERCASE

How to Use


Type or paste text into the input field. The tool automatically detects word boundaries from camelCase, PascalCase, snake_case, kebab-case, or spaces, then displays all naming convention variants. Click the copy button next to any result.

Naming Conventions


Different programming languages and contexts use different naming conventions. JavaScript/TypeScript commonly use camelCase for variables and PascalCase for classes. Python prefers snake_case. CSS uses kebab-case. Constants often use UPPER_SNAKE_CASE. This tool converts between all major conventions, handling edge cases like acronyms (e.g., XMLParser).

Use Cases


  • Cross-language porting: convert variable names when moving code between Python (snake_case) and JavaScript (camelCase)
  • Database columns: transform SQL column names (user_name) to JSON API fields (userName) and vice versa
  • CSS class naming: derive CSS class names (user-profile) from component names (UserProfile)
  • API field mapping: create mapping tables when an external API uses a different naming convention than your codebase

Conventions by Language


  • camelCase: JavaScript/TypeScript (variables, functions), Java (variables, methods), Swift (variables, functions)
  • PascalCase: JavaScript/TypeScript (classes, React components), C# (methods, properties), Go (exported names)
  • snake_case: Python (variables, functions, modules), Ruby (variables, methods), Rust (variables, functions), SQL (column names)
  • kebab-case: CSS/SCSS (class names), HTML (attributes, custom elements), URL slugs, CLI flags
  • UPPER_SNAKE_CASE: constants in nearly every language, environment variables (NODE_ENV, DATABASE_URL)

Privacy


All text conversion happens entirely in your browser. No data is sent to a server, stored, or logged. You can safely convert variable names or identifiers containing sensitive information.

FAQ


What is the difference between camelCase and PascalCase?

Both join words and capitalize each word's first letter, but camelCase keeps the first word lowercase (myVariableName) while PascalCase capitalizes it too (MyVariableName).

Is it safe to convert sensitive variable names?

Yes. All conversion happens entirely in your browser, and the text you enter is never sent to, stored on, or logged by any server.

Are acronyms like XMLParser handled correctly?

Yes. The tool detects runs of consecutive capitals as a single word group, so identifiers containing acronyms such as XMLParser are split and converted appropriately.

Does my input need to be in a particular format?

No. Whether you type camelCase, snake_case, kebab-case, or space-separated words, the tool automatically detects word boundaries and converts to every naming convention.

Which naming conventions can it produce?

It supports the major conventions including camelCase, PascalCase, snake_case, kebab-case, and UPPER_SNAKE_CASE, displaying the result for each one at the same time.