Text Case Converter

Convert text between different cases instantly. Support for uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and more. Perfect for writers, developers, and content creators.

Quick Reference

Variables (JS)camelCase
Classes/ComponentsPascalCase
Python functionssnake_case
ConstantsCONSTANT_CASE
CSS classeskebab-case

Understanding Text Cases

Text case refers to the capitalization style of letters in text. Different contexts require different cases—formal writing uses sentence and title case, while programming has its own conventions like camelCase and snake_case. Understanding when to use each case improves readability and professionalism.

Writing Cases

UPPERCASE

All letters are capitals. Used for acronyms, emphasis, headings, and situations requiring high visibility. Overuse can feel like shouting in digital communication.

Example: WARNING: PLEASE READ CAREFULLY

lowercase

All letters are small. Used for casual text, some design aesthetics, and as a base for other transformations.

Example: remember to check your email

Title Case

Each word starts with a capital letter. Used for titles, headings, and proper nouns. Style guides vary on whether to capitalize articles and prepositions.

Example: The Lord Of The Rings: The Return Of The King

Sentence case

Only the first letter of the first word is capitalized (plus proper nouns). This is how normal sentences are written and is increasingly popular for headings.

Example: The quick brown fox jumps over the lazy dog.

Programming Cases

camelCase

Words are joined with no separator, first word lowercase, subsequent words capitalized. Named for the "humps" of capital letters.

Used for: JavaScript/TypeScript variables and functions, Java methods

Example: getUserEmail, firstName, httpResponse

PascalCase

Like camelCase but the first word is also capitalized. Also called UpperCamelCase.

Used for: Class names, React components, C# methods

Example: UserProfile, GetUserEmail, HttpClient

snake_case

Words separated by underscores, all lowercase. Popular in Python and Ruby communities.

Used for: Python variables and functions, database columns, file names

Example: user_email, get_user_data, first_name

CONSTANT_CASE

Like snake_case but all uppercase. Used for constants and environment variables.

Used for: Constants, environment variables, configuration keys

Example: MAX_RETRY_COUNT, API_BASE_URL, DEBUG_MODE

kebab-case

Words separated by hyphens, all lowercase. Named for the hyphen "skewers."

Used for: URLs, CSS classes, HTML attributes, package names

Example: user-profile, font-size, my-component

When to Use Each Case

Content Writing

  • Headlines: Title Case or Sentence case (style guide dependent)
  • Body text: Sentence case
  • Acronyms: UPPERCASE
  • Emphasis: Bold or italics preferred over CAPS

Programming

  • JavaScript: camelCase for variables, PascalCase for classes/components
  • Python: snake_case for functions/variables, PascalCase for classes
  • Constants: CONSTANT_CASE across most languages
  • CSS: kebab-case for classes and properties
  • URLs: kebab-case for readability and SEO

Style Guide Conventions

Major style guides have specific rules for title case:

  • AP Style: Capitalize words of 4+ letters
  • Chicago Manual: Capitalize all words except articles and short prepositions
  • APA: Capitalize words of 4+ letters and all "major" words

For consistency, choose one style guide and stick with it throughout your project.

Frequently Asked Questions

What is text case conversion?
Text case conversion changes the capitalization of text. Common cases include: uppercase (ALL CAPS), lowercase (all small), title case (Each Word Capitalized), sentence case (First word capitalized), and programming-specific cases like camelCase, PascalCase, snake_case, and kebab-case.
When should I use Title Case?
Title Case capitalizes the first letter of each word and is typically used for headings, titles, and names. Style guides vary on whether to capitalize small words like 'the', 'a', 'and'. Our converter capitalizes all words, but you may want to manually lowercase certain articles and prepositions for formal writing.
What's the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter and capitalizes subsequent words (firstName, getUserData). PascalCase capitalizes every word including the first (FirstName, GetUserData). In programming, camelCase is common for variables and functions, while PascalCase is used for classes and components.
What is snake_case used for?
snake_case separates words with underscores and uses all lowercase letters (first_name, get_user_data). It's popular in Python, Ruby, and databases (table and column names). It's also common in file naming conventions and API endpoints.
What is kebab-case?
kebab-case separates words with hyphens (first-name, get-user-data). It's commonly used in URLs, CSS class names, and HTML attributes. The name comes from the fact that the hyphens look like skewers through the words, like a kebab.
How does Sentence case work?
Sentence case capitalizes only the first letter of the first word and proper nouns (like a regular sentence). It's commonly used for body text, descriptions, and informal headings. This converter capitalizes the first letter and lowercases the rest, but won't detect proper nouns automatically.

Related Tools