Text Case Converter

Input Text
Supports mixed input: camelCase, PascalCase, snake_case, kebab-case, spaces, or plain words.
Copied!

What is Text Case Converter?

Text Case Converter transforms text between any casing style: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, UPPER CASE, lower case, Title Case, Sentence case, dot.case, and path/case. Paste any text and all variants appear simultaneously โ€” copy any format with one click. It handles spaces, hyphens, underscores, and mixed input correctly.

Different programming contexts use different naming conventions: JavaScript/TypeScript: camelCase for variables (myVariable), PascalCase for classes and components (MyComponent). Python: snake_case for variables and functions (my_variable), PascalCase for classes (MyClass). CSS: kebab-case for class names and custom properties (my-class, --my-property). SQL: UPPER_CASE for keywords, snake_case for identifiers (SELECT id FROM my_table). REST API: kebab-case in URLs (/api/user-profile), camelCase or snake_case in JSON depending on convention.

Case conversion is also used for: generating slug URLs from page titles (title to kebab-case), creating variable names from user input, normalizing data from different sources (some APIs use camelCase, others snake_case), and transforming display names for database column names.

How to Use

  1. Type or paste any text in the input field.
  2. All case variants appear below in real time โ€” click any to copy it.
  3. Or click the target case card to toggle it as the primary output.
  4. Use the 'Word boundary detection' toggle to control how the converter splits words.
  5. Special characters and numbers are preserved โ€” only case and separators are transformed.

Examples

Variable naming

Result: 'user profile picture' โ†’ camelCase: userProfilePicture / snake_case: user_profile_picture

URL slug from title

Result: 'Top 10 CSS Tips & Tricks' โ†’ kebab-case: top-10-css-tips-tricks

API field normalization

Result: camelCase 'firstName' โ†’ snake_case 'first_name' for Python/Ruby API convention

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

camelCase: first word lowercase, subsequent words capitalized โ€” myVariableName. Also called lower camelCase. Used for variables, functions, and object keys in JavaScript/TypeScript, Java, C#, and Swift. PascalCase (UpperCamelCase): every word capitalized โ€” MyVariableName. Used for classes, types, interfaces, React components, C# namespaces, and Go exported identifiers. The distinction matters because linters and type checkers enforce these conventions.

Why does Python use snake_case instead of camelCase?

PEP 8 (Python's official style guide) specifies snake_case for variable names, function names, and module names. This was a design choice by the Python community for readability โ€” some argue snake_case is more readable for longer names: user_profile_picture vs userProfilePicture. Python does use PascalCase for class names (MyClass) and UPPER_SNAKE_CASE for constants (MAX_VALUE). The consistency of PEP 8 adoption across the Python ecosystem makes it effectively a language standard.

What is SCREAMING_SNAKE_CASE used for?

SCREAMING_SNAKE_CASE (uppercase with underscores) is used for constants and environment variables. In most languages: MAX_RETRY_COUNT = 3, API_BASE_URL = 'https://api.example.com'. In environment variables and .env files: DATABASE_URL, SECRET_KEY, REDIS_HOST. In C and C++: preprocessor macros (#define MAX_SIZE 1000). The uppercase communicates 'this value doesn't change' โ€” it's a convention understood by developers across languages.

What is Title Case and how do style guides differ?

Title Case capitalizes the first letter of each 'significant' word โ€” but which words are significant varies by style guide. AP Style: capitalize all words except articles (a, an, the), prepositions under 4 letters, and coordinating conjunctions. Chicago Manual: similar but capitalizes prepositions of 4+ letters. APA: capitalize all words of 4+ letters. This tool uses a simplified rule (all words capitalized) โ€” for precise style-guide compliance, specify the style guide.

What is UPPER CASE used for?

UPPERCASE (all capitals) has specific uses: database SQL keywords (SELECT, FROM, WHERE โ€” convention, not requirement), acronyms (HTML, CSS, API, URL), error codes and status constants (STATUS_OK, ERR_NOT_FOUND), hexadecimal colors in some style guides (#FF5733 vs #ff5733), and headers in some CSV/Excel exports where headers should visually stand out. In general prose, UPPERCASE implies SHOUTING and should be used sparingly.

Related Tools