Text Case Converter

Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and 15 case types instantly — plus text utilities to clean and format your text. 100% private, runs in your browser.

📝 Your Text 0 words · 0 characters
🔤 All Case Conversions (15 types)
UPPERCASE
Start typing above…
lowercase
Start typing above…
Title Case
Start typing above…
Sentence case
Start typing above…
Capitalize Each Word
Start typing above…
aLtErNaTiNg cAsE
Start typing above…
InVeRsE CaSe
Start typing above…
RaNdOm CaSe
Start typing above…
camelCase
Start typing above…
PascalCase
Start typing above…
snake_case
Start typing above…
CONSTANT_CASE
Start typing above…
kebab-case
Start typing above…
Train-Case
Start typing above…
dot.case
Start typing above…
🧰 Text Utilities — Apply Directly to Your Text
Remove Extra Spaces
Collapse multiple spaces/tabs into one
Remove Line Breaks
Join all lines into one paragraph
Remove Empty Lines
Strip blank lines from your text
Remove Duplicate Lines
Keep only the first occurrence of each line
Sort Lines A → Z
Alphabetical order, ascending
Sort Lines Z → A
Alphabetical order, descending
Sort by Line Length
Shortest lines first
Reverse Line Order
Flip the order of all lines
Reverse Text
Reverse every character (mirror text)
Remove Special Characters
Keep only letters, numbers and spaces
Add Line Numbers
Prefix each line with 1. 2. 3. …
Slugify (URL Slug)
Convert to a clean URL-friendly slug

Case Types Explained — What They're Used For

Different case formats exist for different reasons — readability, programming conventions, and URL safety. Here's a complete reference for all 15 case types and where each one is used.

Case TypeExampleUsed In
UPPERCASEHELLO WORLDHeadlines, emphasis, acronyms, warning labels
lowercasehello worldCasual text, usernames, email addresses, URLs
Title CaseHello WorldArticle titles, headings (AP/Chicago style — minor words stay lowercase)
Sentence caseHello worldNormal prose, fixing accidental ALL CAPS
Capitalize Each WordHello WorldProper nouns, names, every-word emphasis (no exceptions)
aLtErNaTiNg cAsEhElLo WoRlDSarcasm/mocking text style (meme format)
InVeRsE CaSehELLO wORLDToggling existing capitalization, stylistic text
RaNdOm CaSeHeLlo WorLDStylized decorative text, social media posts
camelCasehelloWorldJavaScript, Java, C# — variable & function names
PascalCaseHelloWorldClass names, React components, C# types
snake_casehello_worldPython, Ruby — variables, functions, database columns
CONSTANT_CASEHELLO_WORLDConstants, environment variables, config keys
kebab-casehello-worldURL slugs, CSS classes, HTML attributes
Train-CaseHello-WorldHTTP headers (e.g. Content-Type), some C# namespaces
dot.casehello.worldConfig file keys, package/module namespacing

Programming Naming Conventions by Language

Each programming language has conventions for naming variables, functions, and classes. Using the wrong convention won't break your code, but it will make it look unprofessional and inconsistent with the ecosystem. Here's a quick reference:

LanguageVariables/FunctionsClasses/TypesConstants
JavaScript / TypeScriptcamelCasePascalCaseCONSTANT_CASE
Pythonsnake_casePascalCaseCONSTANT_CASE
Java / KotlincamelCasePascalCaseCONSTANT_CASE
C# / .NETcamelCase / PascalCasePascalCasePascalCase
Rubysnake_casePascalCaseCONSTANT_CASE
CSS / HTMLkebab-casekebab-case--kebab-case
URL slugs / SEOkebab-case
Environment variablesCONSTANT_CASECONSTANT_CASE
File names (general)kebab-case / snake_casePascalCase

How to Use the Text Case Converter

Paste or type your text into the box at the top of the page. All 15 case conversions update instantly below — no buttons to click, no waiting. Each result has its own copy button so you can grab exactly the format you need.

Title Case vs Capitalize Each Word — What's the Difference?

This is the most commonly confused pair. Title Case follows AP/Chicago style guide rules: major words are capitalized, but short articles (a, an, the), coordinating conjunctions (and, but, or), and short prepositions (in, on, at, to, for, of, with) stay lowercase — unless they're the first or last word. Example: "the lord of the rings" becomes "The Lord of the Rings".

Capitalize Each Word simply capitalizes the first letter of every single word with no exceptions. Example: "the lord of the rings" becomes "The Lord Of The Rings". Use Title Case for proper headlines and article titles. Use Capitalize Each Word for names, codes, or when you want every word emphasized.

Fixing Accidental Caps Lock Text

If you've ever typed a whole paragraph with Caps Lock on by accident, paste it into the converter and use the Sentence case result — it converts "I CANT BELIEVE I TYPED THIS WHOLE EMAIL IN CAPS" into "I cant believe i typed this whole email in caps", capitalizing only the first letter of each sentence.

Why Privacy Matters for Text Tools

All conversions on this page happen entirely in your browser using JavaScript — your text is never uploaded to a server, logged, or stored anywhere. This makes it safe to use for source code, internal documents, or any text you'd rather not paste into a cloud-based tool.

Frequently Asked Questions

How do I convert text to a different case?
Paste or type your text into the box above. All 15 case conversions — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and more — update instantly. Click the copy button next to any result to copy it to your clipboard.
What is camelCase and where is it used?
camelCase joins words with no spaces — the first word lowercase, every following word capitalized (helloWorldExample). It's the standard for variables and functions in JavaScript, Java, and C#. The name comes from its resemblance to a camel's humps.
What is snake_case and where is it used?
snake_case is all lowercase with underscores between words (hello_world_example). It's the standard for variables and functions in Python and Ruby, and is commonly used for database column names and file names.
What is kebab-case and where is it used?
kebab-case is all lowercase with hyphens between words (hello-world-example). It's the standard for URL slugs, CSS class names, and HTML attributes — hyphens are SEO-friendly and URL-safe. Also called dash-case.
What is the difference between camelCase and PascalCase?
Both join words with no spaces. camelCase starts with a lowercase letter (helloWorld) and is used for variables/functions. PascalCase starts with an uppercase letter (HelloWorld) and is used for class names and React components.
How do I fix text stuck in ALL CAPS from Caps Lock?
Paste the all-caps text into the converter. The "Sentence case" result fixes it automatically — converting ACCIDENTALLY TYPED IN CAPS into a normal readable sentence, capitalizing only the first letter of each sentence.
What words are not capitalized in Title Case?
Following AP/Chicago style: short articles (a, an, the), coordinating conjunctions (and, but, or, nor), and short prepositions (in, on, at, to, for, of, with) stay lowercase unless they're the first or last word. "Capitalize Each Word" instead capitalizes literally every word with no exceptions.
Is my text sent to a server?
No. All conversions happen entirely in your browser using JavaScript. Your text is never sent to, stored on, or processed by any server — safe for sensitive documents and code.
What is a slug and how do I create one?
A slug is the URL-friendly version of a title — lowercase, spaces replaced with hyphens, special characters removed. "My Blog Post: 2026 Edition!" becomes "my-blog-post-2026-edition". Use the Slugify utility above to generate one instantly.

Related Tools

Word Counter — Count words, characters, reading time, AI tokens and check social media limits.
AI Product Description Generator — Generate high-converting product descriptions for Shopify, Amazon and Etsy.
AI Bio Generator — Write professional bios for LinkedIn, Twitter and your website.
Email Subject Generator — Generate 10 high-converting subject lines for any campaign.