Case Converter — Uppercase, Lowercase, Title Case & More
Need to quickly change the case of a block of text? This tool converts any text to uppercase, lowercase, title case, sentence case, or camelCase in one click. It is useful for fixing text that was accidentally typed in all caps, formatting headlines for a website or document, or converting variable names for code. Just paste or type your text in the box below and click the format you need. The result updates instantly and you can copy it with a single click.
Frequently Asked Questions
What is title case?
Title case capitalizes the first letter of each major word. Short words like "a", "the", "in", and "of" are usually kept lowercase unless they start the title. It is commonly used for article headlines, book titles, and page headings.
What is camelCase used for?
CamelCase is used in programming to name variables and functions. The first word is all lowercase and each following word starts with a capital letter, with no spaces. For example "getUserName" or "totalItemCount". It is common in JavaScript, Java, and many other languages.
What is the difference between sentence case and title case?
Sentence case only capitalizes the very first word and proper nouns, just like a normal sentence. Title case capitalizes the first letter of most words. Sentence case is standard for body text and emails, while title case is used for headlines and document titles.
How do I change text to all caps in Microsoft Word?
Select the text in Word, then press Shift+F3 to cycle through lowercase, uppercase, and title case. You can also go to the Home tab, click the Change Case button (Aa), and choose your preferred option from the dropdown menu.
What is snake_case and when is it used?
Snake case uses lowercase words separated by underscores: this_is_snake_case. It is the standard for variables and functions in Python, Ruby, and PHP, and for database column names in SQL. It is easy to read because word boundaries are visually clear. Most style guides for these languages mandate snake case for anything other than class names.
What is kebab-case and where is it used?
Kebab case uses lowercase words separated by hyphens: this-is-kebab-case. It is the standard for CSS class names, HTML attributes, and URL slugs. Unlike camelCase or snake_case, hyphens in URLs are treated as word separators by Google, which can improve search ranking for the targeted keywords in the URL slug.
What is the difference between camelCase and PascalCase?
Both join words without spaces and capitalize each word's first letter, but PascalCase also capitalizes the very first letter: camelCase vs PascalCase. camelCase is typically used for variables and functions in JavaScript, Java, and Swift. PascalCase is used for class names and component names in most languages. The distinction matters because linters enforce these conventions.
How It Works
Case conversion runs in your browser using JavaScript string methods. Lowercase and uppercase use toLowerCase() and toUpperCase(). Title case splits on word boundaries and capitalizes first letters while keeping a list of skip words (a, an, the, and, etc.) lowercase unless they start the title. camelCase and snake_case split on spaces and punctuation, then join with the target separator.
Naming Convention Guide
Use camelCase for JavaScript variables and functions. Use PascalCase for class and component names in any language. Use snake_case for Python, Ruby, PHP variables and SQL columns. Use kebab-case for CSS classes, HTML attributes, and URL slugs. Use SCREAMING_SNAKE_CASE for constants and environment variables.
Title Case Rules
AP Style and Chicago Manual of Style have slightly different title case rules. Both capitalize nouns, verbs, adjectives, and adverbs. Both leave short prepositions (in, on, at, by) lowercase in the middle of a title. The main difference is how they treat longer prepositions (around, between, through). This tool follows a common style guide-agnostic approach.
When to Use This
Use to quickly convert a database column name to camelCase for JavaScript, to format a blog post title in title case, to normalize inconsistently-cased user input, to convert a sentence into a URL-friendly slug, or to bulk-convert copied text from one naming convention to another before pasting into code.
More Free Tools
Video Resolution Checker
Identify video resolution standard, aspect ratio, megapixels, and recommended streaming bitrate.
Upside Down Text Generator
Flip text and emojis upside down using Unicode character substitution with a full code point breakdown.
Word Counter
Count words, characters, sentences, paragraphs, and reading time instantly.
Lua Script Generator
Generate complete Lua scripts for Love2D, Roblox, ComputerCraft, WoW addons, Hammerspoon, Redis, and CLI.