Case Converter
在同一個工具中處理一般文字大小寫與開發者識別字。文章文字可用 writing case,變數、欄位、class、URL 與設定鍵則可使用 developer naming format。
免費、私密,並在你的瀏覽器中處理。
偵測:snake_case
camelCase 輸出
userProfileImageUrl
所有命名格式
camelCase
userProfileImageUrlPascalCase
UserProfileImageUrlsnake_case
user_profile_image_urlkebab-case
user-profile-image-urlCONSTANT_CASE
USER_PROFILE_IMAGE_URLdot.case
user.profile.image.urlpath/case
user/profile/image/url一般文字大小寫格式
一般文字格式會保留標點、空白與換行,只改變字母大小寫,不會像開發者識別字那樣重新切分 token。
UPPERCASE
USER_PROFILE_IMAGE_URLlowercase
user_profile_image_urlTitle Case
User_Profile_Image_URLSentence case
User_profile_image_url轉換會在瀏覽器本機執行,輸入不會傳送到轉換伺服器。
範例
| 輸入 | 輸出 |
|---|---|
| hello world | helloWorld |
| user_profile_image | userProfileImage |
| user-profile-image | userProfileImage |
此轉換器如何運作
貼上文字或識別字後,工具會偵測單字邊界與常見分隔符號,再依所選命名慣例格式化結果。
- 一般文字格式會保留標點、空白與換行,只調整字母大小寫。
- 開發者格式會先依分隔符與 case 邊界切分,再重建識別字。
常見使用情境
在不移除標點的情況下,把文字轉成 UPPERCASE、lowercase、Title Case 或 Sentence case。
把同一段輸入轉為 camelCase、snake_case、PascalCase、kebab-case 等開發者命名格式。