Text Case Converter

Convert text between different cases instantly. Perfect for coding, writing, and formatting. Supports sentence case, UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.

0

Characters

0

Words

0

Lines

Select Case Format

Original Text

Converted Text (Sentence case)

Our text case converter transforms text between all common case formats. Whether you need to format headings, convert variable names for code, or create URL-friendly slugs, this tool handles it instantly. Supports uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, and kebab-case.

Category: Developer Tools

When to Use This Tool

  • Converting variable names when refactoring code (camelCase to snake_case)
  • Formatting titles and headings for articles and documents
  • Standardizing data imported from spreadsheets or databases
  • Creating URL-friendly slugs from titles
  • Converting names for consistent database storage
  • Preparing text for export to systems with specific case requirements

How to Use

Convert Text Case

  1. Paste or type your text into the input area
  2. Click the case button you want (UPPERCASE, lowercase, Title Case, etc.)
  3. View the converted text in the output area
  4. Copy the result or convert back to another case

Understanding Different Cases

  1. UPPERCASE: ALL LETTERS CAPITAL (good for acronyms, emphasis)
  2. lowercase: all letters small (ease of reading, casual text)
  3. Title Case: First Letter Of Each Word Capitalized (headings, titles)
  4. Sentence case: Only first letter of sentence capitalized (standard writing)

Programming Cases

  1. camelCase: firstWordLower, subsequentWordsCapitalized (JavaScript variables)
  2. PascalCase: FirstWordCapitalized, SubsequentWordsCapitalized (class names)
  3. snake_case: words_separated_by_underscores (Python variables, database columns)
  4. kebab-case: words-separated-by-hyphens (URL slugs, CSS custom properties)

Examples

Heading Formatting

Title case for article headings and page titles

Input

welcome to the new guide

Result

Welcome to the New Guide

Code Variable Names

Converting database-style names to code-friendly formats

Input

user_first_name

Result

userFirstName (camelCase) | UserFirstName (PascalCase)

URL Slug Creation

Creating SEO-friendly URL slugs from titles

Input

How to Create Great Content

Result

how-to-create-great-content

Frequently Asked Questions

What's the difference between Title Case and Sentence case?

Title Case capitalizes major words including nouns, verbs, adjectives, and adverbs. Minor words like 'the', 'and', 'of' are usually lowercase unless first/last. Sentence case only capitalizes the first letter of a sentence and proper nouns.

Which case should I use for variable names?

This depends on your programming language: JavaScript uses camelCase for variables, PascalCase for classes. Python uses snake_case for variables. CSS uses kebab-case for custom properties. Always match the conventions of your codebase.

Does the converter affect numbers and special characters?

Numbers and special characters are preserved as-is. Only alphabetic letters are converted. For example, converting 'Hello World 123!' will change only the letters, resulting in 'HELLO WORLD 123!'

Can I convert partial text or selections?

Yes, select the text you want to convert and apply a case to it. The rest of your text remains unchanged. This is useful for converting specific variable names within larger blocks of code.

What's the best case for database column names?

snake_case with all lowercase (e.g., user_id, created_at) is the most common convention for database columns and is database-agnostic. Some databases are case-insensitive, so consistency matters more than the specific case.

Pro Tips

  • When creating URL slugs, also remove special characters like !, ?, and replace spaces with hyphens
  • For code, establish a naming convention early in a project and be consistent
  • Title case varies by style guide - AP Style capitalizes more than Chicago Manual
  • Use sentence case for body text and UI labels for better readability
  • camelCase and PascalCase typically don't include spaces between words

Related Tools