Case Converter

Input
Conversions

What is Case Conversion?

Case conversion is the process of transforming text between different naming conventions — the rules that dictate how multi-word identifiers are formatted in code, URLs, file names, and databases. Every programming language and platform has preferred conventions, and switching between them is one of the most common text transformations developers perform.

Naming conventions exist because most programming languages do not allow spaces in identifiers. Instead, developers use capitalization patterns, underscores, or hyphens to visually separate words while keeping the identifier as a single token that a compiler or interpreter can parse.

Common Naming Conventions

When to Use Each Convention

Choosing the right naming convention depends on the language and context:

How This Tool Works

The converter uses a two-step process:

  1. Tokenization: The input is split into individual words by detecting boundaries — uppercase-to-lowercase transitions (camelCase), underscores (snake_case), hyphens (kebab-case), or spaces. This produces a normalized array of lowercase words.
  2. Reassembly: The word array is then joined using the rules of each target convention — concatenation with capitalization for camelCase/PascalCase, underscores for snake_case, hyphens for kebab-case, and so on.

This means you can input text in any format and get all eight conversions simultaneously. The tool also auto-detects the input format and displays it above the results.

How to Use This Tool

  1. Type or paste any text into the input field — it can be in any case format, or just plain words separated by spaces.
  2. All eight conversions appear instantly below as you type.
  3. Click Copy next to any result to copy it to your clipboard.
  4. The detected input format is shown below the input field.

Everything runs in your browser — no data is sent to any server.

Frequently Asked Questions

What is camelCase?

camelCase is a naming convention where multiple words are joined without spaces, each word after the first starting with an uppercase letter. For example, "user first name" becomes "userFirstName". It is the standard for variables and functions in JavaScript, Java, and TypeScript.

What is snake_case?

snake_case is a naming convention where words are joined with underscores and all letters are lowercase. For example, "user first name" becomes "user_first_name". It is the standard in Python, Ruby, Rust, and is commonly used for database column names and REST API parameters.

What's the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (e.g., "getUserName"), while PascalCase starts with an uppercase letter (e.g., "GetUserName"). In most languages, camelCase is used for variables and functions, while PascalCase is reserved for class names, type names, and components (e.g., React components).

When should I use kebab-case?

kebab-case (words joined with hyphens, all lowercase) is used in CSS class names, HTML attributes, URL slugs, and file names. For example, "my-component-name" or "blog-post-title". It is the convention for CSS because property names like "font-size" already use hyphens, and it is URL-friendly since hyphens are not encoded in URLs.

What is SCREAMING_SNAKE_CASE?

SCREAMING_SNAKE_CASE (also called UPPER_SNAKE_CASE or CONSTANT_CASE) is snake_case with all uppercase letters, e.g., "MAX_RETRY_COUNT". It is the universal convention for constants and environment variables across nearly all programming languages.

What naming convention does Python use?

Python follows PEP 8 naming conventions: snake_case for variables, functions, and module names; PascalCase (called CapWords) for class names; and UPPER_SNAKE_CASE for constants. For example: my_variable, calculate_total(), class UserProfile, MAX_CONNECTIONS.