Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE instantly.

Your data never leaves your browser

How to Use

  1. 1

    Paste your text

    Enter the text you want to convert in the input area.

  2. 2

    Select the target case

    Choose from 9 case styles using the dropdown: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE.

  3. 3

    Click Convert

    The converted text appears in the output area. Click Copy to copy it to your clipboard.

What is Case Converter?

A case converter transforms text between different letter casing styles. This is essential for developers who switch between naming conventions — camelCase for JavaScript variables, snake_case for Python and Ruby, kebab-case for CSS classes and URLs, PascalCase for React components and class names, CONSTANT_CASE for environment variables. It is also useful for writers who need to change capitalization of headings, titles, or copy-pasted UPPERCASE text.

This online tool supports 9 case styles: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. The tool intelligently splits the input by detecting transitions between lowercase and uppercase letters, underscores, hyphens, and spaces, then reassembles the words in your chosen style. It handles mixed input like `myVariable_name` or `XMLHttpRequest` correctly.

For URL-friendly text (lowercase, dashes, no special characters), use the [Slug Generator](/tools/slug-generator/). To clean text before case conversion, try [Whitespace Cleaner](/tools/whitespace-cleaner/). For more on text manipulation in code, read [Text Processing Tips for Developers](/blog/text-processing-tips/).

FAQ

What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariableName), while PascalCase starts with an uppercase letter (MyClassName). In JavaScript/TypeScript, camelCase is conventional for variables and functions, PascalCase for classes and React components.
What is snake_case used for?
snake_case uses underscores between words, all lowercase. It's the standard naming convention in Python, Ruby, Rust, and is commonly used for database column names, API parameters, and file names.
How does the tool handle mixed input like 'myVariable_name'?
The tool splits input by detecting transitions between lowercase and uppercase letters, underscores, hyphens, and spaces. So 'myVariable_name' is split into ['my', 'Variable', 'name'] and then reassembled in the target case.
Which case style should I use for what?
Conventions: camelCase for JavaScript/Java variables and methods, PascalCase for class names and React components, snake_case for Python/Ruby variables and database columns, kebab-case for CSS classes and URL slugs, CONSTANT_CASE for environment variables and constants. UPPERCASE for emphasis or shouting (avoid in UI). Title Case for headings and titles. Sentence case for body text. Pick a style and be consistent within a project — most language linters can enforce these automatically.

Related Articles

Related Tools