🔤 Text Case Converter

📐 工作原理与说明
转换规则:upper / lower 全量大小写;title 每词首字母大写;sentence 句首及 .!? 后首字母大写;camel / pascal / snake / kebab / constant 先分词再加连接符;alternate 字母奇偶交替大小写;invert 逐字符反转大小写;trim 去全部空白

Switch English text between lower case, UPPER CASE, Title Case and Sentence case in one click for variable naming, headings and document formatting.

示例文本:
字符: 0 单词: 0 行数: 0

🎯 转换结果

点击下方按钮进行转换...
大写HELLO WORLD
小写hello world
首字母大写Hello World
句首大写Hello world
小驼峰helloWorld
大驼峰HelloWorld
下划线hello_world
连字符hello-world
常量HELLO_WORLD
交替hElLo WoRlD
反转hELLO wORLD
去空白HelloWorld
一次性导出当前文本在 12 种命名风格下的转换结果

📖 格式说明

📚 深度解析:文本大小写转换

💡 常见使用场景

  • 变量与字段命名规范化:把不一致的大小写统一为全大写、全小写或首字母大写,便于代码与数据对齐。
  • 标题与展示文案:按品牌规范把标题转为 Sentence case 或 Title Case。
  • CSV/批量文本清洗:对成千上万行做统一大小写,避免重复键。
hello world 转首字母大写
输入「hello world」,首字母大写输出「Hello World」,全大写输出「HELLO WORLD」;用于把导入的用户名统一为展示格式。

❓ 常见问题(FAQ)

Title Case 会把所有词首字母都大写吗?
常见做法对冠词/连词(a/an/the/and)小写,但规则各语言不同;本工具提供「全词首字母大写」与「仅句首大写」两种,按需要选。
中文受影响吗?
不影响。大小写只针对拉丁字母;中文、数字、符号原样保留。

Formula & Standard References

Item Formula / Note Source / Standard
Conversion types the common conversions are upper case lower case and title case Unicode Standard Chapter 3, case mapping
Title case title casing depends on word boundaries with special handling at hyphens and apostrophes Unicode UAX #29, word boundaries
Lossless assumption case conversion is not always reversible so original casing can be lost Unicode CaseFolding.txt
⚠️ 使用说明与注意事项