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.
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:
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 FoxSentence case
Capitalizes only the first word of each sentence.
HELLO WORLD → Hello worldcamelCase
First word lowercase, subsequent words capitalized. Common in JavaScript and Java.
user profile name → userProfileNamePascalCase
All words capitalized, no separators. Used for class names and types.
user profile name → UserProfileNamesnake_case
Lowercase words separated by underscores. Common in Python and databases.
User Profile Name → user_profile_namekebab-case
Lowercase words separated by hyphens. Popular for URLs and CSS classes.
User Profile Name → user-profile-nameCONSTANT_CASE
Uppercase words separated by underscores. Used for constants in programming.
max retry count → MAX_RETRY_COUNTToggle Case
Inverts the case of each character (uppercase becomes lowercase and vice versa).
Hello World → hELLO wORLDText 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 StatusOutput (camelCase):
userFirstName
emailAddress
accountStatusCreating 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-2024Cleaning 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.comOutput (remove duplicates, case-insensitive):
john@example.com
Jane@example.comFormatting 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 urlOutput (CONSTANT_CASE):
MAXIMUM_CONNECTION_TIMEOUT
DEFAULT_RETRY_COUNT
API_BASE_URLFeatures & Benefits
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.