Skip to content
POST AI agent ready /v1/text/case

Text Case Converter API - Free camelCase, snake_case

Transforms text from any case into the target case. Supports camelCase, snake_case, PascalCase, kebab-case, Title Case, Sentence case, UPPER CASE, and lower case. Handles inputs that are already in a specific case format.

Parameters

stringrequired

The text to convert.

stringrequired

The target case format.

Code examples

curl -X POST https://api.botoi.com/v1/text/case \
  -H "Content-Type: application/json" \
  -d '{"text":"user_account_settings","to":"camel"}'

When to use this API

Normalize API response keys

Convert snake_case keys from a Python API to camelCase for JavaScript frontend consumption in an API gateway or middleware layer.

Generate consistent variable names

Convert database column names (snake_case) to PascalCase for C# model properties or camelCase for TypeScript interfaces.

Format display labels from code identifiers

Turn camelCase or kebab-case variable names into Title Case labels for UI form fields and table headers.

Frequently asked questions

How does the API detect the source case?
The API auto-detects the source case by analyzing separators (underscores, hyphens, spaces) and capital letter patterns. You only need to specify the target case.
Does this handle acronyms correctly?
Yes. Common patterns like "HTMLParser" or "getAPIKey" are split correctly at acronym boundaries.
What happens with numbers in the text?
Numbers are preserved as-is. For example, "item2count" in snake_case becomes "item_2_count".
Can I convert multi-word sentences to a code case?
Yes. "user account settings" converts to camelCase as "userAccountSettings", snake_case as "user_account_settings", and so on.

Get your API key

Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.