Case Converter

Convert text between uppercase, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more.

What is Case Converter?

A Case Converter is a productivity tool that instantly transforms text between the many different capitalization and formatting conventions used in writing, programming, and web development. Different contexts demand different casing styles, and manually retyping or reformatting text is tedious and error-prone. In programming, variable naming conventions vary by language: JavaScript uses camelCase for variables and PascalCase for classes; Python and databases favor snake_case; CSS properties use kebab-case; and environment variables use CONSTANT_CASE (all caps with underscores). In writing, Title Case capitalizes the first letter of major words for headlines and book titles, Sentence case capitalizes only the first word of each sentence for body text, and UPPERCASE is used for acronyms, warnings, or emphasis. Content writers frequently need to convert a blog post title from Title Case to a URL slug (kebab-case), or transform a copied database column name from snake_case into a human-readable Sentence case label for a UI form. Developers often need to quickly switch a variable name from camelCase to snake_case when working with a Python backend after writing JavaScript. This tool handles all these transformations simultaneously so you can grab whichever output you need.

How to Use Case Converter

Type or paste your text into the input area. All case conversions update instantly and in parallel—you don't need to select an output type before typing. You'll see your text transformed into all available formats at once: UPPERCASE (every letter capitalized), lowercase (every letter lowercased), Title Case (first letter of each major word capitalized), Sentence case (first letter of the first word capitalized), camelCase (first word lowercase, subsequent words capitalized with no separators), PascalCase (every word capitalized, no separators—used for class names), snake_case (all lowercase words joined with underscores), kebab-case (all lowercase words joined with hyphens), and CONSTANT_CASE (all uppercase words joined with underscores). Click the copy icon next to any row to copy that specific format to your clipboard without selecting the text manually. All conversions are processed in your browser with no latency—results are immediate even for very long text.

FAQ

What is camelCase and where is it used?

camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word, with no spaces or separators (e.g., myVariableName, getUserById). It is the standard convention for variable names, function names, and object properties in JavaScript, TypeScript, Java, Swift, and Kotlin. The name comes from the 'humps' created by the uppercase letters in the middle of the word.

What is the difference between camelCase and PascalCase?

Both join words without separators and capitalize each word boundary, but PascalCase (also called UpperCamelCase) capitalizes the very first letter too (e.g., MyClassName, UserProfile, ComponentName). PascalCase is the standard for class names, React component names, TypeScript interfaces, C# classes, and constructor functions. camelCase is for instances, variables, and methods.

When should I use snake_case vs kebab-case?

snake_case joins words with underscores and keeps everything lowercase (e.g., user_id, get_all_items). It is the standard in Python variables and functions, Ruby, database column names, and Rust. kebab-case joins words with hyphens (e.g., background-color, my-component, user-profile). It is the standard for CSS properties, HTML attributes, URL slugs, and file names in web projects. Hyphens cannot be used in most programming language identifiers, which is why snake_case is used for code and kebab-case for web-facing names.

What is CONSTANT_CASE and when is it used?

CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is all uppercase with words separated by underscores (e.g., MAX_RETRIES, API_BASE_URL, NODE_ENV). It is universally used for environment variables, configuration constants, and named constants in almost every programming language. Seeing CONSTANT_CASE immediately signals to a developer that this value should not change at runtime.

How does Title Case differ from Sentence case?

Title Case capitalizes the first letter of most words, typically skipping short prepositions and conjunctions (e.g., 'The Quick Brown Fox Jumps Over the Lazy Dog'). It is used for article headlines, book titles, movie titles, and UI headings. Sentence case only capitalizes the first letter of the first word and proper nouns (e.g., 'The quick brown fox jumps over the lazy dog'). It is used for body text, email subjects, and most UI labels. Sentence case is considered more readable for long text.