Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more — instantly.
HELLO WORLDText Case in Software Development: A Guide to the Conventions
Every programming language, framework, and ecosystem has strong opinions about capitalisation. Python variables use snake_case. JavaScript functions use camelCase. React component names require PascalCase. CSS custom properties and HTML attributes use kebab-case. Configuration file constants use CONSTANT_CASE. These aren't stylistic choices — they're enforced either by the language itself or by linters and style guides that treat violations as errors. The case converter lets you move identifier names between conventions without manually retyping them.
When refactoring code that crosses language boundaries — a Python backend feeding a JavaScript frontend, for example — you often have a list of field names in one convention that need to become a list in another. Paste the snake_case names from your Python model, click camelCase, and copy the output for your JavaScript object. That's a practical workflow that avoids the typos that accumulate when manually converting a long list of names by hand.
When Each Case Format Is Used
UPPERCASE is used for constants in C, C++, Python, and Java — things that should never change after declaration. It's also used for acronyms in formal writing and for emphasis in plain-text communication where bold isn't available. lowercase is the baseline — used for general prose, URL paths, HTML tag names, and values where case doesn't carry meaning. Title Case capitalises the first letter of each significant word and is required for blog post titles, article headlines, book titles, and UI button labels in many design systems.
Sentence case capitalises only the first word of each sentence — the default for body text, sub-headings in some style guides (AP style, for instance), and chat messages. camelCase (lowercase first word, capitalised subsequent words, no separator) is used for JavaScript and TypeScript variable and function names, Java method names, and Kotlin property names. PascalCase is identical but capitalises the first word too — it's the convention for class names in most object-oriented languages and component names in React, Vue, and Angular.
snake_case uses underscores as separators with all lowercase — standard for Python variable and function names, Rust identifiers, Ruby variable names, PostgreSQL column names, and many file naming conventions. UPPER_SNAKE_CASE (or CONSTANT_CASE) follows the same separator pattern but in uppercase — conventional for environment variables, Python constants, and C macros. kebab-case uses hyphens instead of underscores — standard for CSS class names, HTML attributes, URL slugs, and npm package names.
Title Case: Why It's More Complicated Than It Looks
Title Case is deceptively complex because it isn't simply "capitalise every word." Style guides disagree significantly about which words to capitalise, and the rules are context-dependent. AP style (used in journalism and many web publications) capitalises all words of four letters or more, but leaves prepositions (in, on, at, by, for, from, to, with), articles (a, an, the), and coordinating conjunctions (and, but, or, nor) lowercase unless they're the first or last word of the title. Chicago style has different rules for conjunctions and prepositions.
This converter implements the most widely applicable convention: articles, short prepositions, and conjunctions are lowercased unless they appear at the start of the string. For most blog post titles, product names, and UI copy, this produces the correct result. When publishing academic papers with specific style guide requirements, verify output against the relevant style manual. For converting titles to URL-safe formats, combine this with the URL Slug Generator.
Bulk Case Conversion for Data Migration
Database migrations between platforms often require field name reformatting. A legacy SQL database with columns named first_name, last_name, date_of_birth needs to map to a modern REST API that uses firstName, lastName, dateOfBirth. Rather than converting each field name individually, paste the entire snake_case list, apply camelCase, and copy the output in one step.
The same workflow applies to spreadsheet headers imported from one system into another. A CSV exported from an analytics platform may have headers in Title Case with spaces ("Total Revenue", "New Users", "Conversion Rate") that need to become programming identifiers in another system. Paste all headers, convert to snake_case or camelCase depending on the target language, and copy the clean list.
Toggle Case and Alternating Case
These two modes are less practically useful in professional contexts but have legitimate applications in design and creative work. Toggle case flips the case of every character — uppercase characters become lowercase and vice versa. This is useful when you accidentally typed a long passage with Caps Lock on. Rather than retyping, paste the inverted text and apply Toggle Case. Alternating case (aLtErNaTiNg) applies a regular alternating pattern and is primarily used for stylistic effect in social media, memes, and informal creative text.
Combining Case Conversion with Text Processing
Case conversion becomes more powerful when combined with other text operations. A common workflow in content production: copy headings from a document (which are often in UPPERCASE or mixed case from original source material), convert them to Title Case, then copy the result to the CMS. Or take a list of company names in all-caps from a database export, convert to Title Case, and review for proper nouns that need manual correction. For sorting the resulting list alphabetically, use the Sort Lines tool on the converted output.
Browser-Based, Instant, and Unrestricted
All transformations happen in the browser using JavaScript string manipulation. There's no character limit imposed by the tool itself — you can paste entire files of source code, large spreadsheet exports, or long lists of identifiers and convert them all at once. The left panel accepts input and the right panel shows the converted output simultaneously. Every conversion button applies to the same input text, so you can quickly compare how the same text looks in multiple case formats before choosing the one you need.
✓Verified by ToollyX Team · Last updated June 2026