---
title: "Convert Case & Slug from Text API"
slug: convert-case-and-slug
url: https://apyhub.com/creightonnick0/service/convert-case-and-slug
provider: nick creighton
categories: [Developer Tools, SEO]
tags: [string-conversion, case-conversion, slug-generation, text-formatting, developer-tools]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Convert Case & Slug from Text API

Convert text into slug, camelCase, snake_case, and other common formats. Useful for URLs, identifiers, headings, and general text normalisation.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/creightonnick0/convert-case-and-slug` | What it does Converts the provided text into multiple common casing formats and a URL slug. The res… | 10 |

## Endpoint reference

### Convert a string into every common case + a URL slug.

`POST https://api.eu.apyhub.com/creightonnick0/convert-case-and-slug` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | body | string | yes | The string to convert Example: `Hello World Example`. |

#### Quickstart

Convert a single piece of text into slug, case variants, and word count.

```bash
curl -X POST "https://api.eu.apyhub.com/creightonnick0/convert-case-and-slug" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"Hello World Example"}'
```

#### What you'll get back

Returns a JSON object with fields like `slug`, `input`, `dot.case`, `camelCase`, `PascalCase`, `Title Case`, `kebab-case`, `snake_case`, `word_count`, `CONSTANT_CASE`, and `Sentence case`. Each field is a converted string version of the input, except `word_count`, which is an integer.

```json
{
  "slug": "hello-world-example",
  "input": "Hello World Example",
  "dot.case": "hello.world.example",
  "camelCase": "helloWorldExample",
  "PascalCase": "HelloWorldExample",
  "Title Case": "Hello World Example",
  "kebab-case": "hello-world-example",
  "snake_case": "hello_world_example",
  "word_count": 3,
  "CONSTANT_CASE": "HELLO_WORLD_EXAMPLE",
  "Sentence case": "Hello world example"
}
```

## About

## What it does
String Case Converter turns one input string into a set of common text cases and a URL slug. Send the `text` field in the request body, and get back the converted forms plus the original `input` and `word_count`.

Use it when you need to normalise user-entered text for URLs, code identifiers, headings, or labels. The response includes `slug`, `dot.case`, `camelCase`, `PascalCase`, `Title Case`, `kebab-case`, `snake_case`, `CONSTANT_CASE`, and `Sentence case`, so you can pick the format that fits your system without reimplementing string transforms in your app.

This is useful in content pipelines, admin tools, CMS workflows, and developer utilities where the same text needs to be reused across multiple naming conventions. If you are generating slugs from titles or converting strings for frontend and backend conventions, this keeps the conversion logic in one place.

String Case Converter is a small, focused developer tool: one text input, multiple case outputs, and a predictable response shape.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/creightonnick0/service/convert-case-and-slug
