{}devfolio/tools

Case Converter

camelCase, snake_case, kebab-case, PascalCase and more.

Input
1 line · 25 chars · 25 bytes

How to use the Case Converter

  1. 1Type or paste any identifier or phrase.
  2. 2See it in camelCase, PascalCase, snake_case, kebab-case and more.
  3. 3Click Copy on the one you need.

Questions

How are words detected?

It splits on spaces, punctuation and case changes, so userID, user_id and user-id all become the words user and id.

How are acronyms handled?

A run of capitals is treated as one word, so HTTPResponse becomes http and response.

Which case should I use?

Common conventions: camelCase for JavaScript variables, PascalCase for classes and components, snake_case for Python and SQL, kebab-case for URLs and CSS.

You might also need