# Case Converter

- **URL:** https://codeasystem.com/calculators/developer/case-converter/
- **Category:** developer
- **Description:** Convert any text into camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE and four more conventions simultaneously.
- **Primary output:** camelCase: helloWorldFoo

## Inputs
- Text to convert (name: `text`, type: textarea, example: hello world or parseHTTPResponse)

## Outputs
- camelCase: helloWorldFoo
- snake_case: hello_world_foo
- kebab-case: hello-world-foo
- PascalCase: HelloWorldFoo
- CONSTANT_CASE: HELLO_WORLD_FOO
- Title Case: Hello World Foo
- Sentence case: Hello world foo
- UPPER CASE: HELLO WORLD FOO
- lower case: hello world foo

## Formula / methodology
```
split on non-alphanumerics + camel/Pascal boundaries → rejoin per convention
```

Word splitting inserts breaks before uppercase letters following lowercase ones (helloWorld → hello World), splits acronym boundaries (parseHTTPResponse → parse HTTP Response), then divides on every remaining non-alphanumeric character.

The recovered word list rejoins under each convention: camelCase lowercases everything except capitalized tails, PascalCase capitalizes every word, snake/kebab/CONSTANT join with underscores or dashes, and Title/Sentence/UPPER/lower handle human-readable forms; all nine outputs computed together from one paste.

## Assumptions & limitations
- Input intended as identifiers, headings or short phrases; not prose paragraphs.
- Acronyms longer than two capitals split conservatively (HTTPURL stays one word).
- Digits count as word characters and attach to adjacent tokens.

## How to use
1. **Paste your phrase**; A column name, file name, heading or existing identifier in ANY convention.
2. **Read all nine outputs**; Every common programming and writing convention computes at once.
3. **Copy what you need**; Grab camelCase for variables, kebab-case for URLs, snake_case for SQL columns.

## Example
Three plain words “hello world foo” become helloWorldFoo in camelCase; with all eight other conventions available in the same result panel.

Result for these inputs:

```
camelCase: helloWorldFoo
```

## About this calculator
### Why smart splitting beats naive spaces

Real input arrives pre-mixed: “user_profileImage URL” mixes three conventions in one string. Boundary-aware splitting recovers the underlying words first; handling camel humps, acronyms and punctuation separators; before applying the target convention, so conversions stay correct regardless of source format.

### Where each convention lives

- camelCase; JavaScript/Java variables and functions
- PascalCase; classes, components, types
- snake_case; Python, SQL columns, Ruby symbols
- kebab-case; URLs, CSS classes, file names
- CONSTANT_CASE; environment variables and true constants

## FAQs
### How are numbers handled inside words?

Digits attach to their neighboring token: “html5 parser” becomes html5Parser, keeping versioned names intact.

### What happens with ALL-CAPS acronyms?

Two-letter caps merge into the previous word sensibly; long runs like HTTPURL stay single tokens since no internal boundary exists. “parseHTTPResponse” correctly splits into parse/HTTP/Response.

### Can I convert whole paragraphs?

Technically yes, but the tool targets identifiers and phrases; sentence punctuation vanishes during word splitting, which is usually what you want for variable names.

### Is Sentence case really one sentence style?

It capitalizes only the first character of the whole output; the typical headline-vs-sentence distinction you meet in UI copy guidelines.

## Related calculators
- [Regex Tester](https://codeasystem.com/calculators/developer/regex-tester/)
- [LLM Token Counter](https://codeasystem.com/calculators/developer/llm-token-counter/)
- [HTML Entity Escaper & Unescaper](https://codeasystem.com/calculators/developer/html-entity-escaper/)

---
Last updated: 2026-08-23 · Version: 1.0.0 · [HTML version](https://codeasystem.com/calculators/developer/case-converter/)
