Kebab Case to Snake Case Converter
將 user-profile-image 轉為 user_profile_image。
免費、私密,並在你的瀏覽器中處理。
偵測:snake_case
snake_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 |
| created-at | created_at |
| api-response-url | api_response_url |
此轉換器如何運作
貼上文字或識別字後,工具會偵測單字邊界與常見分隔符號,再依所選命名慣例格式化結果。
- 連字號視為單字邊界並改為底線。
- 輸出正規化為小寫 snake_case。
常見使用情境
將 slug/CSS 名稱轉為 Python、SQL 或資料欄位慣例。
在 API 或資料庫 mapping 前正規化識別字。