String Manipulation Tool — Transform, Clean & Encode Text Online

Case Converter — camelCase, snake_case, kebab-case

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.

100% client-side. Your data never leaves your browser.

Send to:

Case Converter

This example demonstrates case conversion from String Tools, pre-loaded with a sample phrase converting to camelCase. Paste any text and convert it between standard programming case formats.

Supported Case Formats

FormatExampleUse Case
UPPERCASEHELLO WORLDConstants, shouts
lowercasehello worldGeneral text
Title CaseHello WorldHeadings, titles
camelCasehelloWorldJavaScript variables, CSS properties
PascalCaseHelloWorldClass names, React components
snake_casehello_worldPython variables, database columns
kebab-casehello-worldCSS classes, URLs, CLI flags
dot.casehello.worldNamespaces, config paths

How Case Conversion Works

The tool first normalizes the input by splitting it into words. It handles multiple delimiters: spaces, underscores, hyphens, and case transitions (like the uppercase W in helloWorld). Once split, each word is reformatted according to the target case.

camelCase and PascalCase Nuances

camelCase lowercases the first word and capitalizes subsequent words: myVariableName. PascalCase capitalizes every word: MyVariableName. When converting from snake_case or kebab-case, each segment becomes a word. When converting from UPPERCASE or lowercase, the tool splits on spaces and capitalizes accordingly.

Converting Between Programming Languages

Different languages use different conventions. Python uses snake_case for functions and PascalCase for classes. JavaScript uses camelCase for functions and variables. When porting code between languages, converting identifiers between cases is a common task.

How to Use

  1. Paste your text into the input area
  2. Select the target case format from the options
  3. The converted output appears instantly
  4. Copy the result using the copy button

Common Questions

Does the converter handle acronyms correctly?

The tool treats acronyms as single words when possible. For example, converting parse XML data to camelCase produces parseXmlData, where XML is treated as one word. Converting to UPPERCASE produces PARSE XML DATA.

Can I convert a single word?

Yes. Single words work fine. hello in UPPERCASE becomes HELLO. In Title Case becomes Hello. In camelCase stays hello (no subsequent words to capitalize).

What about non-English text?

The tool handles ASCII word boundaries (spaces, underscores, hyphens, case changes). Non-Latin scripts without these delimiters may not split as expected. For scripts that do not use spaces between words, manual splitting may be necessary.