大小寫格式轉換器
開發者工具支援camelCase、snake_case、kebab-case等9種格式
答案速覽
Case Converter: camelCase, snake_case, kebab-case and 7 more styles. camelCase (JS vars) · PascalCase (classes/components).
輸入(任意風格自動識別)
Detected 4 words: user · profile · image · url
分詞過程
- 1在 camelCase 邊界(小寫→大寫)插入空格:aB → a B
- 2拆分連續大寫縮寫:HTTPServer → HTTP Server
- 3Split on all separators: space / - _ . / \
- 4Lowercase all → 4 word(s): user, profile, image, url
- 5按各風格規則重組(首字母大寫 / 分隔符 / 大小寫)
各語言命名慣例
| 語言 | 變數/函數 | 類/類型 | 常數 |
|---|---|---|---|
| JavaScript/TS | camelCase | PascalCase | SCREAMING_SNAKE |
| Python | snake_case | PascalCase | SCREAMING_SNAKE |
| Java | camelCase | PascalCase | SCREAMING_SNAKE |
| Go | camelCase | PascalCase | camelCase/PascalCase |
| Rust | snake_case | PascalCase | SCREAMING_SNAKE |
| C# | camelCase | PascalCase | PascalCase |
| CSS/HTML | kebab-case | — | — |
自動識別 camelCase 邊界、連續大寫縮寫(HTTPServer → http + server)及全部分隔符;數字保留在所屬單詞內。慣例建議:每個專案固定一種風格並用 linter 強制(eslint naming-convention / pylint)。
這個工具對你有幫助嗎?
怎麼用
- Paste or type content: drop code/text into the Case Converter or fill the parameters.
- Choose mode/options: switch format, rules or processing as needed.
- Live output: results appear instantly — nothing is submitted, data stays in your browser.
- One-click copy: copy the output straight into your development environment.
核心要點
- Case Converter is a free online developer tool — open and use, no sign-up.
- All calculations run locally in your browser; your data never leaves the device.
- Key capability: camelCase, snake_case, kebab-case and 7 more styles.
- Results come with formulas and reference tables so you can verify every number.
原理與公式
Naming conventions
camelCase (JS vars) · PascalCase (classes/components)
snake_case (Python/DB) · SCREAMING_SNAKE_CASE (constants)
kebab-case (URLs/CSS) · Train-Case (HTTP headers) · dot.case (config keys)
常見問題
How do I use the Case Converter?
Open the page and fill in the input fields — results update automatically. camelCase, snake_case, kebab-case and 7 more styles.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.
相關工具
相關指南
來源與更新
Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07
最近更新:
本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。
內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.
引用本頁: YiJianSuan. 大小寫格式轉換器[EB/OL]. https://www.yijiansuan.com/zh-TW/c/dev/case-convert
本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。