Kebab case is the lowercase hyphenated spelling used in CSS classes, HTML attributes, and many URLs. “Odd socks in the dryer.” becomes odd-socks-in-the-dryer. The period is dropped. Spaces become hyphens. Every word is lowercase, including “in” and “the”.
The split follows capitals as well as spaces. “XMLHttp request” becomes xml-http-request. “odd-socks” is already two words and stays odd-socks. An apostrophe is removed so “it's” does not keep a quote.
Accents are letters here. “Crème brûlée socks” becomes crème-brûlée-socks. The slug maker, given the same words, returns creme-brulee-socks. Use kebab case when the accent should remain visible. Use the slug maker when the string has to be ASCII in a URL path. They match on “Odd socks in the dryer.” and diverge as soon as a mark appears.
Odd socks in the dryer.
odd-socks-in-the-dryer Five words, four hyphens, no period. The slug maker returns this same string for this sentence.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
On “Odd socks in the dryer.” yes: both return odd-socks-in-the-dryer. On “Crème brûlée” kebab keeps the accents and the slug maker removes them.
It is not a word. The result has no trailing hyphen and no period.
They split. XMLHttp request becomes xml-http-request, the same boundaries camelCase uses, joined with hyphens and lowercased.
No. Every word is kept. odd-socks-in-the-dryer includes in and the.
Hyphens are separators, so the words are split and rejoined. odd-socks stays odd-socks.