Kebab Case to Camel Case Converter
將 user-profile-image 這類以連字號分隔的開發者識別字轉為 userProfileImage 這類 camelCase。
免費、私密,並在你的瀏覽器中處理。
偵測: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轉換會在瀏覽器本機執行,輸入不會傳送到轉換伺服器。
範例
| 輸入 | 輸出 |
|---|---|
| user-profile-image | userProfileImage |
| api-response-url | apiResponseUrl |
| feature-flag-name | featureFlagName |
此轉換器如何運作
貼上文字或識別字後,工具會偵測單字邊界與常見分隔符號,再依所選命名慣例格式化結果。
- 連字號會視為單字邊界,並從 camelCase 結果中移除。
- 第一個 token 維持小寫,後續 token 的首字母改為大寫。
常見使用情境
將設定鍵、slug、產生的名稱與匯入識別字轉為 JavaScript 或 TypeScript 程式碼可用的格式。
真正的 CSS 屬性若涉及 Custom Properties、float 或 Vendor Prefix,請使用專用的 CSS Property Converter。