Paste or type text and convert it between uppercase, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case. Useful for formatting headings, code variables, and more.
Text case conversion is one of the most common text manipulation tasks across writing, programming, and design. Different contexts demand different cases: UPPERCASE for emphasis and acronyms; lowercase for casual writing and email addresses; Title Case for headings and titles; Sentence case for body text and standard prose; programmer cases (camelCase, PascalCase, snake_case, kebab-case) for code variables, file names, URL slugs, and CSS class names. Manually retyping text in different cases is tedious and error-prone, especially for long passages.
Common conversion needs: pasting all-caps text from a PDF and needing it in title case for a heading; converting a heading to a URL-friendly kebab-case slug; switching variable naming convention when migrating code between languages (Python snake_case to JavaScript camelCase); fixing accidentally enabled caps lock; converting acronym-heavy text to readable case; formatting CSV data with consistent case for clean spreadsheets.
This calculator handles the most common case conversions: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Use it for: writing and editing (changing headline case), web development (URL slug generation, variable naming), data cleaning (standardizing CSV/spreadsheet case), code refactoring (changing naming conventions), formatting academic citations (style guides require specific case rules), or any text manipulation requiring case transformation. Important context: Title Case rules vary by style guide. APA, MLA, Chicago, and AP styles all have slightly different rules about when to capitalize short words (articles, prepositions, conjunctions). This calculator uses general Title Case (capitalize most words); style-specific conversion may require additional manual adjustment.
Blog title: "10 Tips for Better Sleep: How to Improve Your Sleep Quality Tonight" Conversion to URL slug (kebab-case): "10-tips-for-better-sleep-how-to-improve-your-sleep-quality-tonight" Length: 65 characters — long but acceptable. Optimization: many SEO experts recommend shorter URLs (under 75 chars). Consider: "10-tips-better-sleep-improve-quality" (39 chars) Cleaner. Keeps key terms. Removes filler words. For SEO best practices: - All lowercase - Hyphens between words (not underscores; hyphens better for SEO) - No special characters (& becomes "and" or removed) - Use main keywords - Keep concise but descriptive Final URL: yoursite.com/blog/10-tips-better-sleep-improve-quality
Migrating Python code to JavaScript. Variable names need conversion. Python (snake_case): user_first_name = "John" total_order_amount = 99.99 is_premium_member = True database_connection_string = "postgres://..." Convert to JavaScript (camelCase): userFirstName = "John" totalOrderAmount = 99.99 isPremiumMember = true databaseConnectionString = "postgres://..." Bulk conversion of database column names to JavaScript properties: user_id → userId created_at → createdAt last_login_timestamp → lastLoginTimestamp email_verified_at → emailVerifiedAt ORM (Object-Relational Mapping) tools often handle this automatically, but manual code refactoring across languages requires bulk case conversion. This calculator handles the conversion logic; manual review needed for special cases (acronyms, abbreviations).
Original (all caps from PDF copy-paste): "ANNUAL REPORT 2024: FINANCIAL HIGHLIGHTS AND FUTURE OUTLOOK" Convert to Title Case: "Annual Report 2024: Financial Highlights And Future Outlook" Issues: "And" is capitalized but most style guides lowercase conjunctions. Manual adjustment for AP/Chicago style: "Annual Report 2024: Financial Highlights and Future Outlook" For sentence case (body): "Annual report 2024: financial highlights and future outlook" Different contexts use different cases: - Document title: Title Case - Heading 1: Title Case - Heading 2-6: Title Case or Sentence case depending on style - Body paragraphs: Sentence case - Captions: Sentence case - Buttons/UI elements: Title Case or UPPER (style-dependent) - File names: kebab-case or snake_case (depending on system) Consistency matters more than perfection. Pick a style and apply throughout.
Use this calculator for text formatting tasks across writing, programming, data cleaning, and design. Useful for: URL slug generation, code variable refactoring, document title casing, CSV/data standardization, social media post formatting, or any task requiring consistent case transformation.
Important text case considerations:
1. **Context determines case.** Headings → Title Case. Body text → Sentence case. URLs → kebab-case. Variables → context-dependent (camelCase, snake_case, or PascalCase).
2. **Style guides differ on details.** APA, MLA, Chicago, AP have different rules for which short words to capitalize in titles. This calculator uses general rules; verify against specific style guide.
3. **Programming convention varies by language.** Python: snake_case. JavaScript: camelCase. C#: PascalCase for classes, camelCase for variables. SQL: snake_case for columns.
4. **URL casing affects SEO.** Lowercase preferred. Hyphens (not underscores) for word separation. Keep concise.
5. **Acronym handling varies.** "URL" vs. "Url" vs. "url" in code styles. Modern preference: treat acronyms as words ("urlParser") rather than maintaining all caps ("URLParser").
6. **Title Case excludes some words.** Articles (a, an, the), conjunctions (and, but, or), short prepositions (in, on, at) typically lowercase except as first/last word.
7. **Sentence case for body text.** Standard prose uses sentence case (capital first letter of sentence only).
8. **Database conventions matter.** PostgreSQL/MySQL: snake_case columns. Mongo: camelCase. Match your database's convention.
9. **CSS classes use kebab-case.** ".user-profile" not ".userProfile". BEM methodology extends this with double-hyphens and double-underscores.
10. **HTML IDs use kebab-case typically.** Though camelCase works in modern HTML, kebab-case is convention.
11. **File names: depends on system.** Unix/Linux/Mac: kebab-case or snake_case common. Windows: less strict. Match team's convention.
12. **Consistency matters more than specific choice.** Within a project, codebase, or document: pick a convention and apply uniformly.
UPPERCASE
—
lowercase
—
Title Case
—
Sentence case
—
| Case Style | Result |
|---|---|
| UPPERCASE | — |
| lowercase | — |
| Title Case | — |
| Sentence case | — |
| camelCase | — |
| PascalCase | — |
| snake_case | — |
| kebab-case | — |