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 phrase.
  2. Leave Case on snake.
  3. Copy the lowercase underscored name.
  4. Use screaming snake if the same words should be capitals.

What is snake_case converter?

snake_case is the lowercase underscored spelling used for Python names, database columns, and plenty of JSON that refuses camelCase. “Odd socks in the dryer.” becomes odd_socks_in_the_dryer. The period is dropped. “in” and “the” stay as words, joined with underscores rather than skipped.

Read more

Capitals inside a token are boundaries before the lowercasing. “XMLHttp request” becomes xml_http_request. Hyphens you already typed are boundaries too, so odd-socks is odd_socks. Apostrophes are removed. The result is letters, digits, accents, and underscores.

CONSTANT_CASE is the same words in capitals: ODD_SOCKS_IN_THE_DRYER. If a style guide wants the shout, that is the other page. snake_case will not uppercase a single letter. Accents are kept, so this is not a slug.

Use cases

  • A Python developer naming a function from a ticket title.
  • A database person turning a label into a column name.
  • A reviewer comparing odd_socks_in_the_dryer with the camelCase oddSocksInTheDryer.
  • An API author who needs underscores and must drop the sentence period.
  • Someone checking that XMLHttp request split into xml_http_request.

The dryer sentence with underscores

Odd socks in the dryer.

odd_socks_in_the_dryer Five words, four underscores, no period.

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

The words and the underscores match. snake_case is lowercase. CONSTANT_CASE is ODD_SOCKS_IN_THE_DRYER.