🔠 Advanced Text Case Converter

📐 工作原理与说明
转换规则:camel / pascal / snake / kebab / constant / dot / path 先按非字母数字分词;title 每词首字母大写;sentence 句首及 .!?。!? 后首字母大写;alternate 字母奇偶交替大小写;vowel / consonant 仅元音或辅音大写;trim 去全部空白;空格批量替换为 _ 或 -;title / sentence 保留 ≥2 位全大写缩写(USA、API),不识别混合大小写专有名词(iPhone),需人工校对

Apply sentence-case and title-case rules on top of basic case conversion while preserving all-caps abbreviations such as USA and API, designed for long documents and editorial cleanup.

点击下方按钮进行转换...

🎯 转换模式(20+)

全大写HELLO WORLD
全小写hello world
标题Hello World
句首Hello world
小驼峰helloWorld
大驼峰HelloWorld
下划线hello_world
短横线hello-world
常量HELLO_WORLD
点分隔hello.world
路径hello/world
交替HeLlO
交替反hElLo
反转HELLO WORLD
随机hElLo
首字母大写Hello world - welcome to toolbox!
首字母小写hello World
元音大写hEllO wOrld
辅音大写HeLLo WoRLD
去空白helloworld
空格转下划线hello_world
空格转横线hello-world

📚 深度解析:高级大小写转换(编程命名)

💡 常见使用场景

  • 编程命名互转:在 camelCase、PascalCase、snake_case、kebab-case 之间转换,统一多语言代码风格。
  • 数据库字段与 API 字段映射:把下划线字段转前端驼峰,或反向。
  • 配置文件键规范化:批量把 YAML/JSON 键统一为某风格。
my_var_name 转 camelCase
输入「my_var_name」,camelCase 输出「myVarName」,PascalCase 输出「MyVarName」,kebab-case 输出「my-var-name」;用于把 Python 变量名改成 JS 属性名。

❓ 常见问题(FAQ)

数字边界怎么处理?
如「user2name」转 camel 通常得「user2Name」,下划线分隔更明确;含数字的命名建议显式加分隔符,避免歧义。
中文变量名能转吗?
中文非字母命名不在大小写体系内,工具会原样保留;本功能面向拉丁字母标识符。

Formula & Standard References

Item Formula / Note Source / Standard
Case mapping case conversion follows the Unicode default mappings in simple and full variants Unicode Standard Chapter 3, case mapping
Special casing sharp s and dotted i need locale specific handling Unicode SpecialCasing.txt
Length change full mappings may change the character count as one character expands into two Unicode UAX #15, normalisation forms
⚠️ 使用说明与注意事项