Skip to main content

Case Converter

Convert to:
Input
1
Output
Output appears here
Paste something to get started

3 min readUpdated

About Case Converter

The Case Convert tool transforms your text between all common case formats instantly. Convert to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more with a single click.

This tool is essential for developers renaming variables, writers formatting titles, data analysts normalizing field names, and anyone cleaning up text from inconsistent sources.

Each case format serves a specific purpose: snake_case and CONSTANT_CASE are common in Python and configuration files, camelCase and PascalCase dominate JavaScript and Java, kebab-case is used in URLs and CSS classes, and Title Case is standard in English headings and titles.

Everything runs locally in your browser. No account, sign-up, or installation required.

Case Converter Features

  • Nine case styles in one tool

    Convert to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, and lowercase without retyping the text for each format.

  • Correctly splits existing compound words

    Converting already-cased text (like myAPIResponse or user-id) correctly detects word boundaries, including acronyms, instead of mangling them into the wrong output.

  • Whole-text or per-line conversion

    Convert a single string, or paste a whole list of variable names or labels and convert every line at once.

How to Use Case Converter

  1. Paste your text into the input.

  2. Select the target case format from the options.

  3. The converted text appears instantly.

  4. Copy the result.

Examples

Example — To UPPERCASE
Input
hello world
Output
HELLO WORLD
Example — To camelCase
Input
my variable name
Output
myVariableName
Example — To snake_case
Input
My Variable Name
Output
my_variable_name
Example — To kebab-case
Input
My Page Title Here
Output
my-page-title-here
Example — To Title Case
Input
the quick brown fox jumps over the lazy dog
Output
The Quick Brown Fox Jumps Over the Lazy Dog
Example — Header row to snake_case
Input
Customer Email
Order Date
Total Amount
Output
customer_email
order_date
total_amount

Practical Uses for Case Converter

  • Convert a spreadsheet header row to snake_case for a database schema
  • Change a JavaScript variable name to camelCase
  • Fix an ALL CAPS list pasted from an old system
  • Convert a page title to Title Case for a heading
  • Convert a CSS class name to kebab-case
  • Standardize inconsistent name capitalization in a contact list

Common Mistakes to Avoid

Using camelCase for a class name instead of PascalCase.
In JavaScript, Java, and C#, classes and components conventionally use PascalCase (MyComponent); only variables and functions use camelCase (myVariable).
Mixing hyphens into a variable name meant for a programming language.
Hyphens aren't valid in identifiers in most languages. Use kebab-case only for URLs and CSS/HTML class names — use snake_case or camelCase for actual code identifiers.
Manually retyping text to change its case and introducing typos.
Convert the existing text directly instead of retyping it — this preserves the original wording exactly and avoids transcription errors.

Who Uses the Case Converter Tool

  • Developers rename variables between camelCase, PascalCase, and snake_case when switching languages or frameworks.
  • Data analysts normalize inconsistent capitalization in imported spreadsheet or database columns.
  • Content editors fix ALL CAPS text pasted from old documents or convert headings to Title Case.
  • Database administrators convert column and table names to snake_case or CONSTANT_CASE conventions.
  • Front-end developers convert labels or class names to kebab-case for CSS and URL-friendly formats.

Comparisons

camelCase vs snake_case vs kebab-case

These three naming conventions serve different ecosystems. camelCase (myVariableName) and PascalCase (MyVariableName) dominate JavaScript, Java, and C# — variables and functions use camelCase, classes and components use PascalCase.

snake_case (my_variable_name) is the convention in Python, Ruby, and most SQL database schemas. kebab-case (my-variable-name) is reserved for URLs and CSS class names, since underscores and capital letters aren't valid or conventional there. Pick the format that matches where the text is going, not just personal preference.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (myVariableName). PascalCase starts with an uppercase letter (MyVariableName). Both capitalize the start of each subsequent word.

What is CONSTANT_CASE?

CONSTANT_CASE is UPPER_SNAKE_CASE — all uppercase letters separated by underscores. It is conventionally used for constants in Python, JavaScript, Java, and many other languages.

What is the difference between Title Case and Sentence case?

Title Case capitalizes the first letter of every major word. Sentence case capitalizes only the first letter of the first word and proper nouns.

Can I convert a snake_case variable to camelCase?

Yes — paste your snake_case text and select camelCase. Words separated by underscores will be joined with each subsequent word capitalized.

Can I convert a phrase to a URL slug (kebab-case)?

Yes — select kebab-case mode to convert 'My Page Title' to 'my-page-title', which is ideal for URLs and CSS class names.

Does Title Case handle small words like 'a', 'an', 'the'?

Yes — standard Title Case rules keep articles, prepositions, and conjunctions lowercase unless they are the first or last word.

Can I convert a spreadsheet header row to database column names?

Yes — paste your header row (one field name per line) and select snake_case to get names like customer_email and order_date, matching typical SQL naming conventions.

Can I fix text that was pasted in ALL CAPS?

Yes — select Sentence case or Title Case to restore normal capitalization, then adjust individual proper nouns manually if needed.

Does it handle text that's already mixed case?

Yes — the tool first normalizes the input before converting, so 'HELLO world' or 'hello WORLD' both convert consistently to your selected target case.

Ready to use Case Converter?

It's free, runs entirely in your browser, and there's nothing to install or sign up for.

Scroll up & try it now ↑