空格分隔(hello world)、驼峰(helloWorld)、下划线(hello_world)、
短横线(hello-world)、常量格式(HELLO_WORLD)均可自动识别并转换。
支持中英文混合。
Space-separated, camelCase, snake_case, kebab-case, and CONSTANT_CASE are all auto-detected and converted.
Supports mixed Chinese and English text.
Click any conversion button to instantly transform the text: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, or Title Case.
The original text is preserved — each conversion creates a new output you can copy.
Use Copy to copy the converted result to your clipboard.
This is especially useful for converting variable names between different programming language conventions.
在输入区域粘贴或输入文本。
点击任意转换按钮即可即时转换:camelCase、PascalCase、snake_case、kebab-case、CONSTANT_CASE 或 Title Case。
原始文本会保留——每次转换生成新的可复制输出。
点击 Copy 复制转换结果到剪贴板。
适用于在不同编程语言命名约定之间转换变量名。
Frequently Asked Questions常见问题
When should I use camelCase vs snake_case? — camelCase and PascalCase are common in JavaScript, Java, C#, and TypeScript. snake_case is standard in Python, Ruby, and SQL. kebab-case is used in CSS, HTML attributes, and URLs.
What is PascalCase? — PascalCase (also called UpperCamelCase) capitalizes the first letter of every word with no separators. Example: MyVariableName. It is used for class names in most languages.
Does it handle spaces and special characters? — Yes. The converter intelligently splits on spaces, underscores, hyphens, and capital letters to correctly parse words before applying the target format.