正在加载,请稍候…

String Case Converter

Convert strings between different case formats: camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, dot.case, and more. Instantly transform variable names for different programming languages.

How to Use

  1. Step 1: Enter or paste your text into the input field.
  2. Step 2: Select the target case format (camelCase, PascalCase, snake_case, etc.).
  3. Step 3: The converted text appears instantly. Click Copy to copy it.

Frequently Asked Questions

What case formats are supported?

Supported formats include camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, Title Case, UPPER CASE, lower case, and dot.case.

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (e.g. myVariable). PascalCase starts with an uppercase letter (e.g. MyClass).

Which naming convention does each language use?

JavaScript/TypeScript: camelCase for vars/functions, PascalCase for classes; Python: snake_case for functions, PascalCase for classes; CSS: kebab-case; Go: camelCase/PascalCase for unexported/exported; Constants: SCREAMING_SNAKE_CASE across most languages.

Which naming convention should I use for different contexts?

camelCase (e.g., myVariable) is used for JavaScript variables and functions; PascalCase for class names and React components; snake_case for Python variables, database column names, and URLs; kebab-case for CSS class names, HTML attributes, and URL paths; SCREAMING_SNAKE_CASE for constants and environment variables; Title Case for headings and book titles.