What Is a Text Case Converter?
A text case converter is a tool that transforms the capitalisation of text from one format to another. Different writing contexts — from social media captions to software code — follow different capitalisation conventions, and switching between them manually is tedious and error-prone. A case converter does this transformation instantly with a single click.
Our free text case converter supports ten different case styles, covering everything from basic UPPERCASE and lowercase to programming-specific formats like camelCase, snake_case, and kebab-case. It works entirely in your browser — your text never leaves your device.
When to Use Each Case Type
UPPERCASE
All letters capitalised. UPPERCASE is used for emphasis, acronyms (NASA, HTML, URL), column headers in spreadsheets, and sometimes for headings in design work. Avoid using UPPERCASE for long passages of prose — it is harder to read and can feel aggressive in digital communication.
lowercase
All letters in small case. Lowercase is common in casual digital communication, URL slugs (e.g., /blog/how-to-write), CSS class names, and database identifiers. Many programming languages prefer or require lowercase for certain constructs.
Title Case
The first letter of each word is capitalised. Title Case is used for article headlines, book titles, film titles, chapter headings, and product names. It gives text a formal, publishable appearance. Note that standard title case rules in English say minor words like “a”, “the”, and “of” should not be capitalised unless they are the first word.
Sentence case
Only the first letter of each sentence is capitalised. Sentence case is used for normal prose, emails, user interface text, error messages, and most body copy. It is the most natural capitalisation style for everyday writing.
camelCase
The first word is lowercase and each subsequent word starts with a capital letter, with no spaces. camelCase is the standard naming convention for variables and functions in JavaScript, TypeScript, Java, and many other programming languages. Examples: getUserName, calculateTotalPrice, isLoggedIn.
PascalCase
Like camelCase, but every word (including the first) starts with a capital letter. PascalCase is used for class names, constructor functions, components in React, and type definitions. Examples: UserProfile, ShoppingCart, ApiResponse.
snake_case
Words separated by underscores, all lowercase. snake_case is the standard in Python for variables and functions, Ruby, and database column names in SQL. Examples: user_name, total_price, created_at.
kebab-case
Words separated by hyphens, all lowercase. kebab-case is standard for CSS class names, HTML attributes, URL slugs, and npm package names. Examples: main-header, blog-post-title, my-npm-package.
CONSTANT_CASE
All uppercase letters with words separated by underscores. CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is used for constants and environment variables in most programming languages. Examples: MAX_RETRY_COUNT, API_BASE_URL, DEFAULT_TIMEOUT.
Title Case vs Sentence Case — What’s the Difference?
Title Case and Sentence case are easily confused, but they serve very different purposes.
Title Case capitalises the first letter of every major word. It is used for titles, headlines, and headings. Example: “The Quick Brown Fox Jumps Over the Lazy Dog”.
Sentence case capitalises only the first word of the sentence (and proper nouns). It reads like normal prose. Example: “The quick brown fox jumps over the lazy dog.”
In practice, most editorial style guides (AP Style, Chicago Manual of Style) use Title Case for main headlines and Sentence case for body text and subheadings in some contexts. Choosing the right one for your context gives your content a polished, professional appearance.
Case Conventions in Programming
Consistency in naming conventions is one of the hallmarks of readable code. Different programming languages have adopted different case conventions as unofficial (and sometimes official) standards:
- JavaScript / TypeScript: camelCase for variables and functions, PascalCase for classes and components
- Python: snake_case for variables and functions, PascalCase for classes, CONSTANT_CASE for constants
- CSS / HTML: kebab-case for class names and IDs
- SQL: snake_case for table and column names
- Environment variables: CONSTANT_CASE across all languages
- URL slugs: kebab-case (e.g., /blog/my-article-title)
When working across multiple languages or refactoring code, our case converter lets you quickly transform variable names and identifiers between conventions.
How to Use This Case Converter
- Type or paste your text into the large editor area.
- Click any case button (UPPERCASE, lowercase, Title Case, etc.) to instantly transform your text.
- Click another button at any time to convert again — the tool always applies the conversion to the current text in the editor.
- Copy to clipboard with the Copy button and paste directly into your document, code editor, or CMS.
Your text is auto-saved to your browser, so you can return to it at any time. Need to count words after converting? Try our word counter or character counter to check length after transformation.
Frequently Asked Questions
What is title case?
Title case capitalises the first letter of each major word in a string. It's used for article headlines, book titles, film names, and formal headings. Minor words like 'a', 'the', and 'of' are typically not capitalised unless they appear at the start of the title.
What is camelCase used for?
camelCase is the standard naming convention for variables and functions in JavaScript, TypeScript, Java, and many other object-oriented languages. The first word is lowercase and each subsequent word starts with a capital letter, with no spaces or separators.
What is the difference between snake_case and kebab-case?
Both use all-lowercase words, but snake_case separates words with underscores (_) while kebab-case separates them with hyphens (-). snake_case is common in Python and SQL. kebab-case is standard for CSS classes, HTML attributes, and URL slugs.
How do I convert text to uppercase online?
Simply paste or type your text into our case converter tool, then click the 'UPPERCASE' button. Your entire text is instantly converted to capital letters. Click 'Copy' to copy the result to your clipboard.
Is this text case converter free?
Yes, completely free. No account, no sign-up, no usage limits. All conversions happen instantly in your browser — no text is ever sent to a server.