Guide

How to Convert Text Between Cases (UPPER, lower, Title, camelCase and More)

Learn every text case format, when to use each, and how a case converter saves time on formatting code, headings and data.

A case converter rewrites text in a different capitalisation style. Beyond the obvious UPPER and lower case, it handles title case, sentence case, and the programmer-friendly formats like camelCase, snake_case and kebab-case.

The main case formats

  • UPPER CASE — every letter capitalised; used for emphasis or acronyms.
  • lower case — every letter lowercase; common in URLs and code.
  • Title Case — each word capitalised; used in headings and book titles.
  • Sentence case — first word capitalised, rest lowercase; normal prose.
  • camelCase — first word lowercase, subsequent words capitalised, no spaces; JavaScript variables.
  • PascalCase — every word capitalised, no spaces; class names in many languages.
  • snake_case — words lowercase separated by underscores; Python and database columns.
  • kebab-case — words lowercase separated by hyphens; URLs and CSS classes.

When to use each format

Code conventions dictate most of these: JavaScript favours camelCase for variables and PascalCase for components; Python uses snake_case; URLs and CSS classes use kebab-case. For prose, headings use Title Case or Sentence case depending on your style guide.

How to use a case converter efficiently

  1. Paste the source text — it can be in any case.
  2. Pick the target format with one click.
  3. Copy the result, or re-run with a different format if needed.
  4. For variable names, paste a phrase like "user full name" and convert straight to camelCase or snake_case.

Examples

The phrase "user full name" becomes userFullName (camelCase), UserFullName (PascalCase), user_full_name (snake_case), user-full-name (kebab-case), and User Full Name (Title Case). One source string, five valid outputs for different contexts.

When a case converter is useful

  • Renaming variables or files to match a code convention.
  • Fixing ALL CAPS text pasted from a form or PDF.
  • Formatting headings, titles, and table column names.
  • Preparing strings for URLs, slugs, or CSS class names.

Put it into practice

Use the Case Converter right now — free, in your browser, no sign-up required.

Try the Case Converter