ข้อความ
Case Converter
แปลงข้อความหรือตัวระบุเป็นทุกสไตล์ที่นิยมใช้พร้อมกัน — camelCase, snake_case, kebab-case และอื่นๆ รู้จักขอบเขตคำใน camelCase/PascalCase ตัวย่อ (XMLParser → XML + Parser) และตัวเลข
The tool detects word boundaries in any text or identifier — spaces, underscores, hyphens, camelCase/PascalCase boundaries, and abbreviations — and instantly converts the result into every common naming style.
Naming styles
- camelCase — first word lowercase, every following word capitalized, no separators (myVariableName).
- PascalCase — every word capitalized (MyClassName) — typical for class names.
- snake_case — all words lowercase, joined with underscores (my_variable_name) — common in Python and databases.
- kebab-case — words joined with hyphens (my-page-name) — the standard for URLs and CSS classes.
- CONSTANT_CASE, Title Case, Sentence case — for constants and readable headings.
Common uses
- Renaming a variable or function to match another language's convention (e.g. Python's snake_case → JavaScript's camelCase).
- Turning an article title into a URL slug.
- Normalizing database column names or API fields to one consistent style.
Things to keep in mind
Abbreviations (XMLParser, HTTPClient) are recognized as single words automatically, so conversion doesn't break them into individual letters.
Converting to lower case or UPPER CASE is irreversible — keep the original around if you'll need it back.
บทความเกี่ยวกับเครื่องมือนี้: camelCase, snake_case, kebab-case: ควรใช้รูปแบบไหนเมื่อไหร่
คำถามที่พบบ่อย
เครื่องมือนี้รองรับรูปแบบการตั้งชื่อแบบไหนบ้าง?
รองรับ camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, lower case, UPPER CASE, dot.case และ path/case โดยแปลงได้พร้อมกันทุกรูปแบบในครั้งเดียว
เครื่องมือรู้ขอบเขตคำใน camelCase หรือ PascalCase ได้อย่างไร?
ระบบจะแยกคำตรงจุดที่ตัวอักษรเปลี่ยนจากพิมพ์เล็กเป็นพิมพ์ใหญ่ และแยกกลุ่มตัวย่อพิมพ์ใหญ่ติดกันออกจากคำถัดไปอย่างถูกต้อง เช่น XMLParser จะถูกแยกเป็น XML และ Parser รวมถึงตัวเลขก็ถูกนับเป็นขอบเขตคำแยกด้วย
ข้อความที่พิมพ์หรือวางในเครื่องมือนี้ถูกส่งไปที่เซิร์ฟเวอร์หรือไม่?
ไม่ ทุกการแปลงทำงานด้วย JavaScript ในเบราว์เซอร์ของคุณทั้งหมด ไม่มีข้อความใดถูกอัปโหลดหรือส่งไปยังเซิร์ฟเวอร์
ทำไมตัวพิมพ์ใหญ่เล็กถึงมีความหมายกับโค้ดเลย?
ในภาษาโปรแกรมส่วนใหญ่ ตัวพิมพ์ใหญ่เล็กไม่ส่งผลทางเทคนิคต่อการทำงาน (ยกเว้น identifier ที่สนใจตัวพิมพ์ใหญ่เล็ก) แต่รูปแบบที่สม่ำเสมอสำคัญมากต่อความอ่านง่าย และต่อ linter, IDE และเครื่องมือสร้างเอกสาร ซึ่งมักคาดหวังรูปแบบเฉพาะสำหรับเอนทิตีแต่ละประเภท
สามารถกู้คืนข้อความต้นฉบับหลังแปลงได้หรือไม่?
ไม่เสมอไปแบบเป๊ะ ๆ การแปลงเป็นตัวพิมพ์เล็กหรือใหญ่ทั้งหมดจะย้อนกลับไม่ได้หากต้นฉบับมีตัวพิมพ์ใหญ่เล็กผสมกัน — ข้อมูลว่าตัวอักษรใดเคยเป็นตัวพิมพ์ใหญ่จะสูญหายไป