elefcode

Case Converter

Convert text between camelCase, snake_case, kebab-case, PascalCase, and more.

camelCasehelloWorldExample
PascalCaseHelloWorldExample
snake_casehello_world_example
CONSTANT_CASEHELLO_WORLD_EXAMPLE
kebab-casehello-world-example
Train-CaseHello-World-Example
dot.casehello.world.example
Title CaseHello World Example
Sentence caseHello world example
lowercasehello world example
UPPERCASEHELLO WORLD EXAMPLE
aLtErNaTiNghElLo wOrLd eXaMpLe
iNVERSE cASEhELLO WORLD EXAMPLE

Advertisement

Guide

About the Case Converter

Programming naming conventions each have a name and a purpose. camelCase and PascalCase are common for variables and classes, snake_case for Python and database columns, CONSTANT_CASE for constants and environment variables, and kebab-case for URLs, CSS, and file names. Converting between them by hand is tedious; this tool does every conversion at once from a single input.

Type or paste any text — a phrase, a variable name, a heading — and read off every case variant, ready to copy. It correctly splits words at existing camel humps, spaces, hyphens, and underscores, so it handles messy input gracefully.

The common cases at a glance

  • camelCaseuserName: first word lowercase, later words capitalized.
  • PascalCaseUserName: every word capitalized. Common for class names.
  • snake_caseuser_name: lowercase with underscores.
  • CONSTANT_CASEUSER_NAME: uppercase with underscores.
  • kebab-caseuser-name: lowercase with hyphens. Ideal for URLs and CSS.

How to use it

  1. 1Type or paste your text into the input.
  2. 2Every case variant is generated instantly below.
  3. 3Click copy next to the format you need.
  4. 4Paste it straight into your code, config, or content.

Frequently asked questions

What is the difference between camelCase and PascalCase?

Both capitalize the start of each word except the first. camelCase keeps the first word lowercase (userName); PascalCase capitalizes it too (UserName). PascalCase is typically used for class and type names.

When should I use snake_case vs kebab-case?

snake_case (underscores) is common in Python, Ruby, and database columns. kebab-case (hyphens) is used in URLs, CSS class names, and file names, where underscores are less conventional.

Can it convert messy input with mixed separators?

Yes. The converter splits words at camel-case humps, spaces, hyphens, and underscores, so it handles inconsistent input and re-joins it in whatever case you need.

Does it handle acronyms?

It treats runs of characters as words based on separators and case boundaries. Review acronym-heavy input, since conventions for acronyms (e.g. userID vs userId) vary by style guide.

Is my text processed privately?

Yes. All conversion happens in your browser with no network requests.

Related tools