Kebab Case Converter
產生適合 slug、設定鍵與 CSS 周邊工作流程的 kebab-case。
免費、私密,並在你的瀏覽器中處理。
偵測:snake_case
kebab-case 輸出
user-profile-image-url
所有命名格式
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 | user-profile-image |
| userProfileImage | user-profile-image |
| user_profile_image | user-profile-image |
此轉換器如何運作
貼上文字或識別字後,工具會偵測單字邊界與常見分隔符號,再依所選命名慣例格式化結果。
- 輸入 token 先正規化為小寫。
- 以連字號連接單字。
常見使用情境
產生 slug、config key、custom element 等名稱。
將混合命名正規化為 URL/CSS 周邊格式。