Skip to content

Slug and case converter

Turn a title into a clean URL slug, or switch any text between seven cases, from kebab-case to CONSTANT_CASE, and copy the one you need.

  • Free
  • No account
  • Runs in your browser

Convert a title

Type or paste text and all seven versions update as you go.

Slug (kebab-case)
the-kind-way-to-chase-late-invoices
snake_case
the_kind_way_to_chase_late_invoices
camelCase
theKindWayToChaseLateInvoices
PascalCase
TheKindWayToChaseLateInvoices
Title Case
The Kind Way To Chase Late Invoices
UPPER CASE
THE KIND WAY TO CHASE LATE INVOICES
CONSTANT_CASE
THE_KIND_WAY_TO_CHASE_LATE_INVOICES

Everything stays in your browser. Nothing is sent or saved.

How to use the slug and case converter

  1. Type or paste a title, a phrase or an existing name in any case.
  2. Find the version you need: a slug for a link, camelCase for code, Title Case for a heading.
  3. Copy it with the button on its row.

How the slug and case converter works

The converter first splits your text into words: at spaces, hyphens and underscores, and wherever a lowercase letter meets a capital, so camelCase splits too. Then it joins the words back in each style. The slug keeps only plain letters and digits: accented letters become plain ones and punctuation goes.

Slug (kebab-case)lowercase words joined with -
snake_case, CONSTANT_CASEwords joined with _, in lower or upper case
camelCase, PascalCasewords joined with no gap, each one capitalized

Accented letters turn into plain ones in the slug and the code cases, so Résumé tips for the café gives resume-tips-for-the-cafe, while Title Case and UPPER CASE keep the accents. Letters outside the Latin alphabet, like Greek or Cyrillic, are left out, so write those slugs by hand.

Worked example: the converter’s starting title
Title
The Kind Way to Chase Late Invoices
snake_case
the_kind_way_to_chase_late_invoices
camelCase
theKindWayToChaseLateInvoices
Slug
the-kind-way-to-chase-late-invoices

That slug is 35 characters. Dropping the short words gives kind-way-chase-late-invoices, which still says what the page is about in 28.

Slug and case converter FAQ

What makes a good URL slug?

Short, lowercase, words joined by hyphens, and about the page rather than the date. Use hyphens, not underscores: search engines read a hyphen as a space between words. Once a page is live, keep its slug, because changing it breaks every link to it.

How long should a slug be?

Three to five words is plenty. Drop words like the, a and to when the slug still reads clearly without them. The word counter gives the exact character count if a system sets a limit.

Which case should I use in code?

Follow the language: camelCase for JavaScript variables, PascalCase for classes, snake_case for Python and database columns, CONSTANT_CASE for constants, and kebab-case for file names and CSS classes.

How do I name CSS custom properties?

In kebab-case after two hyphens, like --brand-coral. Convert the name here, then pair it with its value from the color converter.

Should a link use a slug or an ID?

A slug for pages people read and share, so the link says what it is. An ID, often a UUID, for records that change name or should not show how many there are. Some sites use both, like /posts/1234-the-kind-way.

Like the tools? Meet the desk.

Sign-ups are paused for now. Save your seat and we'll email you the moment they reopen.

See pricing