Case Converter

Convert text between common casing styles instantly.

Use this free online case converter to instantly transform text into camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, and more. Whether you're refactoring code, formatting database fields, or simply adjusting text capitalization, this tool generates all variations at once directly in your browser.

Ad slot tool-case-converter-bottom

About this tool

Switch Between Text Cases

Convert text into camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more instantly.

  • Generates multiple case formats
  • Preserves numbers and special characters where appropriate
  • Copy individual outputs with one click

Use Cases

Case conversion helps align naming conventions across codebases and APIs.

  • Convert SQL columns (snake_case) to JS objects (camelCase)
  • Format CSS class names (kebab-case)
  • Standardize environmental variables (CONSTANT_CASE)

How to Use Case Converter

1

Paste Text

Enter your text (spaced, underscored, or purely mixed) into the input box.

2

View Results

The tool automatically detects word boundaries and generates every casing variation below.

3

Copy Selection

Click the copy icon next to the specific format you need (e.g., just the PascalCase version).

Ad slot tool-case-converter-inline

Common questions

What is camelCase?

camelCase is a naming convention where the first word is lowercase and each subsequent word starts with a capital letter (e.g., exampleVariableName). It is commonly used in JavaScript and other programming languages.

What is snake_case?

snake_case is a naming style where words are separated by underscores and typically written in lowercase (e.g., example_variable_name). It is commonly used in Python and database fields.

Does it handle mixed input?

Yes. It intelligently splits words based on spaces, underscores, dashes, and CamelCase transitions (e.g., 'fooBar' becomes 'foo' and 'Bar').

What is the difference between PascalCase and camelCase?

PascalCase capitalizes the first letter of every word (e.g., ExampleVariable), while camelCase starts with a lowercase letter followed by capitalized words (e.g., exampleVariable).

How does it handle numbers?

Numbers are treated as part of the previous word unless separated. For example, 'user1' stays 'user1' in most cases, but 'user_1' might split depending on the target case.

What is 'Train Case'?

Train-Case is similar to Title-Case but with hyphens separating the words (e.g., 'Train-Case-Example'). It's often used in HTTP headers.

Can I convert multiple lines?

Currently, the tool processes the entire input as a single block of text.

Is there a limit on text length?

No hard limit, but extremely long strings (1MB+) might cause a slight UI delay.

Related tools