Text Utils API

Powerful text processing utilities including case conversion, slug generation, and Korean text processing. Lightning fast and globally distributed.

Features

πŸ”„ Case Conversion

Convert between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE.

  • β€’ All major naming conventions
  • β€’ Preserves meaning
  • β€’ Fast conversion

πŸ”— Slugify

Generate URL-friendly slugs with full Korean language support.

  • β€’ Korean romanization
  • β€’ Custom separators
  • β€’ SEO optimized

πŸ‡°πŸ‡· Korean Chosung

Extract Korean initial consonants (μ΄ˆμ„±) for search functionality.

  • β€’ Perfect for autocomplete
  • β€’ Fast search indexing
  • β€’ Unicode compliant

Quick Start

Case Conversion

curl -X POST https://textutils.maru-api.workers.dev/api/case-convert \
  -H "Content-Type: application/json" \
  -d '{"text": "hello world", "to": "camelCase"}'

// Response
{"original": "hello world", "converted": "helloWorld", "type": "camelCase"}

Slugify

curl -X POST https://textutils.maru-api.workers.dev/api/slugify \
  -H "Content-Type: application/json" \
  -d '{"text": "μ•ˆλ…•ν•˜μ„Έμš” 세계"}'

// Response
{"original": "μ•ˆλ…•ν•˜μ„Έμš” 세계", "slug": "annyeonghaseyo-segye", "separator": "-"}

Korean Chosung

curl -X POST https://textutils.maru-api.workers.dev/api/chosung \
  -H "Content-Type: application/json" \
  -d '{"text": "λŒ€ν•œλ―Όκ΅­"}'

// Response
{"original": "λŒ€ν•œλ―Όκ΅­", "chosung": "γ„·γ…Žγ…γ„±"}

JavaScript Example

const response = await fetch(
  'https://textutils.maru-api.workers.dev/api/case-convert',
  {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify({text: 'hello world', to: 'camelCase'})
  }
);

const data = await response.json();
console.log(data.converted); // helloWorld

API Reference

POST /api/case-convert

Convert text between different naming conventions.

Request Body

Field Type Description
text string Text to convert
to string Target case: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE
POST /api/slugify

Generate URL-friendly slugs with Korean support.

Request Body

Field Type Description
text string Text to slugify
separator string Optional. Default: "-"
POST /api/chosung

Extract Korean initial consonants (μ΄ˆμ„±).

Request Body

Field Type Description
text string Korean text to extract chosung from

Start using Text Utils API today

100,000 free requests per month. No credit card required.

Get Your API Key