UUsefulCrate Your files never leave your browser

HomeTools › Case Converter

Case Converter

Type a name or phrase once and get every common programming and prose convention back at the same time, so you can copy the one you need and move on.

How to use it

  1. Type or paste your phrase — for example user profile name.
  2. All ten formats appear immediately, including the popular ones and a few you may not need.
  3. Use Copy all to take the whole set to the clipboard.

Why it stays private

Naming is a small but constant part of writing code, and it often involves identifiers taken from internal systems or an unreleased schema. This tool does the transformation in the page, so those names stay private.

Questions

What are these formats actually for?

Different languages and communities have different conventions. JavaScript and Java favour camelCase for variables and PascalCase for classes; Python, Ruby and SQL favour snake_case; URLs and CSS class names conventionally use kebab-case; constants are usually CONSTANT_CASE.

How does it split my words?

It treats underscores, hyphens, dots and spaces as separators, and also splits at the boundary between a lower-case letter and an upper-case one — so userProfileName is understood as three words.

Which format is the right one?

Whatever the surrounding codebase already uses. Consistency within a project matters far more than which convention you pick.

← All tools