text

Use this when you need a URL- or filename-safe slug from arbitrary text.

Use this when you need a URL- or filename-safe slug from arbitrary text. Deterministic: same input, same output. Applies Unicode NFKD normalization, strips combining accents, and transliterates non-decomposing letters (ß->ss, æ->ae, œ->oe, ø->o, đ->d, ł->l, þ->th, ð->d, plus uppercase variants), then collapses every run of non-alphanumeric characters to a single separator and trims separators; e.g. "Héllo Wörld!" -> "hello-world". Emoji, CJK, and any other characters with no ASCII form are dropped. Prefer this over transliterating Unicode yourself, which models routinely get wrong. Returns { error } when no URL-safe characters remain.

post/v1/slugify

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/slugify
  • Auth: none declared

Request body

textstring required

Text to slugify (max 10000 characters).

separatorstring

Word separator: empty string (join words) or a single character from "-", "_", ".". Default "-".

lowercaseboolean

Lowercase the result (default true).

maxLengthinteger

Maximum slug length; 0 means no limit (default). When set and exceeded, the slug is cut at a separator boundary when possible, otherwise hard-cut.

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.