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
- Paste the source text — it can be in any case.
- Pick the target format with one click.
- Copy the result, or re-run with a different format if needed.
- 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 ConverterMore guides
- How to Unscramble Letters Into Words
- How to Find Anagrams of Any Word
- How to Count Words, Characters and Reading Time Accurately
- How to Find Words by Pattern, Length and Letters
- How to Use a Random Word Generator for Games, Writing and Brainstorming
- How to Count Characters (With and Without Spaces)
- How to Clean Up Messy Text (Spaces, Line Breaks and Whitespace)
- How to Remove Duplicate Lines From a List
Related free tools
More free online utilities that pair well with this one — same-category tools for the same task, plus handy extras from other categories.
More words & text tools
You might also need
- Base64 Encoder / DecoderConvert plain text or images to Base64 strings
- Base64 Image Encoder / DecoderConvert images to Base64 & Base64 back to images
- Curl-to-Code ConverterConvert curl commands to fetch, Python & PHP
- Data Storage ConverterConvert bits, bytes, KB, MB, GB & TB
- Data Transfer ConverterConvert bit/s, Mbit/s, MB/s & GB/s