Input Text

Aa
Characters
0
W
Words
0
Lines
0

Live Output

Selected: lowercase

Select a case format from the dropdown to see live conversion. Output updates automatically as you type.

All Case Formats

16 case formats • Click any box to copy instantly

lowercase

All characters in lowercase

hello world

UPPERCASE

All characters in uppercase

HELLO WORLD

Title Case

First letter of each word capitalized

Hello World

Sentence case

First letter of sentences capitalized

Hello world

camelCase

First word lowercase, rest capitalized

helloWorld

PascalCase

All words capitalized, no spaces

HelloWorld

snake_case

Words separated by underscores

hello_world

kebab-case

Words separated by hyphens

hello-world

CONSTANT_CASE

Uppercase with underscores

HELLO_WORLD

dot.case

Words separated by dots

hello.world

path/case

Words separated by slashes

hello/world

aLtErNaTiNg

Alternating uppercase and lowercase

hElLo WoRlD

iNVERSE cASE

Inverts the case of each character

HELLO world

Reverse

Text in reverse order

dlrow olleh

NoSpaces

Remove all spaces

helloworld

Clean Spaces

Remove extra spaces

hello world

Complete Guide to Text Case Conversion

Free Online Text Case Converter - 16 Case Formats

Convert text to any case format online for free. Transform text between uppercase, lowercase, title case, camelCase, snake_case, kebab-case, PascalCase, and 9 more case styles. Perfect for developers, writers, students, and anyone working with text formatting.

All Case Formats Explained

🔤 Basic Cases

  • lowercase: all letters lowercase
  • UPPERCASE: all letters uppercase
  • Title Case: capitalize each word
  • Sentence case: capitalize sentences

💻 Programming Cases

  • camelCase: firstWordLower, restCapitalized
  • PascalCase: AllWordsCaptitalized
  • snake_case: words_with_underscores
  • kebab-case: words-with-hyphens

🎯 Special Cases

  • CONSTANT_CASE: UPPER_WITH_UNDERSCORES
  • dot.case: words.with.dots
  • path/case: words/with/slashes
  • aLtErNaTiNg: alternating letters

✨ Transform Cases

  • iNVERSE cASE: flips all cases
  • Reverse: text in reverse order
  • NoSpaces: removes all spaces
  • Clean Spaces: removes extra spaces

Why Use Our Text Case Converter?

16 Case Formats: Most comprehensive case converter with 16 different text transformation options in one tool.

Instant Preview: See all case formats at once. No need to convert multiple times - all formats are displayed simultaneously.

One-Click Copy: Copy any case format to clipboard with a single click. Download individual formats as text files.

100% Free: Convert unlimited text without registration, ads, or hidden fees. All features completely free.

Privacy First: All text conversion happens in your browser. Your text is never uploaded or stored on any server.

Real-Time Stats: Track character count, word count, and line count as you type.

How to Convert Text Case

  1. Enter Text: Paste or type your text into the input area at the top of the page.
  2. View All Formats: Instantly see your text converted to all 16 case formats below.
  3. Copy Desired Format: Click the copy button (📋) next to any case format to copy it to clipboard.
  4. Download (Optional): Click the download button (⬇) to save any format as a .txt file.
  5. Use Anywhere: Paste the converted text into your code editor, document, or application.

Case Formats for Developers

camelCase: Used in JavaScript, TypeScript, Java, and many modern languages for variable and function names. First word lowercase, subsequent words capitalized, no spaces. Example: getUserProfile, calculateTotalPrice.

PascalCase: Common in C#, Java class names, React components, and type definitions. All words capitalized, no spaces. Example: UserProfile, CalculateTotalPrice, ShoppingCart.

snake_case: Standard in Python, Ruby, and database column names. All lowercase with underscores separating words. Example: user_profile, calculate_total_price, shopping_cart.

kebab-case: Used in URLs, CSS class names, and file names. All lowercase with hyphens. Example: user-profile, calculate-total-price, shopping-cart.

CONSTANT_CASE: For constants and environment variables in most languages. All uppercase with underscores. Example: MAX_USERS, API_KEY, DATABASE_URL.

Common Use Cases

Programming & Development: Convert variable names, function names, class names, and constants to match your language's naming conventions. Quickly rename identifiers when refactoring code or switching between languages.

Writing & Editing: Fix capitalization in titles, headings, and sentences. Convert all-caps text to proper sentence case for better readability. Clean up text copied from various sources.

URL & File Naming: Convert titles or descriptions to kebab-case for SEO-friendly URLs and file names. Create consistent naming across your project files and folders.

Database Management: Convert column names to snake_case for SQL databases or camelCase for NoSQL. Standardize field names across different database systems.

API Development: Convert field names to match API conventions. JSON typically uses camelCase, while some APIs prefer snake_case. Ensure consistency across your API responses.

Data Processing: Normalize text data from multiple sources. Convert headers, labels, and identifiers to a consistent format for processing and analysis.

Perfect For

  • Software developers & programmers
  • Web developers (frontend/backend)
  • Data scientists & analysts
  • Technical writers
  • Content creators & bloggers
  • Students learning programming
  • Database administrators
  • API developers
  • SEO specialists
  • Copywriters & editors
  • QA testers
  • Project managers

Programming Language Conventions

JavaScript/TypeScript: camelCase for variables/functions, PascalCase for classes/components, CONSTANT_CASE for constants

Python: snake_case for variables/functions, PascalCase for classes, CONSTANT_CASE for constants

Java/C#: camelCase for variables/methods, PascalCase for classes, CONSTANT_CASE for static finals

Ruby: snake_case for variables/methods, PascalCase for classes, CONSTANT_CASE for constants

Go: camelCase for private, PascalCase for public/exported identifiers

PHP: camelCase or snake_case depending on framework (Laravel uses snake_case, Symfony uses camelCase)

Pro Tips for Case Conversion

  • Be Consistent: Choose one naming convention per project and stick to it across all files and modules.
  • Follow Standards: Use the case format recommended by your language or framework's style guide.
  • Readable URLs: Always use kebab-case for URLs and slugs - it's more SEO-friendly and easier to read.
  • Database Columns: Use snake_case for SQL databases to avoid quoting issues and improve readability.
  • Constants Stand Out: Use CONSTANT_CASE to make constants easily identifiable in code.
  • Component Names: Use PascalCase for React, Vue, and Angular components to distinguish them from HTML elements.
  • Clean First: Use "Clean Spaces" to remove extra whitespace before converting to programming cases.
  • Test Edge Cases: Try converting text with numbers, special characters, and acronyms to ensure proper formatting.
  • Batch Processing: Convert multiple identifiers at once by pasting them all with line breaks.

When to Use Each Case Format

Title Case: Book titles, article headlines, section headings, proper names, document titles. Capitalize main words, lowercase articles and prepositions (unless first/last word).

Sentence case: Regular sentences, descriptions, body text, UI copy. Only capitalize the first word and proper nouns. Most natural and readable for general text.

dot.case: Package names (Java), namespace separators, domain-style identifiers. Example: com.example.app, user.profile.settings.

path/case: File paths, route definitions, URL paths. Example: users/profile/settings, api/v1/users.

Alternating Case: Memes, social media posts (sarcasm), decorative text. Example: tHiS iS sArCaStIc. Not for professional use.

Best Practices for Text Formatting

  • Linter Rules: Configure your code editor with linting rules to automatically enforce case conventions.
  • Team Agreement: Document naming conventions in your style guide or README for team consistency.
  • Refactoring Tools: Use IDE refactoring features to safely rename variables across your entire codebase.
  • API Contracts: Document the expected case format for API request/response fields to avoid confusion.
  • Version Control: Commit case changes separately from logic changes for clearer git history.
  • Avoid Mixing: Don't mix camelCase and snake_case in the same codebase - choose one and be consistent.
  • Preserve Meaning: When converting, ensure acronyms and abbreviations remain recognizable (API, URL, ID).

Special Character Handling

Numbers: Our converter preserves numbers in all case formats. In camelCase/PascalCase, numbers are treated as word boundaries. Example: "product2name" becomes "product2Name" in camelCase.

Acronyms: Acronyms like API, URL, HTTP are handled intelligently. In camelCase: apiKey, xmlParser. In snake_case: api_key, xml_parser.

Special Characters: Non-alphanumeric characters (except spaces) are typically removed in programming cases. Title Case and Sentence case preserve punctuation.

Keyboard Shortcuts & Tips

Quick Copy: Click directly on any converted text box to copy it to clipboard instantly.

Bulk Convert: Paste multiple lines of text - each format will convert all lines appropriately.

Sample Text: Click "Sample" to load example text and see all case formats in action.

Download All: Use the download button on each format to save individual conversions as text files.

Converting Between Case Formats

From All Caps: Converting SHOUTING TEXT to other formats. First convert to lowercase, then to your target case for best results.

From snake_case to camelCase: Common when moving from Python to JavaScript. Our tool handles this conversion automatically.

From kebab-case to PascalCase: Useful for converting CSS class names to React component names. Example: user-profile-card becomes UserProfileCard.

From camelCase to snake_case: Common when working with databases. Example: firstName becomes first_name.

🔒 Privacy Protected

All text case conversions happen entirely in your browser using JavaScript. Your text is never uploaded to servers, stored in databases, or transmitted to any third party. Everything processes locally on your device, ensuring complete privacy for your code, documents, and sensitive text.