Case Converter

在同一個工具中處理一般文字大小寫與開發者識別字。文章文字可用 writing case,變數、欄位、class、URL 與設定鍵則可使用 developer naming format。

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

偵測:snake_case
camelCase 輸出
userProfileImageUrl

所有命名格式

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

一般文字大小寫格式

一般文字格式會保留標點、空白與換行,只改變字母大小寫,不會像開發者識別字那樣重新切分 token。

UPPERCASE
USER_PROFILE_IMAGE_URL
lowercase
user_profile_image_url
Title Case
User_Profile_Image_URL
Sentence case
User_profile_image_url

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

範例

輸入輸出
hello worldhelloWorld
user_profile_imageuserProfileImage
user-profile-imageuserProfileImage

此轉換器如何運作

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

  • 一般文字格式會保留標點、空白與換行,只調整字母大小寫。
  • 開發者格式會先依分隔符與 case 邊界切分,再重建識別字。

常見使用情境

在不移除標點的情況下,把文字轉成 UPPERCASE、lowercase、Title Case 或 Sentence case。

把同一段輸入轉為 camelCase、snake_case、PascalCase、kebab-case 等開發者命名格式。