Konverter Kasus Teks

Konversikan teks ke UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, CONSTANT_CASE, dan lainnya. 12 kasus secara real-time. 100% sisi klien.

Iklan
Iklan

Konversi huruf tanpa mengunggah data Anda

12 case conversions — including camelCase, snake_case, kebab-case, and more — all at once, right in your browser. No uploads, no sign-up, no limits.

100% pribadi
Konversi real-time
Gratis selamanya

Cara menggunakan

  1. 1

    Tempel Teks Anda

    Ketik atau tempel teks ke dalam kotak input di bagian atas.

  2. 2

    Lihat Semua 12 Kasus

    Setiap varian kasus muncul secara instan di kisi di bawah — tanpa tombol untuk diklik.

  3. 3

    Salin Yang Anda Butuhkan

    Klik tombol Salin di sebelah varian apa pun untuk menyalinnya ke clipboard Anda.

Mengapa Menggunakan Konverter Kasus Teks Ini?

12 Kasus Sekaligus

Lihat setiap varian kasus umum dalam satu kisi, sehingga Anda dapat membandingkan dan memilih yang tepat tanpa beralih alat.

Konversi Real-Time

Semua 12 output diperbarui secara instan saat Anda mengetik — tidak ada tombol 'Konversi' untuk diklik.

Ramah Pemrograman

Termasuk camelCase, PascalCase, snake_case, kebab-case, dan CONSTANT_CASE, yang merupakan konvensi penamaan standar dalam JavaScript, Python, Rust, Go, dan CSS.

Iklan

Understanding Text Case Conventions

Programming naming conventions

Programming languages have established naming conventions for different types of identifiers. Following these conventions makes code more readable and consistent with the language's ecosystem. JavaScript uses camelCase for variables and functions (e.g., `getUserData`), PascalCase for classes and React components (e.g., `UserProfile`), and UPPER_SNAKE_CASE for constants (e.g., `MAX_RETRIES`). Python uses snake_case for variables and functions (e.g., `get_user_data`) and PascalCase for classes (e.g., `UserProfile`).

CSS uses kebab-case for class names and IDs (e.g., `.primary-button`, `#main-content`). URLs use kebab-case for slugs (e.g., `/blog/how-to-use-regex`). Database column names typically use snake_case (e.g., `created_at`, `user_id`). Environment variables use UPPER_SNAKE_CASE (e.g., `DATABASE_URL`, `API_KEY`). Our tool supports all of these conventions, making it easy to convert between them.

Iklan

Title Case vs. Sentence case

Title Case capitalizes the first letter of each significant word, following publishing conventions. Minor words (articles, conjunctions, short prepositions) are kept lowercase unless they appear at the beginning or end. For example, 'The Lord of the Rings' is correct Title Case. This is used for book titles, article headlines, and formal headings.

Sentence case capitalizes only the first letter of each sentence, with the rest in lowercase (except proper nouns). For example, 'The lord of the rings' is Sentence case. This is used for running text, descriptions, and informal headings. Some style guides prefer Sentence case for headings, arguing that it's cleaner and easier to read.

Kapan menggunakan setiap case pemrograman

camelCase: JavaScript variables and functions, Java methods, C# variables. PascalCase: JavaScript/TypeScript classes and interfaces, React components, C# classes and methods. snake_case: Python variables and functions, Ruby variables and methods, Rust variables. kebab-case: CSS class names, HTML IDs, URL slugs, file names. CONSTANT_CASE: constants in most languages, environment variables, configuration keys.

Iklan

Kasus Penggunaan Umum

Mengganti Nama Identifier Kode

Konversi nama kolom seperti 'User First Name' menjadi `userFirstName` (camelCase) atau `user_first_name` (snake_case) untuk backend Anda.

Membersihkan Caps Lock

Tidak sengaja mengetik paragraf dengan Caps Lock aktif? Gunakan opsi 'lower case' untuk memperbaikinya secara instan.

Headline & Judul

Terapkan Title Case ke judul pos blog atau headline siaran pers dalam satu klik.

Nama Kelas CSS

Konversi 'primary button large' menjadi `primary-button-large` (kebab-case) untuk atribut class HTML.

Bagaimana ini dibandingkan dengan konverter huruf lain?

A side-by-side comparison of popular text case conversion tools.

FiturNovaToolsConvertCase.netCaseConverter.com
Privasi (tanpa unggah)100% lokalUnggah ke serverUnggah ke server
HargaGratis tanpa batasGratis dengan iklanGratis dengan iklan
Number of cases1286
Kasus pemrograman5 casesTerbatas
Konversi real-timeButtonButton
Dukungan UnicodeTerbatasTerbatas
Copy per variantTerbatas
Berfungsi offlineSetelah halaman dimuat

Sebagian besar konverter huruf online mengunggah teks Anda ke server mereka. Alat kami memproses semuanya secara lokal — teks Anda tidak pernah meninggalkan browser Anda.

Text Case Quick Reference

Konvensi huruf umum dan penggunaannya.

Programming Naming Conventions

camelCase

First word lowercase, subsequent words capitalized. Used for JS/Java variables and functions.

Contoh:getUserData
PascalCase

Semua kata dikapitalisasi. Digunakan untuk kelas, tipe, dan komponen React.

Contoh:UserProfile
snake_case

Words joined with underscores, all lowercase. Used in Python, Ruby, Rust.

Contoh:get_user_data
kebab-case

Words joined with hyphens, all lowercase. Used for CSS classes and URL slugs.

Contoh:primary-button
CONSTANT_CASE

Semua huruf kapital dengan garis bawah. Digunakan untuk konstanta dan variabel lingkungan.

Contoh:MAX_RETRIES

Publishing Conventions

Title Case

Capitalize significant words, lowercase articles/conjunctions/prepositions.

Contoh:The Lord of the Rings
Sentence case

Kapitalisasi hanya huruf pertama dari setiap kalimat.

Contoh:The lord of the rings
Capitalize Each Word

Kapitalisasi huruf pertama dari setiap kata, termasuk kata kecil.

Contoh:The Lord Of The Rings
UPPERCASE

Semua huruf dikapitalisasi. Digunakan untuk penekanan atau akronim.

Contoh:THE LORD OF THE RINGS
lowercase

All letters lowercase. Used for casual text or code.

Contoh:the lord of the rings

Pertanyaan yang sering diajukan

Konversi kasus apa saja yang didukung?
UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Each Word, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg, dan InVeRsE — total 12.
Apa perbedaan antara Title Case dan Capitalize Each Word?
Title Case mengikuti konvensi penerbitan umum dan menjaga kata kecil seperti 'a', 'the', 'in' dalam huruf kecil kecuali jika itu adalah kata pertama atau terakhir. Capitalize Each Word mengubah huruf besar huruf pertama setiap kata tanpa terkecuali.
Bagaimana camelCase menangani karakter non-alfanumerik?
Semua karakter non-alfanumerik (spasi, tanda hubung, garis bawah, tanda baca) diperlakukan sebagai pemisah kata dan dihapus. Misalnya, 'hello world!' menjadi 'helloWorld'.
Untuk apa CONSTANT_CASE digunakan?
CONSTANT_CASE (semua huruf besar dengan garis bawah) adalah konvensi untuk menamai konstanta dalam banyak bahasa pemrograman — misalnya `MAX_RETRY_COUNT` dalam JavaScript atau Python.
Apakah konverter berfungsi dengan teks non-bahasa Inggris?
Ya. Konversi upper/lower/title/sentence/capitalize menggunakan `toUpperCase` / `toLowerCase` native browser, yang menangani Unicode dengan benar. Kasus gaya pemrograman (camel, snake, dll.) disesuaikan untuk identifier ASCII.
Konversi huruf apa yang didukung?
The tool supports 12 case conversions: UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Each Word, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg, and InVeRsE. Each conversion is applied to your text instantly and displayed in a grid, so you can compare all variants at once and copy the one you need. The programming-style cases (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE) treat spaces, dashes, underscores, and punctuation as word separators.
Apa perbedaan antara Title Case dan Capitalize Each Word?
Title Case follows common publishing conventions (Associated Press style) and keeps short function words like 'a', 'an', 'the', 'in', 'on', 'at', 'to', 'for', 'of', 'and', 'but', 'or', 'nor', 'so', 'yet' lowercase unless they are the first or last word of the string. Capitalize Each Word (also called Start Case) uppercases the first letter of every word regardless of its part of speech. For example, 'the lord of the rings' becomes 'The Lord of the Rings' in Title Case but 'The Lord Of The Rings' in Capitalize Each Word.
Bagaimana camelCase menangani karakter non-alfanumerik?
All non-alphanumeric characters (spaces, dashes, underscores, punctuation, special characters) are treated as word separators and removed. The first word is lowercase, and each subsequent word starts with an uppercase letter. For example, 'hello world!' becomes 'helloWorld', 'user-first-name' becomes 'userFirstName', and 'API_KEY' becomes 'apiKey'. This behavior matches the convention used by most programming languages and code formatters like Prettier.
Untuk apa CONSTANT_CASE digunakan?
CONSTANT_CASE (all uppercase with underscores between words) is the convention for naming constants in many programming languages. For example, `MAX_RETRY_COUNT`, `DEFAULT_TIMEOUT`, `API_BASE_URL` in JavaScript, Python, Java, Go, and Rust. It is also used for environment variable names (e.g., `NODE_ENV`, `DATABASE_URL`) and configuration keys. Our tool converts any text to CONSTANT_CASE by splitting on word boundaries, uppercasing all letters, and joining with underscores.
Apa perbedaan antara camelCase dan PascalCase?
Both camelCase and PascalCase join words without separators, capitalizing the first letter of each word except the first. The difference is that camelCase starts with a lowercase letter (e.g., `firstName`, `getUserData`) while PascalCase (also called UpperCamelCase) starts with an uppercase letter (e.g., `FirstName`, `GetUserData`). camelCase is used for variable and function names in JavaScript, Java, C#, and Swift. PascalCase is used for class and type names in most object-oriented languages.
Bagaimana snake_case berbeda dari kebab-case?
Both snake_case and kebab-case join words with a separator, all in lowercase. snake_case uses underscores (e.g., `first_name`, `get_user_data`) while kebab-case uses hyphens/dashes (e.g., `first-name`, `get-user-data`). snake_case is the standard naming convention for variables and functions in Python, Ruby, and Rust. kebab-case is the standard for CSS class names, HTML IDs, and URL slugs. Our tool supports both, along with SCREAMING_SNAKE_CASE (CONSTANT_CASE) for constants.
Apakah konverter berfungsi dengan teks non-bahasa Inggris?
Yes. The upper/lower/title/sentence/capitalize conversions use the browser's native `toUpperCase` and `toLowerCase` methods, which handle Unicode correctly. This means accented characters (é → É), German umlauts (ß → SS), and Greek letters (α → Α) are converted correctly. The programming-style cases (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE) are tuned for ASCII identifiers and may not produce ideal results for non-Latin scripts, as they are designed for code identifiers which are typically ASCII.
Bisakah saya mengonversi beberapa baris sekaligus?
Yes. The tool handles multi-line text. The behavior depends on the case: for UPPERCASE, lowercase, and InVeRsE, each line is converted independently. For camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE, line breaks are treated as word separators and removed, producing a single line. For Title Case, Sentence case, and Capitalize Each Word, line breaks are preserved.
Apakah teks saya diunggah ke mana pun?
No. All conversion happens entirely in your browser using JavaScript. Your text is never uploaded to a server, never stored in a database, never logged, and never transmitted over the network. All conversion is performed locally — no network requests are made when you type or paste text. This makes the tool safe for use with confidential text, source code containing API keys, or any other sensitive content.
Bisakah saya menggunakan alat ini untuk proyek komersial?
Ya. Alat ini gratis untuk penggunaan pribadi dan komersial tanpa watermark, tanpa atribusi yang diperlukan, dan tanpa batasan penggunaan. Anda mempertahankan kepemilikan penuh atas gambar yang diproses. Model AI yang mendasari (MediaPipe) dilisensikan oleh Google untuk penggunaan komersial. Tidak ada pendaftaran, tidak ada API key, dan tidak ada langganan yang diperlukan.

Privasi Anda Adalah Prioritas Kami

Alat ini berjalan sepenuhnya di browser Anda. File Anda tidak diunggah ke server, tidak disimpan, dan tidak dianalisis.

  • Kami tidak mengunggah, menyimpan, atau menganalisis file Anda.
  • Semua yang Anda proses tetap di perangkat Anda.
  • Tidak ada pemrosesan sisi server, penyimpanan cloud, atau analisis.

Bahkan jika koneksi internet Anda terputus, file Anda tetap aman.

Anda mungkin juga suka

Panduan terkait

Iklan