🔤 Text Case Converter

Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or aLtErNaTiNg CaSe — instantly, free.

✍️ Your Text
Words: 0 Characters: 0
📋 Result
Guide

About the Text Case Converter

This text case converter transforms any block of text into nine common capitalization and naming styles with a single click: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and the joke-friendly aLtErNaTiNg CaSe. It's useful for writers formatting headings, developers renaming variables between coding conventions, and anyone who needs to quickly reformat pasted text without retyping it.

How It Works

UPPERCASE and lowercase simply change every letter's case. Title Case capitalizes the first letter of each word and lowercases the rest. Sentence case lowercases everything, then capitalizes the first letter of the string and the first letter after each sentence-ending punctuation mark (. ! ?). camelCase and PascalCase split the text into words (on spaces, hyphens, and underscores), then join them back together with no separator — camelCase lowercases the first word and capitalizes the rest, while PascalCase capitalizes every word including the first. snake_case and kebab-case both lowercase the text and replace word separators with an underscore or hyphen respectively. aLtErNaTiNg CaSe alternates upper and lower case letter by letter, skipping non-letter characters when deciding which case comes next.

Why It Matters

Different contexts expect different casing: headings and titles often use Title Case, JavaScript variables typically use camelCase, Python variables and database columns typically use snake_case, and URLs and CSS classes typically use kebab-case. Converting by hand is tedious and error-prone, especially for longer text — this tool does it instantly and correctly every time.

Tips for Accurate Results

  • For camelCase and PascalCase, use spaces, hyphens, or underscores between words in your input so the tool can correctly detect word boundaries.
  • Sentence case treats ., !, and ? followed by a space as sentence boundaries — unusual punctuation or abbreviations (like "Dr. Smith") may occasionally be capitalized differently than you'd expect.
  • Use the live word and character counts below the input box to keep track of text length as you edit.
  • Use the Copy Result button to grab the converted text without manually selecting it from the output box.
FAQ

Frequently Asked Questions

Common questions about text case conversion

What's the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every word (e.g. "This Is A Title"), commonly used for headings. Sentence case capitalizes only the first letter of each sentence, like normal prose (e.g. "This is a sentence. Here is another.").
When would I use camelCase vs PascalCase?
camelCase (first word lowercase, each following word capitalized, no spaces, e.g. "myVariableName") is the common convention for variable and function names in JavaScript and Java. PascalCase (every word capitalized, no spaces, e.g. "MyClassName") is typically used for class and type names.
What are snake_case and kebab-case used for?
snake_case (lowercase words joined with underscores, e.g. "my_variable_name") is common in Python and database column names. kebab-case (lowercase words joined with hyphens, e.g. "my-variable-name") is common in URLs, CSS class names, and HTML attributes.
Does this tool store or upload my text?
No. All text conversion happens instantly in your browser using JavaScript — nothing is sent to a server, logged, or saved. Refreshing or closing the page discards everything you typed.

Related Calculators

Explore other text & number utilities