logoToolMight

Case Converter

Convert text between camelCase, snake_case, PascalCase, kebab-case, uppercase, and lowercase instantly.

This free online case converter lets you transform text into camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, and more instantly. Developers often use case conversion tools to format variable names, database fields, and CSS class names consistently across projects.

Initializing Engine...
Ad slot tool-case-converter-bottom

About this tool

Convert Text Between Common Case Formats

Convert text into camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more instantly. If you're splitting or validating text patterns before converting cases, you can test your pattern using our RegEx Tester.

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

Common Case Conversion 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 Your Text

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

2

Generate Case Variations

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

3

Copy the Converted Case

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 a case converter?

A case converter is a tool that transforms text between different capitalization styles such as camelCase, snake_case, PascalCase, and UPPERCASE. Developers often use case converters to standardize variable names, database fields, and CSS classes.

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. If the converted text needs to be included in URLs or query parameters, you can safely encode it using our URL Encoder / Decoder.

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