Text Case Converter
Convert text between different cases: camelCase, snake_case, kebab-case, and more.
What Is a Text Case Converter?
A text case converter transforms text between different capitalization and naming conventions — from simple uppercase and lowercase to programming-specific formats like camelCase, snake_case, and kebab-case. Developers, writers, and content creators use case converters daily to maintain consistent naming conventions across codebases, documents, and content.
In programming, naming conventions are more than style preferences — they're enforced standards. JavaScript uses camelCase for variables and PascalCase for classes. Python prefers snake_case. CSS and URLs use kebab-case. Environment variables and constants use CONSTANT_CASE. Manually converting between these formats is tedious and error-prone, especially when refactoring large amounts of code.
This text case converter handles 9 different case formats simultaneously. Paste your text once and instantly see every conversion — from UPPERCASE to camelCase to CONSTANT_CASE. It intelligently splits words from any input format, including camelCase identifiers, hyphenated strings, and underscore-separated names. All processing runs in your browser — no data is sent anywhere.
How to Convert Text Case Online
- Paste or type your text — Enter any text in the input field. The converter accepts plain English, camelCase identifiers, snake_case variables, hyphenated strings, or any mix.
- View all conversions instantly — All 9 case formats appear immediately as you type. No need to select a target format first.
- Copy the format you need — Click the "Copy" button next to any conversion to copy it to your clipboard.
- Convert more text — Simply replace the input text to convert something new. Results update in real-time with zero delay.
Supported Case Formats
- UPPERCASE — All characters converted to capitals. Used for constants in some languages and emphasis in text.
- lowercase — All characters converted to small letters. Common for CSS properties, HTML tags, and normalization.
- Title Case — First letter of every word capitalized. Standard for headings, titles, and proper nouns.
- camelCase — First word lowercase, subsequent words capitalized, no separators. The JavaScript and Java standard for variables and functions.
- PascalCase — Every word capitalized, no separators. Used for class names in JavaScript, C#, and TypeScript.
- snake_case — All lowercase with underscores between words. The Python and Ruby convention for variables and functions.
- kebab-case — All lowercase with hyphens between words. Used in CSS class names, URLs, and CLI arguments.
- CONSTANT_CASE — All uppercase with underscores. The universal convention for constants and environment variables.
- Sentence case — Only the first letter of each sentence capitalized. Natural reading format for paragraphs and descriptions.
Common Use Cases
- Refactoring variable names — Convert between camelCase, snake_case, and PascalCase when porting code between languages or following new style guides.
- CSS class naming — Convert component names to kebab-case for CSS classes or BEM-style naming conventions.
- Database column naming — Transform field names to snake_case for SQL databases or camelCase for NoSQL/document stores.
- API field mapping — Convert between snake_case API responses (common in Python/Ruby backends) and camelCase frontend code (JavaScript/TypeScript).
- Environment variables — Convert configuration keys to CONSTANT_CASE for .env files and environment variable definitions.
- Content formatting — Quickly convert headings to Title Case, normalize text to lowercase, or format constants to UPPERCASE.
Frequently Asked Questions
🔒 This tool runs entirely in your browser. No data is sent to any server.