Teks

Huruf ke CamelCase

Alat online gratis dan instan untuk mengubah teks biasa, string, atau variabel menjadi CamelCase.

Input Teks
Hasil camel-case
100% Aman
Konversi Cepat
Akurasi Tinggi

Konverter CamelCase Online Gratis

Alat pemformatan string kami secara instan mengubah teks biasa, kalimat, atau variabel kode Anda menjadi CamelCase. Cukup tempel konten Anda, dan alat ini akan menangani spasi dan kapitalisasi secara otomatis.

Cara mengonversi

1. Tempel teks Huruf

Tempel atau ketik konten Huruf Anda ke area input.

2. Proses Konversi

Alat kami secara otomatis mengonversi teks Anda ke format CamelCase dengan pengaturan terbaik.

3. Salin CamelCase

Konversi selesai. Anda sekarang dapat menyalin hasilnya langsung ke papan klip Anda.

Pertanyaan yang Sering Diajukan

Spesifikasi Konversi

InputHuruf
OutputCamelCase
KeamananHTTPS / Hapus otomatis
Harga
Gratis

Menggunakan kode

camelCase

Takes an input string in any common format (space-separated, kebab-case, snake_case, PascalCase, etc.) and converts it to camelCase. The function first normalizes the string by identifying word boundaries (including transitions between acronyms, letters/numbers, and common delimiters like spaces, hyphens, dots, and underscores), then joins the segments together with the first segment in lowercase and each subsequent segment capitalized.

Parameter

NamaTipeDeskripsi
textstringThe text to convert.

Nilai Kembali

stringThe camel cased string.
npm i @razomy/string-case
import {camelCase} from '@razomy/string-case';

camelCase('Foo Bar');
// => fooBar

camelCase('--foo-bar--');
// => fooBar

camelCase('__FOO_BAR__');
// => fooBar