Text Case Converter
Convert text between camelCase, snake_case, kebab-case, and 16+ formats. Perfect for developers working with different programming languages.
Related Tools
Text Diff Compare
Compare two text inputs side-by-side with detailed differences
ASCII Art Generator
Convert text into stylish ASCII art for your projects
Font Converter
Convert and transform text with various font styles
Free Online Case Converter for Developers
Transform text between 16+ different case formats instantly. Whether you're coding in JavaScript, Python, Java, or any other language, our case converter helps you maintain consistent naming conventions across your codebase. No sign-up required, completely free, and works entirely in your browser.
Supported Case Formats
Programming Cases
- camelCase - First word lowercase, subsequent words capitalized. Used in JavaScript, TypeScript, Java, and Swift. Example:
getUserName - PascalCase - All words capitalized. Used in C#, Go, and React components. Example:
UserProfile - snake_case - Words separated by underscores, all lowercase. Used in Python, Ruby, Rust, and C/C++. Example:
user_profile_data - kebab-case - Words separated by hyphens, all lowercase. Used in URLs, CSS class names, and HTML attributes. Example:
user-profile-section - CONSTANT_CASE - Words separated by underscores, all uppercase. Used for constants in all programming languages. Example:
MAX_FILE_SIZE
Standard Text Cases
- lower case - All characters lowercase. Example:
hello world - UPPER CASE - All characters uppercase. Example:
HELLO WORLD - Title Case - First letter of each word capitalised. Example:
Hello World - Sentence case - First letter of sentences capitalised. Example:
Hello world. This is great. - Capitalized Case - Every word starts with a capital letter. Example:
Hello World Example - iNVERSE cASE - Inverts the case of each character. Example:
hELLO wORLD - aLtErNaTiNg CaSe - Alternates between upper and lower case. Example:
HeLlO wOrLd
Special Cases
- dot.case - Words separated by dots. Used in domain names and file paths. Example:
user.profile.data - path/case - Words separated by slashes. Used in file systems and URLs. Example:
user/profile/data - Header-Case - HTTP header format with hyphens. Example:
Content-Type - COBOL-CASE - Uppercase with hyphens (SCREAMING-KEBAB-CASE). Example:
USER-PROFILE-DATA
How to Use the Case Converter
- Enter or paste your text in the input area
- Select the desired case format from the 16 available options
- Copy the converted text with one click
- Download as a text file if needed
- Share a link to your conversion with team members
Why Use Different Case Formats?
Different programming languages and frameworks have established naming conventions that improve code readability and maintainability:
- JavaScript/TypeScript: camelCase for variables and functions, PascalCase for classes and React components
- Python: snake_case for variables and functions, PascalCase for classes, CONSTANT_CASE for constants
- Go: PascalCase for exported identifiers, camelCase for unexported
- CSS/HTML: kebab-case for class names and IDs
- URLs: kebab-case for SEO-friendly paths
- Database columns: snake_case in PostgreSQL, camelCase in MongoDB
Features
- ✓16+ case formats - All common programming and text cases supported
- ✓Real-time conversion - See results instantly as you type
- ✓Automatic case detection - Identifies the current format of your text
- ✓Text statistics - Character, word, line, and paragraph counts
- ✓Keyboard shortcuts - Ctrl/Cmd + C to copy, Ctrl/Cmd + D to download
- ✓Share links - Generate shareable URLs with your text and selected format
- ✓100% client-side - Your text never leaves your browser
- ✓No registration required - Use immediately, completely free
Common Use Cases
Converting API Response Keys
Backend APIs often use snake_case (Python/Ruby) while frontend JavaScript uses camelCase. Convert field names quickly when integrating different systems.
Database Column Names
Transform between different database naming conventions. PostgreSQL typically uses snake_case, while MongoDB prefers camelCase.
URL Slug Generation
Create SEO-friendly URL slugs in kebab-case from titles or headings.
Code Refactoring
Rename variables and functions when migrating between programming languages or updating coding standards.
CSS Class Names
Generate consistent kebab-case class names for CSS and HTML from various text formats.
Frequently Asked Questions
What is camelCase?
camelCase is a naming convention where the first word is lowercase and subsequent words are capitalised, with no spaces or special characters. It's commonly used in JavaScript, Java, and Swift. Example: getUserProfileData
What is snake_case?
snake_case uses underscores to separate words, with all characters in lowercase. It's the standard naming convention in Python, Ruby, and Rust. Example: get_user_profile_data
What is kebab-case?
kebab-case uses hyphens to separate words, with all characters in lowercase. It's commonly used in URLs, CSS class names, and HTML attributes. Example: user-profile-section
Is my text data secure?
Yes! All conversions happen entirely in your browser using JavaScript. Your text is never sent to our servers or any third party. The tool works completely offline once loaded.
Can I convert multiple lines of text?
Yes! The converter supports multi-line text and will maintain line breaks and paragraph structure while converting the case of each line.
Which programming languages use which case?
camelCase: JavaScript, TypeScript, Java, Swift, Kotlin
PascalCase: C#, Go, Pascal, TypeScript (classes)
snake_case: Python, Ruby, Rust, C, C++, PHP
kebab-case: CSS, HTML, URLs, Lisp
CONSTANT_CASE: Constants in all languages