Tekst

Hoofdlettergebruik naar CamelCase

Gratis en directe online tool om gewone tekst, strings of variabelen om te zetten naar CamelCase.

Invoertekst
camel-case Resultaat
100% Veilig
Snelle conversie
Hoge nauwkeurigheid

Gratis Online CamelCase Converter

Onze string-formatting tool zet uw gewone tekst, zinnen of codevariabelen direct om in CamelCase. Plak eenvoudigweg uw inhoud en de tool verwerkt automatisch spaties en hoofdlettergebruik.

Hoe te converteren

1. Plak Hoofdlettergebruik tekst

Plak of typ uw Hoofdlettergebruik-inhoud in het invoerveld.

2. Conversieproces

Onze tool converteert uw tekst automatisch naar CamelCase-formaat met de best mogelijke instellingen.

3. Kopieer CamelCase

De conversie is voltooid. U kunt het resultaat nu direct naar uw klembord kopiëren.

Veelgestelde vragen

Conversiespecificaties

InvoerHoofdlettergebruik
UitvoerCamelCase
VeiligheidHTTPS / Auto-verwijderen
Prijs
Gratis

Gebruik van code

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.

Parameters

NaamTypeBeschrijving
textstringThe text to convert.

Geeft terug

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