Toolalize

เครื่องมือแปลงรูปแบบตัวอักษร

แปลงข้อความระหว่าง camelCase, PascalCase, snake_case, kebab-case และอื่นๆ ผลลัพธ์ทันทีพร้อมปุ่มคัดลอก

camelCase
PascalCase
snake_case
SCREAMING_SNAKE
kebab-case
ตัวพิมพ์ใหญ่
ตัวพิมพ์เล็ก
ตัวอักษรขึ้นต้นทุกคำ
ตัวอักษรขึ้นต้นประโยค

ตัวอย่างทั่วไป

ข้อความนำเข้าcamelCasesnake_casekebab-case
hello worldhelloWorldhello_worldhello-world
user nameuserNameuser_nameuser-name
background colorbackgroundColorbackground_colorbackground-color
api endpointapiEndpointapi_endpointapi-endpoint
get user by idgetUserByIdget_user_by_idget-user-by-id

คํา ถาม ที่ ถาม บ่อย ๆ

camelCase เขียนคำประสมโดยไม่มีช่องว่าง โดยคำแรกเป็นตัวพิมพ์เล็ก และคำถัดไปขึ้นต้นด้วยตัวพิมพ์ใหญ่ — เช่น "backgroundColor" หรือ "getUserById" เป็นรูปแบบที่นิยมในภาษา JavaScript, TypeScript, Java, Swift และ Kotlin
PascalCase (หรือ UpperCamelCase) ขึ้นต้นทุกคำด้วยตัวพิมพ์ใหญ่ รวมถึงคำแรก — เช่น "BackgroundColor" หรือ "UserProfile" ใช้สำหรับชื่อคลาส, คอมโพเนนต์ React และ TypeScript interfaces
snake_case เชื่อมคำด้วยขีดล่าง (_) ทั้งหมดเป็นตัวพิมพ์เล็ก — เช่น "background_color" หรือ "user_id" เป็นมาตรฐานในภาษา Python, ชื่อคอลัมน์ฐานข้อมูล และพารามิเตอร์ REST API
kebab-case เชื่อมคำด้วยขีดกลาง (-) — เช่น "background-color" หรือ "user-id" เป็นมาตรฐานในชื่อ property CSS ("font-size", "border-radius"), attribute HTML และ URL slug นิยมใช้ในการพัฒนา frontend