New:Thread Pilot—AI follow-ups for Gmail.
Learn more

Text Case Converter & Formatter

Convert text to any case style instantly. Free online tool for Title Case, camelCase, snake_case, and more. Plus powerful text formatting utilities - all processed in your browser.

100% Free
Privacy First
Instant Results
10+ Case Styles

Input Text

Enter or paste your text here

Output Text

Converted result appears here

Case Conversion

Convert text to different case styles - Instant preview

Keyboard Shortcuts:

Ctrl+Shift+U: UPPERCASECtrl+Shift+L: lowercaseCtrl+Shift+T: Title CaseCtrl+Shift+C: camelCaseCtrl+Shift+S: snake_caseCtrl+Shift+K: kebab-case

Remove Duplicates

Remove duplicate lines from your text

Sort Lines

Sort lines alphabetically, numerically, or by length

Remove & Clean

Remove unwanted characters, spaces, and formatting

Add & Format

Add line numbers, prefixes, suffixes, or quotes

Slugify (URL-Friendly)

Convert text to URL-friendly slug format

Case Conversion Tools

Our text case converter supports 10+ different case styles, making it perfect for programmers, writers, and content creators. Each conversion follows industry-standard formatting rules.

Title Case

Capitalizes major words while keeping articles and prepositions lowercase (following AP/Chicago style).

the quick brown fox → The Quick Brown Fox

Sentence case

Capitalizes only the first word of each sentence.

HELLO WORLD → Hello world

camelCase

First word lowercase, subsequent words capitalized. Common in JavaScript and Java.

user profile name → userProfileName

PascalCase

All words capitalized, no separators. Used for class names and types.

user profile name → UserProfileName

snake_case

Lowercase words separated by underscores. Common in Python and databases.

User Profile Name → user_profile_name

kebab-case

Lowercase words separated by hyphens. Popular for URLs and CSS classes.

User Profile Name → user-profile-name

CONSTANT_CASE

Uppercase words separated by underscores. Used for constants in programming.

max retry count → MAX_RETRY_COUNT

Toggle Case

Inverts the case of each character (uppercase becomes lowercase and vice versa).

Hello World → hELLO wORLD

Text Formatting Tools

Beyond case conversion, our tool includes powerful text formatting utilities to clean, organize, and transform your text data.

Remove Duplicates

Eliminate duplicate lines with case-sensitive and keep-first/last options

Sort Lines

Alphabetically, numerically, by length, or randomly shuffle

Clean Text

Remove extra spaces, line breaks, empty lines, or special characters

Remove Diacritics

Convert accented characters to their base form (á → a)

Add Line Numbers

Automatically number each line with proper padding

Add Prefix/Suffix

Prepend or append custom text to every line

Add Quotes

Wrap each line in single or double quotes

Slugify

Convert to URL-friendly slugs with custom separators and transliteration

When to Use Each Case Style

Programming & Development

  • camelCase:JavaScript/TypeScript variables, functions, and method names
  • PascalCase:Class names, components (React, Vue), type definitions
  • snake_case:Python variables, database column names, file names
  • kebab-case:URLs, CSS classes, HTML attributes, file names
  • CONSTANT_CASE:Constants, environment variables, configuration values

Writing & Content

  • Title Case:Article titles, headings, book titles (AP/Chicago style)
  • Sentence case:Standard sentences, UI copy, blog post content
  • UPPERCASE:Acronyms, emphasis, headers (use sparingly)
  • lowercase:Informal writing, modern design aesthetics, email addresses

Common Use Cases

Converting CSV Data to camelCase for JSON

When importing CSV data with header names into JSON, convert column names to camelCase for JavaScript compatibility.

Input:

User First Name
Email Address
Account Status

Output (camelCase):

userFirstName
emailAddress
accountStatus

Creating SEO-Friendly URL Slugs

Convert article titles or product names into clean, URL-friendly slugs using the slugify tool or kebab-case converter.

Input:

10 Best Práctices for Web Development in 2024!

Output (slugify):

10-best-practices-for-web-development-in-2024

Cleaning and Deduplicating Lists

Remove duplicate entries from lists of email addresses, usernames, or any line-based data with options for case sensitivity.

Input:

john@example.com
Jane@example.com
john@example.com
jane@example.com

Output (remove duplicates, case-insensitive):

john@example.com
Jane@example.com

Formatting Code Variable Names

Quickly convert human-readable names into properly formatted variable names for your programming language of choice.

Input:

maximum connection timeout
default retry count
api base url

Output (CONSTANT_CASE):

MAXIMUM_CONNECTION_TIMEOUT
DEFAULT_RETRY_COUNT
API_BASE_URL

Features & Benefits

10+ case conversion styles with instant preview
Title Case following AP/Chicago style guidelines
Remove duplicate lines with customizable options
Sort lines alphabetically, numerically, or by length
Natural sort algorithm (1, 2, 10 not 1, 10, 2)
Remove extra spaces, line breaks, and empty lines
Remove diacritics and special characters
Add line numbers with automatic padding
Add custom prefix/suffix to each line
Wrap lines in single or double quotes
Slugify with transliteration support
Real-time character, word, and line count
Keyboard shortcuts for common operations
Swap input and output with one click
100% client-side processing for privacy
No file size limits or registration required

Frequently Asked Questions

What's the difference between camelCase and PascalCase?

The main difference is the first letter: camelCase starts with a lowercase letter (e.g., userName), while PascalCase starts with an uppercase letter (e.g., UserName). camelCase is commonly used for variables and functions in JavaScript, while PascalCase is used for class names and components.

What is Title Case and how does it work?

Title Case capitalizes the first and last words of a title, as well as all major words in between. Articles (a, an, the), short prepositions (in, of, to), and conjunctions (and, but, or) remain lowercase unless they're the first or last word. Our tool follows AP and Chicago Manual of Style guidelines.

When should I use snake_case vs kebab-case?

Use snake_case for Python variables, database columns, and file names where underscores are preferred. Use kebab-case for URLs, CSS class names, HTML attributes, and file names where hyphens are standard. kebab-case is more web-friendly and is the standard for URLs, while snake_case is more common in backend code.

Is my data safe? Do you store the text I convert?

Absolutely safe! All text processing happens entirely in your browser using JavaScript. We never send your text to our servers, and nothing is stored. Your text never leaves your device, ensuring complete privacy.

Can I process large amounts of text?

Yes! Our tool is optimized to handle large text files with 10,000+ lines efficiently. All processing happens in your browser, so the only limitation is your device's memory. For extremely large files (100,000+ lines), you may experience some slowdown depending on your device.

What does the slugify function do?

The slugify function converts text into a URL-friendly format by converting to lowercase, removing special characters, transliterating unicode characters (e.g., é → e), and replacing spaces with your chosen separator (typically hyphens). This is essential for creating clean, SEO-friendly URLs from article titles or product names.

Contact

Tell us what you're building and we'll get in touch fast

Ship a proof-of-concept, integrate Metro2, or hand off the workflow entirely—we respond within one business day and loop in the right Switch Labs partner for your stack.

Response Time
< 24 hours
Delivery Options
Product | Services

By submitting you agree to let Switch Labs contact you about relevant products and services.