Camel Case to Kebab Case Converter

將 userProfileImage 轉為 user-profile-image。

免費、私密,並在你的瀏覽器中處理。

偵測:snake_case
kebab-case 輸出
user-profile-image-url

所有命名格式

camelCase
userProfileImageUrl
PascalCase
UserProfileImageUrl
snake_case
user_profile_image_url
kebab-case
user-profile-image-url
CONSTANT_CASE
USER_PROFILE_IMAGE_URL
dot.case
user.profile.image.url
path/case
user/profile/image/url

轉換會在瀏覽器本機執行,輸入不會傳送到轉換伺服器。

範例

輸入輸出
userProfileImageuser-profile-image
backgroundColorbackground-color
apiResponseUrlapi-response-url

此轉換器如何運作

貼上文字或識別字後,工具會偵測單字邊界與常見分隔符號,再依所選命名慣例格式化結果。

  • 先切分 camelCase 單字邊界。
  • 小寫化並以連字號連接。

常見使用情境

從 JS variable 建立 slug、custom element、CSS 或工具 key。

將應用程式識別字轉為 URL/config 格式。