Free Text Case Converter — Convert to Any Case Instantly

Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case and more — instantly, no sign-up required.

0 words0 characters
Auto-saved

About This Text Case Converter

This text case converter is built for developers, writers, and content creators who need to switch between naming conventions and text formats quickly. Paste any text, click a format button, and the entire block transforms instantly — no manual editing, no find-and-replace, no scripts. Whether you are converting variable names from camelCase to snake_case, making a headline title case, or shouting something in UPPERCASE, the conversion happens with a single click.

The ten supported formats cover every common use case in writing and development. UPPERCASE and lowercase handle the basics. Title Case capitalises every major word for headlines and book titles. Sentence case applies standard capitalisation to prose. For developers, camelCase and PascalCase handle JavaScript and TypeScript conventions, snake_case covers Python variables and database columns, kebab-case is the standard for CSS classes and URL slugs, CONSTANT_CASE handles environment variable naming, and alternating case produces the distinctive mixed style. The result is copied to your clipboard with one more click, ready to paste directly into your code editor or CMS.

Developers moving between languages deal with this problem constantly. A variable name written in camelCase for a JavaScript function needs to become snake_case for the Python backend or kebab-case for the HTML attribute. Doing that manually across hundreds of identifiers wastes time and introduces typos. This camelCase converter and snake_case converter handles the full conversion in a single operation regardless of how much text you paste.

This online case converter handles UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and alternating case — all in one tool with live word and character counts shown as you work. Text is auto-saved locally so you never lose a draft mid-conversion.

After converting your text, check its length against platform limits using our Character Counter, which tracks ten social and SEO character limits in real time. For full text analysis including reading time and keyword density, the Word Counter gives you every metric alongside your transformed content.

Use this free text case converter to format headlines, standardise variable names, generate slugs, switch naming conventions between programming languages, and transform any block of text into the exact case format you need.

What Is a Text Case Converter?

A text case converter is a tool that transforms the capitalisation of text from one format to another. Different writing contexts — from social media captions to software code — follow different capitalisation conventions, and switching between them manually is tedious and error-prone. A case converter does this transformation instantly with a single click.

Our free text case converter supports ten different case styles, covering everything from basic UPPERCASE and lowercase to programming-specific formats like camelCase, snake_case, and kebab-case. It works entirely in your browser — your text never leaves your device.

When to Use Each Case Type

UPPERCASE

All letters capitalised. UPPERCASE is used for emphasis, acronyms (NASA, HTML, URL), column headers in spreadsheets, and sometimes for headings in design work. Avoid using UPPERCASE for long passages of prose — it is harder to read and can feel aggressive in digital communication.

lowercase

All letters in small case. Lowercase is common in casual digital communication, URL slugs (e.g., /blog/how-to-write), CSS class names, and database identifiers. Many programming languages prefer or require lowercase for certain constructs.

Title Case

The first letter of each word is capitalised. Title Case is used for article headlines, book titles, film titles, chapter headings, and product names. It gives text a formal, publishable appearance. Note that standard title case rules in English say minor words like “a”, “the”, and “of” should not be capitalised unless they are the first word.

Sentence case

Only the first letter of each sentence is capitalised. Sentence case is used for normal prose, emails, user interface text, error messages, and most body copy. It is the most natural capitalisation style for everyday writing.

camelCase

The first word is lowercase and each subsequent word starts with a capital letter, with no spaces. camelCase is the standard naming convention for variables and functions in JavaScript, TypeScript, Java, and many other programming languages. Examples: getUserName, calculateTotalPrice, isLoggedIn.

PascalCase

Like camelCase, but every word (including the first) starts with a capital letter. PascalCase is used for class names, constructor functions, components in React, and type definitions. Examples: UserProfile, ShoppingCart, ApiResponse.

snake_case

Words separated by underscores, all lowercase. snake_case is the standard in Python for variables and functions, Ruby, and database column names in SQL. Examples: user_name, total_price, created_at.

kebab-case

Words separated by hyphens, all lowercase. kebab-case is standard for CSS class names, HTML attributes, URL slugs, and npm package names. Examples: main-header, blog-post-title, my-npm-package.

CONSTANT_CASE

All uppercase letters with words separated by underscores. CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is used for constants and environment variables in most programming languages. Examples: MAX_RETRY_COUNT, API_BASE_URL, DEFAULT_TIMEOUT.

Title Case vs Sentence Case — What’s the Difference?

Title Case and Sentence case are easily confused, but they serve very different purposes.

Title Case capitalises the first letter of every major word. It is used for titles, headlines, and headings. Example: “The Quick Brown Fox Jumps Over the Lazy Dog”.

Sentence case capitalises only the first word of the sentence (and proper nouns). It reads like normal prose. Example: “The quick brown fox jumps over the lazy dog.”

In practice, most editorial style guides (AP Style, Chicago Manual of Style) use Title Case for main headlines and Sentence case for body text and subheadings in some contexts. Choosing the right one for your context gives your content a polished, professional appearance.

Case Conventions in Programming

Consistency in naming conventions is one of the hallmarks of readable code. Different programming languages have adopted different case conventions as unofficial (and sometimes official) standards:

  • JavaScript / TypeScript: camelCase for variables and functions, PascalCase for classes and components
  • Python: snake_case for variables and functions, PascalCase for classes, CONSTANT_CASE for constants
  • CSS / HTML: kebab-case for class names and IDs
  • SQL: snake_case for table and column names
  • Environment variables: CONSTANT_CASE across all languages
  • URL slugs: kebab-case (e.g., /blog/my-article-title)

When working across multiple languages or refactoring code, our case converter lets you quickly transform variable names and identifiers between conventions.

How to Use This Case Converter

  1. Type or paste your text into the large editor area.
  2. Click any case button (UPPERCASE, lowercase, Title Case, etc.) to instantly transform your text.
  3. Click another button at any time to convert again — the tool always applies the conversion to the current text in the editor.
  4. Copy to clipboard with the Copy button and paste directly into your document, code editor, or CMS.

Your text is auto-saved to your browser, so you can return to it at any time. Need to count words after converting? Try our word counter or character counter to check length after transformation.

Frequently Asked Questions

What is camelCase and when should I use it?

camelCase is a naming convention where the first word is all lowercase and every subsequent word begins with an uppercase letter — producing names like getUserName, totalWordCount and isLoading. camelCase is the standard naming convention for variables, functions and parameters in JavaScript, TypeScript, Java, Swift and Kotlin. It is required by major style guides including Airbnb JavaScript, Google JavaScript and StandardJS. Use camelCase for any variable or function name in frontend or backend JavaScript code. Our case converter converts any text to camelCase instantly with a single click.

What is the difference between camelCase and PascalCase?

The difference between camelCase and PascalCase is the capitalisation of the very first letter. camelCase starts with a lowercase letter — getUserName. PascalCase starts with an uppercase letter — GetUserName. PascalCase is also called UpperCamelCase reflecting this relationship. In practice the two conventions are used in completely different contexts. camelCase is for variables and functions. PascalCase is almost universally reserved for class names, React components and TypeScript interfaces across JavaScript, Python, Java and C#. Our text case converter handles both camelCase and PascalCase conversion instantly.

When should I use snake_case vs camelCase?

Use snake_case when writing Python, Ruby, Rust or SQL — these languages treat snake_case as their official standard. Use camelCase when writing JavaScript, TypeScript, Java or Swift. The choice is largely determined by the language ecosystem you are working in rather than personal preference. Mixing snake_case and camelCase within the same codebase creates inconsistency that slows down code review and onboarding. If your team has a style guide follow it strictly. Our case converter makes switching between snake_case and camelCase instant when you need to port code between languages.

Why do URLs use kebab-case for SEO?

URLs use kebab-case because Google treats hyphens as word separators in search indexing making kebab-case URLs more SEO-friendly than alternatives. A URL like /word-frequency-counter tells Google it contains three separate meaningful words. An underscore-separated URL like /word_frequency_counter is treated as a single unseparated token by Google's indexing. kebab-case URL slugs also read more naturally in browser address bars and are easier to share verbally. Our case converter includes a kebab-case option for generating clean SEO-friendly URL slugs from any text.

What is SCREAMING_SNAKE_CASE used for?

SCREAMING_SNAKE_CASE — all uppercase letters separated by underscores — is the standard convention for constants and environment variables across virtually all programming languages and platforms. Examples include MAX_RETRY_COUNT, API_SECRET_KEY, DATABASE_URL and NODE_ENV. The all-uppercase treatment signals to every developer reading the code that this value is a constant that should never be reassigned during runtime. Environment variables in .env files, Docker configurations and cloud platform settings universally use SCREAMING_SNAKE_CASE. Our case converter includes SCREAMING_SNAKE_CASE as a one-click conversion option.

How do I convert text to title case online?

Converting text to title case online is simple with our free text case converter. Paste your text, click the Title Case button and every major word is capitalised instantly. Title case capitalises the first letter of all major words while leaving articles like a, an and the and prepositions like in, on and at in lowercase unless they start the title. Title case is used for headlines, book titles, article headings, product names and page titles. Our case converter handles all 10 case formats including Title Case, Sentence case, camelCase, PascalCase, snake_case and kebab-case.

Related Writing Tools