Text

How to Convert Text Case Online: UPPERCASE, Title Case, camelCase

The capitalization rules behind each case style, and when developers and writers actually need them.

TL;DR

UPPERCASE and lowercase are self-explanatory. Title Case capitalizes most words (style guides differ on short words like "a" or "the"). Sentence case only capitalizes the first word. camelCase joins words with no spaces, capitalizing each after the first (firstName); snake_case joins with underscores, all lowercase (first_name). Coding conventions matter for consistency across languages — JavaScript typically favors camelCase, while Python and many databases favor snake_case.

On this page
  1. The common case styles
  2. Why title case rules actually differ
  3. Where coding case styles matter
  4. Case style reference table
  5. Convert your text
  6. Common pitfalls and best practices
  7. FAQ

The common case styles

UPPERCASE and lowercase are self-explanatory — every letter converted to the same case. Title Case capitalizes the first letter of most words (with style guides differing on short words like "a" or "the"). Sentence case only capitalizes the first word of the sentence, treating the rest like normal prose.

camelCase and snake_case are coding conventions rather than prose styles: camelCase joins words with no spaces and capitalizes each word after the first (firstName), while snake_case joins them with underscores, all lowercase (first_name). PascalCase is a close relative of camelCase that also capitalizes the first word (FirstName), commonly used for class or component names rather than variables.

Why title case rules actually differ

APA and Chicago style guides don't agree on which short words to lowercase in a title — prepositions and articles are typically lowercased unless they start the title, but the exact word list varies by guide. Chicago style, for instance, generally lowercases prepositions of any length, while APA lowercases only short prepositions (under four letters), which is why two "correctly" title-cased versions of the same sentence can look slightly different depending on which guide they follow.

Because of this variation, a general-purpose title case tool typically follows one common convention (usually close to APA or a widely-used default), which works well for most everyday use but may not exactly match a specific publication's house style — always check a target publication's specific style guide for formal submissions.

Where coding case styles matter

Converting between camelCase and snake_case comes up constantly when working across languages with different conventions — JavaScript typically uses camelCase for variables and functions, while Python and many databases favor snake_case. Getting this consistent avoids subtle bugs when passing data between systems, particularly when a JSON API response uses one convention and the consuming code's language convention expects the other.

Some teams write conversion logic into their API layer specifically to handle this mismatch automatically, translating between a database's snake_case columns and a JavaScript frontend's camelCase expectations — but for quick one-off conversions (renaming a batch of variables, reformatting a data export), a case converter tool is often faster than writing that logic.

kebab-case (hello-world) is another common convention worth knowing, widely used in URL slugs and CSS class names, since hyphens are safe in URLs and CSS selectors in ways underscores sometimes aren't treated identically across all systems. Choosing the right case style for the right context — file names, URLs, code, or prose — is as much about following the established convention of that context as personal preference.

Case style reference table

Common case styles and their typical use
StyleExampleTypical use
UPPERCASEHELLO WORLDEmphasis, constants, acronyms
lowercasehello worldURLs, casual text, some slugs
Title CaseHello WorldHeadlines, article titles
Sentence caseHello worldStandard prose, UI labels
camelCasehelloWorldJavaScript variables, functions
snake_casehello_worldPython variables, database columns
PascalCaseHelloWorldClass names, React components

Convert your text

  1. Paste your text into the Case Converter tool.
  2. Choose the case style you need.
  3. Copy the converted result instantly.

Common pitfalls and best practices

  • Assuming all title case tools follow the same rules. Different style guides lowercase different short words — check against your target publication's specific guide for anything formal, rather than assuming a converter's default matches exactly.
  • Mixing camelCase and snake_case inconsistently in the same codebase. Pick one convention per language or context and stick to it — inconsistency makes code harder to read and easier to introduce bugs into when variable names don't match expectations.
  • Converting text that contains acronyms without checking the result. Automated case conversion can mangle acronyms (converting "NASA" to "Nasa" in title case, for example) — a quick manual check catches this.

Frequently Asked Questions

Because style guides genuinely disagree on which short words (prepositions, articles) to lowercase in a title — APA, Chicago, and other guides each have slightly different rules, so tools following different guides produce different results.
Both join words with no spaces and capitalize word boundaries, but camelCase leaves the first letter lowercase (helloWorld) while PascalCase capitalizes it too (HelloWorld) — camelCase is typically used for variables, PascalCase for class or component names.
Many database systems are case-insensitive or have historical conventions favoring lowercase column names with underscores, making snake_case the de facto standard for column and table naming in most SQL databases.
No — case conversion runs entirely locally in your browser using JavaScript string methods, so pasted text never leaves your device.
Yes — case converters typically handle any length of text, applying the chosen case style consistently across the entire pasted content, not just individual words.

Convert text case

Switch between any case style instantly.

Open Case Converter
Back to blog