大小写转换器
在不同大小写格式之间转换文本:camelCase、snake_case、kebab-case 等。
在上方输入文本以查看转换结果
功能特点
即时转换
输入时查看所有格式
9 种格式
支持所有常用命名约定
开发者友好
完美用于变量和函数命名
点击复制
一键复制任何格式
Supported Case Types
lowercase
All letters in lowercase. Example: "hello world"
UPPERCASE
All letters in uppercase. Example: "HELLO WORLD"
Title Case
First letter of each word capitalized. Example: "Hello World"
camelCase
First word lowercase, subsequent words capitalized, no spaces. Used in JavaScript. Example: "helloWorld"
PascalCase
Each word capitalized, no spaces. Used for class names. Example: "HelloWorld"
snake_case
Words separated by underscores, all lowercase. Used in Python. Example: "hello_world"
kebab-case
Words separated by hyphens, all lowercase. Used in URLs and CSS. Example: "hello-world"
CONSTANT_CASE
All uppercase with underscores. Used for constants. Example: "HELLO_WORLD"
常见问题
When should I use camelCase vs snake_case?
camelCase is common in JavaScript, Java, and TypeScript. snake_case is preferred in Python, Ruby, and database column names. Follow your language's conventions.
What is PascalCase used for?
PascalCase (also called UpperCamelCase) is typically used for class names, components (like React components), and type definitions in TypeScript.
Why use kebab-case for URLs?
Kebab-case is URL-friendly as hyphens are allowed in URLs without encoding, and search engines treat hyphens as word separators for better SEO.