---
title: "Convert text into multiple case styles"
method: POST
path: "/case-convert.php"
tags: ["text"]
---

# Convert text into multiple case styles

`POST /case-convert.php`

## Request

- Base URL: `https://mate.tools/api/v1`
- URL: `https://mate.tools/api/v1/case-convert.php`
- Auth: none declared

Returns the input converted into 8 case styles: upper, lower, title, sentence, snake, kebab, camel, pascal, constant. Pass `cases` to limit the response.

## Request body

- object
  - `text` string, required
  - `cases` string[]

## Response `200`

Success

## Other responses

- `400`: Malformed request
- `429`: Rate limit exceeded (60/min, 600/hour per IP). Includes Retry-After header.

---

[API](https://skmtc.dev/mate/apis/mate-tools-api.md) · [All operations](https://skmtc.dev/mate/apis/mate-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mate/apis/mate-tools-api/revisions/874670b78962?raw)
