Case converter

Convert text between lower, UPPER, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more.

Input

The text or names to convert.
The case to convert to.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/case-convert \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"Hello world_fooBar","to":"camel"}}'
import json, urllib.request

body = {'input': {'text': 'Hello world_fooBar', 'to': 'camel'}}
request = urllib.request.Request("https://setget.net/v1/tools/case-convert", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/case-convert", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"Hello world_fooBar","to":"camel"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "case-convert",
  "input": {
    "text": "Hello world_fooBar",
    "to": "camel"
  }
}
{
  "input": {
    "text": "Hello world_fooBar",
    "to": "camel"
  }
}

Endpoint: POST /v1/tools/case-convert. Over MCP: run_tool with slug: "case-convert". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes The text or names to convert.
to string yes The case to convert to. One of: lower, upper, title, sentence, camel, pascal, snake, kebab, constant, dot.

Examples

Input
{
  "text": "Hello world_fooBar",
  "to": "camel"
}
Result
{
  "text": "helloWorldFooBar"
}

Acronyms stay together

Input
{
  "text": "HTTPServer error-count",
  "to": "snake"
}
Result
{
  "text": "http_server_error_count"
}

Sentence case

Input
{
  "text": "the end. a new START",
  "to": "sentence"
}
Result
{
  "text": "The end. A new start"
}

Questions

How are words found for camel, snake and the other name styles?
Words are split at spaces, punctuation, underscores and hyphens, and where a lower-case letter is followed by a capital. Each line is converted on its own.
Why did sentence case lower a name such as "London"?
Sentence case lowers everything and then capitalises the first letter of each sentence. It cannot know which words are names.
Does title case skip small words like "of"?
No. Every word gets a capital letter.