Text & Data🔒 Browser (client-side)API available📴 Works offlinebeginner
Case Converter
Converts text between case styles: UPPER, lower, Title, camelCase, PascalCase, snake_case, kebab-case.
Data stays in your browser
Ready to runInstant execution
Result
—What does this tool do?
Converts text between case styles: UPPER, lower, Title, camelCase, PascalCase, snake_case, kebab-case.
Why would I use it?
- You are renaming variables or files to a convention.
- You want consistent casing across a dataset.
- You are generating names for code or configs.
Real-life example
Input
hello world
Output
hello-world (kebab) / helloWorld (camel) / Hello World (title)
Choose the target style with one click.
Input → Process → Output → Next
- Input
- Paste text, pick a style.
- Process
- The browser splits words and re-joins them in the chosen case.
- Output
- The converted text.
- Next action
- Copy the result into your code or content.
Common mistakes
- Losing acronym casing (HTML becomes html).
- Applying camelCase to sentences (it removes spaces).
- Expecting locale-aware conversions for non-ASCII.
What the result means
The output follows the selected naming convention.
Privacy & security
Your input is processed entirely in your browser and never sent to a YAS server.
API
Endpoint
POST https://yas.sh/api/v1/tools/case-converter
Request Header
Content-Type: application/json
cURL
curl -X POST "https://yas.sh/api/v1/tools/case-converter" \
-H "Content-Type: application/json" \
-d '{"input":"hello world","mode":"kebab"}'JavaScript
const res = await fetch("https://yas.sh/api/v1/tools/case-converter", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"input": "hello world",
"mode": "kebab"
}),
});
const data = await res.json();Python
import requests
r = requests.post("https://yas.sh/api/v1/tools/case-converter", json={"input":"hello world","mode":"kebab"})
data = r.json()| Field | Type | Required | Description |
|---|---|---|---|
| input | string | Yes | Source text |
| mode | string | No (default "upper") | upper | lower | title | camel | pascal | snake | kebab |
Success response
{ "slug": "case-converter", "result": "hello-world", "mode": "kebab" }Convert text between naming conventions.
Error responses
400 VALIDATION_ERROR— invalid input or unsupported option.413 PAYLOAD_TOO_LARGE— input exceeds the 64 KB limit.429 RATE_LIMIT_EXCEEDED— rate limit exceeded (60 req/min).
Limits
- Maximum input: 64 KB per request.
- Rate limit: 60 requests/min per IP address.
- Authenticated accounts benefit from higher tier quotas.
Related tools