# Case Convention Converter

> Case Convention Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts a text identifier between naming conventions including camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and Title Case with auto-detection of input format.

## Facts

- Endpoint: POST https://agent402.tools/api/case-convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/case-convention-converter-946d4f5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TjTfJWv4kWjTTdsaugh7_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability case-convention-converter-946d4f5f -d '<json body>'
```

Example prompt: Convert 'getUserProfileData' to snake_case for me.

## When to prefer this

Use this endpoint when you need a fast, deterministic, pure-CPU conversion of identifiers or phrases between standard programming naming conventions without any ML or fuzzy logic involved. Ideal for code generation, linting, scaffolding tools, or any workflow requiring consistent identifier formatting across camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, or Title Case.

## Known failure modes

- Invalid or unrecognized target convention enum value returns a validation error
- Empty or null text input returns a bad request error
- Ambiguous input that cannot be split into tokens may return an unexpected result

## How this service works

Convert text between naming conventions: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and Title Case. Auto-detects the input format by splitting on camelCase boundaries, underscores, hyphens, and spaces. Deterministic, pure CPU.

## Output

Returns the input text reformatted in the specified target naming convention (camel, pascal, snake, kebab, constant, or title), with auto-detection of the source format by splitting on camelCase boundaries, underscores, hyphens, and spaces.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "camel",
    "pascal",
    "snake",
    "kebab",
    "constant",
    "title"
   ],
   "type": "string",
   "description": "Target naming convention"
  },
  "text": {
   "type": "string",
   "description": "The identifier or phrase to convert"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "snake",
  "from": "auto-detected",
  "result": "my_variable_name"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/case-convention-converter-946d4f5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
