ข้ามไปยังเนื้อหาหลัก

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

เครื่องมือสำหรับนักพัฒนา

camelCase, snake_case, kebab-case และอีก 7 รูปแบบ

ดูคำตอบอย่างรวดเร็ว

Case Converter: camelCase, snake_case, kebab-case and 7 more styles. camelCase (JS vars) · PascalCase (classes/components).

ป้อน (ระบบจะจดจำรูปแบบใดๆ โดยอัตโนมัติ)

Detected 4 words: user · profile · image · url

กระบวนการแยกคำ

  1. 1แทรกช่องว่างที่ขอบเขต camelCase (ตัวพิมพ์เล็ก → ตัวพิมพ์ใหญ่): aB → a B
  2. 2แยกตัวย่อที่เป็นตัวพิมพ์ใหญ่ต่อเนื่อง: HTTPServer → HTTP Server
  3. 3Split on all separators: space / - _ . / \
  4. 4Lowercase all → 4 word(s): user, profile, image, url
  5. 5จัดเรียงใหม่ตามกฎของแต่ละสไตล์ (ตัวอักษรตัวแรกเป็นตัวพิมพ์ใหญ่ / ตัวคั่น / ตัวพิมพ์ใหญ่-เล็ก)

ธรรมเนียมการตั้งชื่อในแต่ละภาษา

ภาษาตัวแปร/ฟังก์ชันประเภท / ชนิดค่าคงที่
JavaScript/TScamelCasePascalCaseSCREAMING_SNAKE
Pythonsnake_casePascalCaseSCREAMING_SNAKE
JavacamelCasePascalCaseSCREAMING_SNAKE
GocamelCasePascalCasecamelCase/PascalCase
Rustsnake_casePascalCaseSCREAMING_SNAKE
C#camelCasePascalCasePascalCase
CSS/HTMLkebab-case——
จดจำขอบเขต camelCase ตัวย่อที่เป็นตัวพิมพ์ใหญ่ต่อเนื่อง (HTTPServer → http + server) และตัวคั่นทั้งหมดโดยอัตโนมัติ; เก็บตัวเลขไว้ในคำที่เกี่ยวข้อง ข้อเสนอแนะตามธรรมเนียม: กำหนดรูปแบบเดียวสำหรับแต่ละรายการและบังคับใช้ด้วย linter (eslint naming-convention / pylint)

เครื่องมือนี้มีประโยชน์กับคุณไหม?

วิธีใช้งาน

  1. Paste or type content: drop code/text into the Case Converter or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

ประเด็นสำคัญ

  • Case Converter is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: camelCase, snake_case, kebab-case and 7 more styles.
  • Results come with formulas and reference tables so you can verify every number.

หลักการและสูตรการคำนวณ

Naming conventions

camelCase (JS vars) · PascalCase (classes/components)
snake_case (Python/DB) · SCREAMING_SNAKE_CASE (constants)
kebab-case (URLs/CSS) · Train-Case (HTTP headers) · dot.case (config keys)

คำถามที่พบบ่อย

How do I use the Case Converter?
Open the page and fill in the input fields — results update automatically. camelCase, snake_case, kebab-case and 7 more styles.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องแปลงรูปแบบตัวอักษร[EB/OL]. https://www.yijiansuan.com/th/c/dev/case-convert

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก