🔤 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
⚠️ 使用說明與注意事項