Case converter
Convert text between lower, UPPER, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more.
Input
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
| Name | Type | Required | What 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.
Related tools
- Slug generatorTurn a title into a clean URL slug: accents removed, punctuation dropped, words joined by hyphens.
slugify - Find and replaceReplace every occurrence of a word or phrase in text, exactly as typed, with a count of the changes.
find-replace - Unicode normaliserNormalise text to NFC, NFD, NFKC or NFKD, and optionally strip accents or invisible characters.
unicode-normalize - Apply a patchApply a unified diff to a text and get the patched result, with clear errors when a hunk does not fit.
patch-apply - Escape and unescape textEscape or unescape text for HTML, URLs, JSON strings, shell commands, regular expressions and CSV fields.
escape-unescape - Extract emails and URLsPull every email address and web link out of a text, and optionally IPv4 addresses and hashtags.
extract-emails-urls