Text Case Converter
Transform text between different cases instantly with our Text Case Converter. Paste any text and convert it to UPPERCASE, lowercase, Title Case, Sentence case, snake_case, kebab-case, camelCase, or PascalCase with one click. Perfect for developers formatting variable names, writers adjusting headlines, or anyone needing quick text transformations. The tool handles all conversions intelligently—Title Case capitalizes important words while skipping articles and prepositions, and programming cases follow standard conventions. Copy your converted text with a single click and use it immediately in your code, documents, or designs. All processing happens locally in your browser with no character limits or usage restrictions. Ideal for coding, content creation, SEO work, or data formatting. Fast, free, and completely private.
How it works: Select a case style to instantly convert your text. Supports uppercase, lowercase, title case, sentence case, and programming conventions variable names, or URLs.
Overview
Use this text case converter to switch text into uppercase, lowercase, title case, sentence case, snake_case, kebab-case, camelCase, or PascalCase in a few clicks. It is useful when you need to clean copied text, fix inconsistent capitalization, prep headings for publishing, or reshape phrases into developer-friendly naming formats. Because this kind of task usually sits inside a bigger workflow, the tool is designed to help you paste, convert, copy, and move on quickly.
About
About Text Case Converter
Text case conversion shows up in writing, editing, SEO cleanup, spreadsheets, and code naming conventions all the time. This tool is built to handle the common formats people actually use, from readable headline styles to URL slugs and JavaScript-style variable names.
Features:
- Uppercase and lowercase conversion for quick cleanup
- Title case and sentence case for copy editing and publishing
- snake_case and kebab-case for data and URL formatting
- camelCase and PascalCase for developer naming patterns
- One-click copy after conversion so the result is ready to use
Which text case should you use?
Title case works best for headings and titles. Sentence case is usually better for normal interface copy and article text. kebab-case is common for URLs and slugs, while camelCase and PascalCase are more useful for code, variables, and component names.
FAQ
Can I convert text for code as well as normal writing?
Yes. The tool covers both writing-oriented formats like title case and sentence case, plus code and slug formats like snake_case, kebab-case, camelCase, and PascalCase.
Does the converter change punctuation or word order?
No. It mainly changes letter casing and, for some formats, spacing separators. It is meant for formatting, not rewriting the text itself.
When is kebab-case useful?
kebab-case is commonly used for URLs, slugs, and some config naming patterns because hyphen-separated words are easy to read and web-friendly.
When is camelCase better than PascalCase?
camelCase is often used for variables and function names, while PascalCase is commonly used for class names, component names, and constructors.
Related Tools
What Is a Text Case Converter?
A text case converter instantly transforms your text between different capitalization and formatting styles. Whether you need to convert copied content to title case for a headline, change variable names between programming conventions, or fix accidental caps-lock typing, a case converter eliminates the need to retype or manually edit every word.
Different contexts demand different case conventions. Natural language uses sentence case and title case. Programming languages each have preferred conventions: JavaScript uses camelCase for variables, Python uses snake_case, CSS uses kebab-case for class names, and constants universally use UPPER_SNAKE_CASE. Consistent case usage is enforced by style guides and linters in professional development teams.
How to Use This Text Case Converter
- Type or paste your text into the input field.
- Click the desired case conversion button: uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, or UPPER_SNAKE_CASE.
- The converted text appears instantly in the output field.
- Click the copy button to copy the result to your clipboard.
- Chain conversions: convert to lowercase first, then to camelCase for clean results from messy input.
Worked Example: All Conversions of One Phrase
Input: “the quick brown fox”
UPPERCASE: THE QUICK BROWN FOX
lowercase: the quick brown fox
Title Case: The Quick Brown Fox
Sentence case: The quick brown fox
camelCase: theQuickBrownFox
PascalCase: TheQuickBrownFox
snake_case: the_quick_brown_fox
kebab-case: the-quick-brown-fox
UPPER_SNAKE: THE_QUICK_BROWN_FOX
Text Case Usage Guide by Context
| Case Style | Example | Used In | Languages / Contexts |
|---|---|---|---|
| UPPERCASE | HELLO WORLD | Emphasis, abbreviations, acronyms | SQL keywords, constants, acronyms (NASA, API) |
| lowercase | hello world | Code strings, email addresses, URLs | Filenames, CSS values, email |
| Title Case | Hello World | Headlines, titles, proper nouns | Article titles, book titles, UI headings |
| Sentence case | Hello world | Normal writing, sentences | Body text, descriptions, documentation |
| camelCase | helloWorld | Variables, functions, methods | JavaScript, Java, TypeScript, Swift |
| PascalCase | HelloWorld | Classes, components, types | C#, Java classes, React components |
| snake_case | hello_world | Variables, functions, filenames | Python, Ruby, Rust, database columns |
| kebab-case | hello-world | CSS classes, URLs, HTML attributes | CSS, HTML, URLs, CLI flags |
| UPPER_SNAKE_CASE | HELLO_WORLD | Constants, environment variables | All languages, .env files, config |
Key Concepts: Title Case Rules and Programming Conventions
Title case is not simply capitalizing every word. Style guides disagree on the specifics. AP Style (journalism) capitalizes all words except articles (a, an, the), short prepositions (in, on, at), and coordinating conjunctions (and, but, or) unless they begin or end the title. Chicago Style capitalizes all major words including longer prepositions. Most title case converters use a simplified rule: capitalize all words except a predefined list of short function words.
Sentence case capitalizes only the first word (and proper nouns). It is the most common case in body text, documentation, and UI labels in modern design systems (Google, Apple, and Microsoft predominantly use sentence case in their UIs, shifting from title case in the 2010s for a more conversational feel).
Programming case conventions exist for readability and tooling. Most linters and style guides enforce case conventions strictly: ESLint/Prettier enforces camelCase for JavaScript variables; Python's PEP 8 mandates snake_case for functions and variables; Go uses PascalCase for exported identifiers and camelCase for unexported ones. Consistent case makes code more readable and enables automated tooling to distinguish different identifier types.
Tips for Text Case Conversion
Convert to lowercase first when cleaning messy input. If your source text has inconsistent capitalization (mixed case, random capitals), convert to lowercase first to create a clean baseline, then apply your target case. Going directly from mixed-case to camelCase may produce unexpected results if the converter preserves existing capitals.
Watch out for acronyms and proper nouns. Most converters treat all words equally, so “NASA Budget USA” in camelCase becomes “nasaBudgetUsa” rather than the expected “nasaBudgetUSA”. For code that mixes acronyms, many style guides (Google, Microsoft) recommend treating acronyms as words: “xmlParser” rather than “XMLParser”, for consistency with automated tools.
Use kebab-case for URLs and filenames. Kebab-case is the standard for web URLs and HTML filenames because it is readable, lowercase (URLs are case-insensitive on most servers but lowercase is canonical), and avoids underscores which can be hidden under link underlines. Search engines also treat hyphens as word separators, making kebab-case URLs slightly better for SEO than underscore-separated ones.
Frequently Asked Questions
What is the difference between title case and sentence case?
Title case capitalizes the first letter of most words (major words, skipping articles and short prepositions). Sentence case capitalizes only the first word of the sentence and proper nouns. Example: Title Case = 'The Quick Brown Fox Jumps Over the Lazy Dog'. Sentence case = 'The quick brown fox jumps over the lazy dog'. Modern UI design trends prefer sentence case for a less formal, more conversational feel.
What is camelCase used for?
camelCase (lowercase first word, then each subsequent word capitalized) is the standard for variable and function names in JavaScript, Java, TypeScript, and Swift. Example: getUserProfile(), firstName, isLoggedIn. It is called camelCase because the capital letters resemble a camel's humps. The first-letter-lowercase variant is 'lower camelCase'; PascalCase (all words capitalized) is 'upper camelCase'.
What is PascalCase?
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word with no separators: HelloWorld, UserProfile, ShoppingCart. It is used for class names and types in most OOP languages (Java, C#, TypeScript), and is the standard for React component names. Named after the Pascal programming language, which popularized this convention.
What is snake_case used for?
snake_case uses underscores between lowercase words: get_user_profile, first_name, is_logged_in. It is the standard in Python (enforced by PEP 8), Ruby, Rust, and many database schemas (column names). UPPER_SNAKE_CASE (MY_CONSTANT, DATABASE_URL) is universally used for constants and environment variables across all languages.
What is kebab-case used for?
kebab-case uses hyphens between lowercase words: get-user-profile, my-component, page-title. It is the standard for CSS class names (.my-button), HTML custom attributes (data-user-id), URL slugs (/blog/how-to-start), and CLI flags (--output-format). It is called kebab-case because the words are skewered on hyphens like a kebab.
Does text case affect SEO?
For URLs, lowercase is canonical — most servers treat URLs as case-sensitive, and inconsistent capitalization can cause duplicate content issues. Kebab-case is preferred for URL slugs over underscores (search engines treat hyphens as word separators). For page titles and headings, case affects readability and click-through rates but does not directly impact ranking.
How does title case handle small words?
Title case rules vary by style guide. The general rule: always capitalize the first and last word; capitalize all major words; do not capitalize articles (a, an, the), coordinating conjunctions (and, but, for, or, nor), and short prepositions (in, on, at, to, up) unless they begin or end the title. Examples: 'The Cat in the Hat' (not 'In'), 'A Clash of Kings' (not 'Of' — some guides capitalize prepositions of 4+ letters).
What is sentence case in UI design?
Sentence case has become the dominant convention in modern UI design (used by Google Material Design, Apple Human Interface Guidelines, and Microsoft Fluent Design). Button labels, menu items, and form labels use sentence case ('Submit form', 'Open settings') rather than title case ('Submit Form', 'Open Settings'). It feels more conversational and accessible, particularly for non-native English speakers.