๐Ÿ”ค String Case Converter

Convert strings between camelCase, PascalCase, snake_case, kebab-case and 8 naming formats

Zero Dependencies ยท Works Offline

๐Ÿ“ฅ Input String

๐Ÿ“‹ Conversion Results

What Can the String Case Converter Do?

The String Case Converter is a free online developer tool that converts strings between 8 naming conventions: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, and Sentence case. It supports batch processing, auto-detects input format, and is ideal for code refactoring, API naming conventions, and database field mapping. All processing happens locally in your browser.

Core Features

How to Use

1. Enter the string to convert in the input box, supports multi-line batch input.

2. The tool auto-detects format and shows all 8 conversion results in real-time.

3. Click the copy button on any result row to copy a single result.

4. Click "Copy All" to get all format conversions.

Use Cases

Case 1: Code Refactoring

Batch convert JavaScript camelCase variables to Python snake_case or vice versa.

Case 2: API Design

Unify API field naming conventions, converting between JSON camelCase and database snake_case.

Case 3: CSS Class Names

Switch between BEM kebab-case and CSS Modules camelCase.

Extended Knowledge

Naming conventions vary by language: JavaScript/Java prefer camelCase, Python/Ruby use snake_case, HTML/CSS use kebab-case, C# uses PascalCase, environment variables use CONSTANT_CASE. The conversion works by first tokenizing (splitting by uppercase letters, underscores, hyphens, dots, slashes), then recombining per target format. Consecutive uppercase letters (e.g., HTMLParser) are kept as a whole to avoid incorrect splitting.

โ“ FAQ

What naming formats are supported?

8 formats: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, and Sentence case.

How is the input format detected?

Auto-detects separators (underscores, hyphens, uppercase letters, dots, slashes) to determine format.

Does it support batch conversion?

Yes. Enter one string per line for batch conversion.

How are consecutive uppercase letters handled?

Consecutive uppercase letters (like HTML in HTMLParser) are kept as a whole, not incorrectly split.

Is data uploaded to a server?

No. All conversion happens locally in your browser.

What is the difference between camelCase and PascalCase?

camelCase starts with lowercase (myVariable), PascalCase starts with uppercase (MyVariable).

String Case Converter | No Signup, Client-Side ยท No Server Uploads

Feedback: dexshuang@google.com