Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Case Converter: Upper, Lower, Title, camelCase and More

Switch text between upper, lower, title, camel, snake and more.

Use via API

Convert text between upper, lower, title, sentence, camel, Pascal, snake, kebab, constant and dot case. Send JSON, get JSON back.

POST https://pithlab.com/api/v1/tools/case-converter

curl https://pithlab.com/api/v1/tools/case-converter \
  -H "Authorization: Bearer $PITHLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"user account id","to":"camel"}'

Fields and responseOpenAPI documentGet an API key

About the Case Converter

Convert text between UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE in one click.

How to use the Case Converter

  1. Paste your text into the input box.
  2. Click the case you want. The converted text appears below.
  3. For programming cases such as camelCase, each line is converted separately, so you can convert a whole list at once.

Examples

Title Case a headline

Input

a tale of two cities

Output

A Tale of Two Cities
Variable name to snake_case

Input

userAccountID

Output

user_account_id
Constant to camelCase

Input

MAX_RETRY_COUNT

Output

maxRetryCount

Frequently asked questions

Which words stay lower case in Title Case?

Short articles, conjunctions and prepositions such as a, an, the, and, of, in and to stay lower case unless they are the first or last word, following common style guides.

How are acronyms handled in camelCase?

Acronyms are treated as one word, so parseHTTPResponse becomes parse_http_response in snake_case and ParseHttpResponse in PascalCase.

Does it work with accented letters?

Yes. Conversions are Unicode-aware, so letters like é, ü and ß are handled correctly.