Case Converter

Convert text between 12 different case formats. Paste your text and pick a style. 100% client-side.

Input
Output
Paste text above and choose a case format.

How to Use the Case Converter

  1. Paste your text into the input area on the left (or top on mobile).
  2. Choose a case format — click one of the 12 format chips above the panes.
  3. View the result — your converted text appears on the right instantly.
  4. Copy or download — use the buttons above the output to copy to clipboard or download as a .txt file.

What This Tool Does

This case converter transforms text between 12 different case formats used in programming, writing, and content creation. It intelligently splits input words by detecting spaces, hyphens, underscores, dots, and camelCase boundaries, then reassembles them in the target format. Whether you need to convert variable names, file names, titles, or entire paragraphs, this tool handles it instantly in your browser.

Supported Case Formats

  • UPPER CASE — all characters uppercase. Used for constants, headings, emphasis.
  • lower case — all characters lowercase. Common in CSS, URLs, and normalized text.
  • Title Case — first letter of each word capitalized. Standard for headlines and titles.
  • Sentence case — first letter of each sentence capitalized. Natural reading style.
  • camelCase — first word lowercase, subsequent words capitalized. JavaScript variables and functions.
  • PascalCase — all words capitalized with no separator. Class names in C#, Java, TypeScript.
  • snake_case — lowercase words joined by underscores. Python, Ruby, database column names.
  • kebab-case — lowercase words joined by hyphens. CSS classes, URLs, file names.
  • CONSTANT_CASE — uppercase words joined by underscores. Constants in most languages.
  • dot.case — lowercase words joined by dots. Java package names, configuration keys.
  • path/case — lowercase words joined by forward slashes. File paths and URL segments.
  • aLtErNaTiNg CaSe — alternating upper and lowercase letters. Used for mocking emphasis or stylistic text.

Use Cases for Developers

Case conversion is a frequent task in software development. You might need to convert a class name from PascalCase to snake_case when moving from a Java codebase to Python, or turn a kebab-case CSS class name into a camelCase JavaScript property. Database migrations often require converting column names between formats. API integrations frequently involve mapping between camelCase JSON keys and snake_case database columns.

How Word Splitting Works

The converter uses a smart splitting algorithm that detects word boundaries in any input format. It recognizes spaces, hyphens, underscores, and dots as explicit separators. For camelCase and PascalCase inputs, it detects boundaries where a lowercase letter is followed by an uppercase letter (e.g., "myVariable" splits into "my" and "Variable"). This means you can freely convert between any two formats without worrying about the input format. For more text processing tools, generate URL-friendly text with our Slug Generator, count words and characters with the Word Counter, or remove duplicate lines with the List Deduplicator.

Tips for Effective Case Conversion

  • For programming, match the convention of your language: camelCase for JavaScript, snake_case for Python, PascalCase for C# classes
  • CSS class names should use kebab-case as it is the established convention and makes selectors easier to read
  • When naming database tables and columns, snake_case is the most portable format across SQL dialects
  • Title Case is ideal for headings but remember that small words like "and", "the", "of" are typically not capitalized in formal title style

Frequently Asked Questions

camelCase is a naming convention where the first word is lowercase and each subsequent word starts with a capital letter, with no separators. For example, 'my variable name' becomes 'myVariableName'. It is widely used in JavaScript, Java, and C# for variable and function names.
In camelCase, the first letter is lowercase (myVariableName). In PascalCase, the first letter is uppercase (MyVariableName). PascalCase is commonly used for class names and type names in languages like C#, Java, and TypeScript.
snake_case uses underscores and is common in Python, Ruby, and database column names. kebab-case uses hyphens and is standard for CSS class names, URLs, and file names. Choose based on your language's conventions.
No. This case converter runs 100% in your browser using JavaScript. Your text never leaves your machine. There is no server-side processing, no logging, and no data collection.
The tool intelligently splits text by spaces, hyphens, underscores, dots, and camelCase boundaries. This means it can convert from any case format to any other — for example, 'myVariableName' correctly converts to 'my-variable-name' in kebab-case.