Skip to content
OddsockLocal
Local
Source text
lowercaseodd socks in the dryer
UPPERCASEODD SOCKS IN THE DRYER
Title CaseOdd Socks In The Dryer
Sentence caseOdd socks in the dryer
camelCaseoddSocksInTheDryer
PascalCaseOddSocksInTheDryer
snake_caseodd_socks_in_the_dryer
SCREAMING_SNAKEODD_SOCKS_IN_THE_DRYER
kebab-caseodd-socks-in-the-dryer
Train-CaseOdd-Socks-In-The-Dryer
dot.caseodd.socks.in.the.dryer
path/caseodd/socks/in/the/dryer
aLtErNaTiNgOdD SoCkS In tHe dRyEr
iNVERSEODD SOCKS IN THE DRYER
5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the title.
  2. Leave Case on kebab.
  3. Copy the hyphenated result.
  4. Open the slug maker instead if an accented word has to become ASCII.

What is kebab-case converter?

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”.

Read more

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.

Use cases

  • A front-end developer naming a CSS class from a component title.
  • A writer turning a headline into a readable URL segment that may keep accents.
  • A design-system author checking xml-http-request against the camelCase name.
  • Someone comparing this result with the slug maker on a French dish name.
  • A CMS editor who needs hyphens and must not leave the sentence period on the end.

The dryer sentence, hyphenated

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.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

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.