Penukar huruf

Tukar antara kes ayat, tajuk, huruf besar/kecil, dan gaya penamaan pembangun. Setiap alat satu peraturan — boleh dirantaikan semasa membersihkan tampalan.

Start with the right style

Tidak pasti format? Baca panduan lengkap kes teks, kemudian buka penukar yang sesuai — tajuk, perenggan, slug, atau pengecam kod.

Writing and publishing case styles

Kes ayat dan tajuk untuk penerbitan. Besar/kecil untuk Caps Lock atau slug. camelCase, PascalCase, snake_case, kebab-case untuk kod dan URL.

Developer naming conventions

camelCase fits JavaScript variables, PascalCase fits React components and classes, snake_case fits Python and SQL columns, and kebab-case fits URL paths and CSS classes. CONSTANT_CASE and dot.case cover env vars and namespaced config keys.

Which case should I use?

Use sentence case for paragraphs, emails, and most UI copy. Use title case for headlines, blog post titles, and slide titles. Use uppercase sparingly for labels or fixing caps-lock mistakes. Use lowercase before URL slugs or when normalizing messy input. For code, match your language: camelCase for JavaScript variables, PascalCase for classes and components, snake_case for Python and SQL, kebab-case for URLs and CSS classes, and CONSTANT_CASE for environment variables.

Pick one tool per job

Each converter on this page targets one capitalization rule. Chain tools when you need to normalize shouting input to lowercase, then title-case only the headline. Read the comparison guides on the blog when you are unsure which style your style guide expects.

Which text case should you use?

Common text case formats and when each one fits.
CaseExampleCommon use
Sentence caseHello worldBody copy, emails, UI strings
Title CaseHello WorldHeadlines, blog titles, slide titles
UPPERCASEHELLO WORLDLabels, emphasis, fixing caps-lock
lowercasehello worldURLs, text normalization
Capitalized CaseHello WorldEvery word capitalized (not style-guide title case)
camelCasehelloWorldJavaScript variables, JSON keys
PascalCaseHelloWorldClasses, React components, types
snake_casehello_worldPython, SQL columns, data files
kebab-casehello-worldURL slugs, CSS classes, CLI flags
CONSTANT_CASEHELLO_WORLDEnvironment variables, enums
dot.casehello.worldi18n keys, config paths

Tools in this category

Frequently asked questions

Gaya untuk tajuk blog?

Ramai menggunakan title case untuk tajuk dan kes ayat untuk subtajuk. Semak gaya rumah anda.

Adakah teks dimuat naik?

Penukar standard berjalan dalam pelayar ini selepas halaman dimuatkan. Tiada akaun diperlukan.

Nama pembolehubah kod?

Ya — camelCase, PascalCase, snake_case, kebab-case. Semak jenama dan akronim selepas penukaran.