Skip to content

Convert Case ​

Paste text, pick a case, and copy the result. The text goes to your own SnapOtter server and nowhere else.

API Endpoint ​

POST /api/v1/tools/files/convert-case

Accepts a JSON body, not multipart form data, and answers with the converted text instead of a file to download.

Parameters ​

NameTypeDefaultDescription
textstring(required)Text to convert. Up to 1,000,000 characters.
modestring(required)One of the modes below.
localestring(none)BCP 47 language tag, such as tr or de, for letters whose case depends on the language. Without it, casing is the same for every language.
ModeInputOutput
upperThe quick brown foxTHE QUICK BROWN FOX
lowerThe Quick Brown Foxthe quick brown fox
sentencethe quick BROWN fox. it jumps.The quick brown fox. It jumps.
titlethe lord of the ringsThe Lord of the Rings
capitalizedthe lord of the ringsThe Lord Of The Rings
inverseThe Quick Brown FoxtHE qUICK bROWN fOX
alternatingthe quick brown foxtHe QuIcK bRoWn FoX
camelThe quick brown foxtheQuickBrownFox
pascalthe quick brown foxTheQuickBrownFox
snakeThe quick brown foxthe_quick_brown_fox
kebabThe quick brown foxthe-quick-brown-fox

Example Request ​

bash
curl -X POST http://localhost:1349/api/v1/tools/files/convert-case \
  -H "Authorization: Bearer si_your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"text": "the lord of the rings", "mode": "title"}'

Example Response ​

json
{
  "mode": "title",
  "result": "The Lord of the Rings"
}

Notes ​

  • title keeps short English words (a, an, and, of, the, to and similar) lowercase unless they start or end the line. capitalized capitalizes every word.
  • sentence starts a new sentence at the beginning of the text, after a line break, and after ., !, ? or … followed by a space, so the dot in snapotter.com or 3.5 doesn't count.
  • camel, pascal, snake and kebab split on spaces, punctuation and existing case changes (XMLHttpRequest becomes xml_http_request), and convert each line on its own.
  • With locale set to tr, i upper-cases to İ and I lower-cases to ı. German ß upper-cases to SS in every locale.
  • The web app sends its current interface language as locale.