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. Everything runs locally: String Case Converter and other values are processed on your device, never sent to a server.
Core Features
- 8 Format Conversion: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Sentence case
- Auto Detection: Smart detection of input string naming format
- Batch Processing: One string per line, batch conversion
- One-Click Copy: Click any result row to copy
- Real-time Preview: Convert as you type, no button needed
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).