大小写转换器 Case Converter
快速把一段文本转换成常见大小写格式:lower / UPPER / Title / Sentence / Toggle / Start Case 等,并提供复制与下载。
Convert text into common casing formats (lowercase, UPPERCASE, Title Case, Sentence case, toggle case, and more) with copy & export support.
这是什么?
这是一个“文字大小写与命名格式转换器”。你可以把同一段文本快速变成不同风格:
比如把标题改成 Title Case,把整段内容改成 UPPERCASE,或者把短句改成 snake_case 作为变量名。
What is this?
This is a text case & naming-style converter. It helps you quickly transform the same text into different formats:
Title Case for headlines, UPPERCASE for emphasis, or snake_case for variable names, etc.
怎么用?
① 粘贴/输入文本 → ② 选择转换模式 → ③ 点击“转换” → ④ 复制结果或导出 TXT。
如果你想连续处理多段文字,建议勾选“保留换行”,这样段落结构不会被打散。
How to use?
1) Paste/type text → 2) Pick a mode → 3) Click “Convert” → 4) Copy or export.
If you’re converting multi-paragraph content, keep “Preserve line breaks” enabled.
Title Case 与 Start Case 有何区别?
– Start Case:几乎每个单词首字母都大写(更“机械”)。例如:the lord of the rings → The Lord Of The Rings
– Title Case:更接近英文标题习惯,会把 a / an / the / of / and / in 等小词在中间位置保持小写(更“像标题”)。例如:the lord of the rings → The Lord of the Rings
Difference between Title Case and Start Case?
Start Case capitalizes almost every word. Title Case follows common headline conventions, keeping short function-words lowercased when appropriate.
Sentence case 的规则是什么?
工具会尝试把每个句子的首字母大写(按 . ! ? 以及换行进行切分),并把其余字母尽量转成更自然的“句子风格”。
适合:把乱写的说明文字快速变得更像“正常句子”。
How does Sentence case work?
The tool tries to capitalize the first letter of each sentence (split by . ! ? and line breaks) and normalizes the rest for a more natural look.
snake/kebab/camel/pascal 适合什么场景?
– snake_case:后端变量、数据库字段、脚本参数等(如 user_id)。
– kebab-case:URL slug、静态页面路径(如 case-converter)。
– camelCase:JavaScript/前端变量(如 userName)。
– PascalCase:类名、构造函数、C# 类型名(如 UserProfile)。
Where are these useful?
snake_case for backend/DB fields, kebab-case for URLs, camelCase for JS variables, PascalCase for class/type names.
关于空格与换行(很重要)
– 勾选“保留换行”:每行会独立处理,段落结构保留。适合文章/邮件。
– 勾选“合并多余空格”:把连续空格压缩成一个,适合从网页复制出来的文本。
– 勾选“去除首尾空白”:清理头尾多余空格,适合生成变量名/slug。
Spaces & line breaks (important)
Preserve line breaks keeps each line processed separately. Collapse spaces helps with messy copied text. Trim edges is great for slugs/identifiers.
说明:本工具在浏览器本地运行,不会上传你的文本。转换规则属于“实用优先”的近似实现,
在极端复杂的英文缩写、专有名词、混合语言(中英混排)等场景下,建议你转换后快速人工检查一遍。
Note: This tool runs locally in your browser and does not upload your text. Rules are pragmatic approximations.
For edge cases (acronyms, proper nouns, mixed-language text), please do a quick manual review after conversion.
