Free Online Text Case Converter

Instantly convert text between 11 different case formats — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, and path/case. Perfect for developers, writers, and content creators.

🔒 100% Private ⚡ Browser-Based 🎯 No Signup 💰 100% Free

What Is a Case Converter?

A case converter is an online utility that transforms text from one letter-case format to another. Whether you accidentally typed an entire paragraph in CAPS LOCK, need to rename a JavaScript variable from user_name to userName, or want to create a perfectly formatted headline in Title Case, a case converter handles the transformation instantly — no manual retyping required.

Our free case converter online tool supports 11 distinct text-case formats, covering every common convention used in writing, programming, web development, and data management. Simply paste your text, click a button, and copy the result. Everything runs inside your browser, so your data stays completely private.

How to Convert Text Case Online

Changing text case with our tool is effortless. Follow these four steps:

  1. Enter or Paste Your Text — Type directly into the input area or paste text from any source (documents, emails, code editors, spreadsheets).
  2. Select a Case Type — Click the button for your desired case format: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, or path/case.
  3. View the Result — The converted text appears instantly in the output area. No loading screens, no server calls.
  4. Copy or Download — Click Copy to Clipboard for quick pasting, or use the Download button to save as a .txt file.

Text Case Types Explained

The table below explains every case format supported by our case converter online tool, with examples and typical use cases.

Case Name Example When to Use
UPPERCASE HELLO WORLD Acronyms, emphasis, headings, legal text, constants
lowercase hello world URLs, email addresses, normalised data, usernames
Title Case Hello World Blog titles, book titles, headings, button labels
Sentence case Hello world Body text, UI labels, form instructions, notifications
camelCase helloWorld JavaScript variables, Java methods, JSON keys
PascalCase HelloWorld Class names in C#, Java, TypeScript; React components
snake_case hello_world Python variables, Ruby, database columns, file names
kebab-case hello-world CSS classes, URL slugs, HTML attributes, CLI flags
CONSTANT_CASE HELLO_WORLD Environment variables, constants, configuration keys
dot.case hello.world Java package names, property paths, configuration keys
path/case hello/world File paths, URL routes, directory structures

Programming Naming Conventions by Language

Different programming languages and frameworks have strong conventions about which case format to use for identifiers. Using the correct case is not just a matter of style — it signals intent, improves readability, and helps teammates navigate code faster. Here is a quick reference:

JavaScript & TypeScript

The JavaScript ecosystem favours camelCase for variables, functions, and object properties (e.g., getUserName, isActive). PascalCase is reserved for class names and React/Angular component names (e.g., UserProfile, AppHeader). Constants are written in CONSTANT_CASE (e.g., MAX_RETRIES, API_BASE_URL). CSS modules and CSS class names in JSX typically use kebab-case (e.g., nav-item, btn-primary).

Python

Python's PEP 8 style guide mandates snake_case for variables, functions, and module names (e.g., get_user_name, total_count). Class names use PascalCase (e.g., HttpClient, DataProcessor). Module-level constants are CONSTANT_CASE (e.g., DEFAULT_TIMEOUT).

C# & .NET

Microsoft's .NET naming guidelines use PascalCase for public methods, properties, classes, and namespaces (e.g., GetUserName, HttpRequest). Private fields often use camelCase with an underscore prefix (e.g., _userName). Constants follow PascalCase as well.

CSS & HTML

kebab-case is the universal convention for CSS class names, IDs, custom properties, and data attributes (e.g., main-header, --primary-color, data-user-id). BEM methodology extends this with double underscores and hyphens (e.g., card__title--highlighted).

Databases & SQL

Most SQL databases use snake_case for table and column names (e.g., user_accounts, created_at). Some legacy systems use PascalCase, but snake_case is the modern standard recommended by PostgreSQL, MySQL, and SQLite conventions.

Common Use Cases for a Case Converter

  • Fixing CAPS LOCK text — Quickly convert accidentally all-caps paragraphs to proper Sentence case without retyping.
  • Creating URL slugs — Transform article titles into SEO-friendly kebab-case slugs for web pages (e.g., "My Blog Post" → my-blog-post).
  • Refactoring code variables — Switch between naming conventions when porting code between languages (e.g., Python's user_name → JavaScript's userName).
  • Formatting spreadsheet data — Normalise inconsistent capitalisation in CSV exports or database dumps before importing.
  • Writing headlines — Convert rough draft text to proper Title Case for blog posts, presentations, and marketing material.
  • Generating environment variable names — Convert descriptive phrases into CONSTANT_CASE for .env files and config management.
  • API key and JSON formatting — Ensure JSON keys follow camelCase conventions expected by front-end applications.

Tips for Working with Text Cases

  • Know your project's style guide. Before converting, check whether your team follows a specific naming convention. Consistency within a codebase is more important than any single convention.
  • Be careful with acronyms. Some style guides write "HTTP" as Http in PascalCase (e.g., HttpClient), while others keep the full uppercase (e.g., HTTPClient). Our tool follows the most common convention.
  • Combine with Word Counter. After converting, paste the result into our Word Counter to verify character counts haven't changed unexpectedly.
  • Test code conversions in a sandbox. When renaming variables across a codebase, convert a sample first and validate that your IDE's find-and-replace handles the new case correctly.
  • Use kebab-case for file names. In modern web projects, kebab-case file names are case-insensitive on all operating systems and work cleanly in URLs.
  • Bookmark this page. Case conversion is a task you will need again and again — keep this tool one click away for instant access.

Frequently Asked Questions

What is a case converter?

A case converter is an online tool that transforms text between different letter-case formats such as UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more. It saves time by instantly reformatting text without manual retyping.

How many case types does this tool support?

Our case converter supports 11 different text cases: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, and path/case.

What is the difference between camelCase and PascalCase?

In camelCase, the first word starts with a lowercase letter and every subsequent word is capitalised (e.g., myVariableName). In PascalCase, every word — including the first — starts with an uppercase letter (e.g., MyVariableName). camelCase is standard in JavaScript, while PascalCase is used for class names in C#, Java, and TypeScript.

Is this case converter tool free?

Yes, this case converter is 100% free with no signup required, no usage limits, and no intrusive ads. Your text is processed entirely in your browser and is never uploaded to a server.

When should I use snake_case vs kebab-case?

Use snake_case for Python variable and function names, database column names, and Ruby identifiers. Use kebab-case for CSS class names, HTML attributes, URL slugs, and file naming in many web projects. The choice typically depends on the language or framework conventions you are following.

Does the converter handle special characters and numbers?

Yes, our converter intelligently handles special characters, numbers, and punctuation. Numbers are preserved in all case types. Special characters are treated as word separators when converting to programmatic cases like camelCase and snake_case.

Can I use this tool for converting code variable names?

Absolutely. The tool is ideal for converting between programming naming conventions — for example, transforming a descriptive phrase into camelCase for JavaScript, PascalCase for C# classes, snake_case for Python, CONSTANT_CASE for configuration constants, or kebab-case for CSS class names.

Case Conversion for SEO & Content Marketing

The way you capitalise your titles, headings, and URLs has a measurable impact on search engine optimisation and click-through rates (CTR). Studies by content marketing platforms consistently show that well-formatted titles receive significantly more clicks in search engine results pages (SERPs). Understanding which text case to use — and when — is a critical skill for anyone publishing content online.

Title Case for Headlines & SEO Titles

Title Case (capitalising every major word) is the gold standard for blog post titles, landing page headings, and SEO <title> tags. Google displays the first 50–60 characters of your title tag in search results, and a properly capitalised title signals professionalism and relevance. For example, "How to Convert Text Case Online for Free" is far more clickable than "how to convert text case online for free" or "HOW TO CONVERT TEXT CASE ONLINE FOR FREE." Title Case strikes the ideal balance between readability and visual weight.

Sentence Case for Meta Descriptions & Body Copy

Sentence case (capitalising only the first word and proper nouns) is the preferred format for meta descriptions, subheadings, and body text. Google's own style guide recommends sentence case for UI text, and many major publications — including The Guardian and the BBC — use sentence case for article headlines. It reads naturally, feels less "shouty" than Title Case, and performs well in meta descriptions where readability drives CTR.

URL Slug Formatting — lowercase-with-hyphens

URL slugs should always be written in lowercase kebab-case (words separated by hyphens). Search engines treat uppercase and lowercase URLs as potentially different pages, which can cause duplicate content issues. A clean URL like example.com/text-case-converter is easier to read, share, and link to than example.com/Text_Case_Converter or example.com/TEXT%20CASE%20CONVERTER. Google's SEO guidelines explicitly recommend using hyphens as word separators in URLs, and our case converter makes this transformation effortless.

SEO Best Practices Checklist

  • Title tags: Use Title Case. Keep under 60 characters. Include your primary keyword.
  • Meta descriptions: Use Sentence case. Keep under 155 characters. Write a compelling call-to-action.
  • H1 headings: Match your title tag case. Use one H1 per page.
  • URL slugs: Use lowercase-with-hyphens. Remove stop words. Keep short and descriptive.
  • Social media titles: Use Title Case for higher engagement on LinkedIn and Twitter/X.

Case Conversion in Programming

Every programming language and framework has conventions about how identifiers — variable names, function names, class names, and constants — should be capitalised. These conventions are not just stylistic preferences; they encode meaning. A developer reading MAX_RETRIES instantly knows it is a constant, while maxRetries signals a mutable variable. Here is a deep dive into each major convention, with code examples.

camelCase

camelCase starts with a lowercase letter and capitalises the first letter of each subsequent word, with no separators. It is the dominant convention in JavaScript, TypeScript, Java (for methods and variables), and Swift.

// JavaScript
const userName = 'Alice';
function getUserProfile(userId) { /* ... */ }
const isActive = true;

PascalCase (UpperCamelCase)

PascalCase is identical to camelCase except the first letter is also capitalised. It is used for class names in virtually every object-oriented language, React component names, C# public methods and properties, and TypeScript interfaces and types.

// TypeScript
class UserProfile {
  firstName: string;
  lastName: string;
}
interface ApiResponse { /* ... */ }

snake_case

snake_case separates words with underscores and uses all lowercase letters. It is the standard in Python (PEP 8), Ruby, Rust, PHP (for functions), and most SQL databases.

# Python
def get_user_name(user_id):
    first_name = fetch_from_db(user_id)
    return first_name

kebab-case (hyphen-case)

kebab-case separates words with hyphens and uses all lowercase letters. It is the universal convention for CSS class names, HTML custom attributes, URL slugs, and CLI command flags. Note that most programming languages do not allow hyphens in variable names, so kebab-case is primarily used outside of code logic.

/* CSS */
.nav-item--active {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
}

SCREAMING_SNAKE_CASE (CONSTANT_CASE)

SCREAMING_SNAKE_CASE (also called CONSTANT_CASE or UPPER_SNAKE_CASE) uses all uppercase letters with underscore separators. It is the universal convention for constants and environment variables across virtually all languages.

// Java / JavaScript
public static final int MAX_RETRY_COUNT = 5;
const API_BASE_URL = 'https://api.example.com';

# Shell / .env files
DATABASE_URL=postgres://localhost:5432/mydb
NODE_ENV=production

Quick Reference: Language → Convention

Language / Context Variables & Functions Classes & Types Constants
JavaScript / TypeScriptcamelCasePascalCaseCONSTANT_CASE
Pythonsnake_casePascalCaseCONSTANT_CASE
JavacamelCasePascalCaseCONSTANT_CASE
C# / .NETcamelCase (private), PascalCase (public)PascalCasePascalCase
Rubysnake_casePascalCaseCONSTANT_CASE
Rustsnake_casePascalCaseCONSTANT_CASE
GocamelCase / PascalCase (exported)PascalCasePascalCase
CSS / HTMLkebab-case
SQL / Databasessnake_case

Quick Summary

  • Supports 11 text cases — Convert between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, and path/case in one click.
  • Built for developers & writers — Instantly reformat code variable names, SEO titles, URL slugs, database columns, and marketing headlines without manual retyping.
  • 100% free & private — No signup, no server uploads, no usage limits. All processing happens locally in your browser using JavaScript.
  • Follows language conventions — Matches naming standards for JavaScript (camelCase), Python (snake_case), C# (PascalCase), CSS (kebab-case), and environment variables (CONSTANT_CASE).