Text Case Converter

Convert text between different cases

Text Input

Converted Text

How to use the Text Case Converter

  1. Paste or type your text into the input area. The tool accepts any amount of text, from a single word to multiple paragraphs.
  2. Select the target case from the available options: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more.
  3. View the converted result instantly in the output area. The conversion happens in real time as you type or change the target case.
  4. Copy the result to your clipboard with a single click for use in your code, documents, or communications.

What are text cases?

Text case conventions define how words are capitalized and separated in a string. Different contexts call for different conventions, and using the wrong case is a common source of bugs, style violations, and confusion.

UPPERCASE converts all characters to their upper-case equivalents. Used for constants in many programming languages and for emphasis in text.

lowercase converts all characters to their lower-case equivalents. Common in URLs, file names, and CSS selectors.

Title Case capitalizes the first letter of each word. Used for headings, titles, and proper nouns. Style guides differ on whether minor words (a, an, the, of) should be capitalized.

Sentence case capitalizes only the first letter of the first word and proper nouns. This is how standard prose is written.

camelCase joins words with no separator, capitalizing the first letter of each word except the first. Standard convention for variable and function names in JavaScript, Java, and TypeScript.

PascalCase (also called UpperCamelCase) is like camelCase but capitalizes the first word too. Used for class names, React component names, and C# method names.

snake_case separates words with underscores, all lowercase. Standard in Python, Ruby, and Rust for variable and function names.

kebab-case separates words with hyphens, all lowercase. Used in CSS class names, HTML attributes, URL slugs, and CLI arguments.

CONSTANT_CASE (SCREAMING_SNAKE_CASE) uses underscores and all uppercase. Standard for constants in JavaScript, Python, and C/C++.

Using the correct naming convention matters for code consistency, readability, and sometimes functionality. For example, React requires component names to be PascalCase, and CSS classes conventionally use kebab-case.

Common use cases

  • Code style compliance: Convert variable names between naming conventions when porting code between languages (e.g., Python's snake_case to JavaScript's camelCase).
  • Content formatting: Convert text to Title Case for headings or Sentence case for body text when reformatting documents.
  • URL slug generation: Convert titles or phrases to kebab-case for use in URL paths (e.g., "My Blog Post" becomes "my-blog-post").
  • Database column naming: Convert field names to snake_case for database columns or camelCase for ORM mappings.
  • CSS class naming: Convert descriptive names to kebab-case for BEM or other CSS naming methodologies.

FAQ

How does Title Case handle small words like "a", "the", and "of"? There is no universal standard. This tool capitalizes every word by default. If you need AP or Chicago style title case (which lowercase minor words except at the beginning), you may need to manually adjust a few words.

Does the conversion handle Unicode and accented characters? Yes. The tool uses JavaScript's built-in string methods which correctly handle Unicode characters including accented letters, umlauts, and other diacritics when converting between upper and lower case.

How does the tool know where words begin and end in camelCase or PascalCase input? The tool detects word boundaries at case transitions (lowercase to uppercase), underscores, hyphens, and spaces. For example, myVariableName is split into ["my", "Variable", "Name"] and can then be rejoined in any convention.

Is my data safe?

Yes. This tool runs entirely in your browser. Your data is never sent to our servers. All text transformations are performed using JavaScript string operations running locally on your device.

How to use the Text Case Converter

  1. Paste or type your text into the input area. The tool accepts any amount of text, from a single word to multiple paragraphs.
  2. Select the target case from the available options: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more.
  3. View the converted result instantly in the output area. The conversion happens in real time as you type or change the target case.
  4. Copy the result to your clipboard with a single click for use in your code, documents, or communications.

What are text cases?

Text case conventions define how words are capitalized and separated in a string. Different contexts call for different conventions, and using the wrong case is a common source of bugs, style violations, and confusion.

UPPERCASE converts all characters to their upper-case equivalents. Used for constants in many programming languages and for emphasis in text.

lowercase converts all characters to their lower-case equivalents. Common in URLs, file names, and CSS selectors.

Title Case capitalizes the first letter of each word. Used for headings, titles, and proper nouns. Style guides differ on whether minor words (a, an, the, of) should be capitalized.

Sentence case capitalizes only the first letter of the first word and proper nouns. This is how standard prose is written.

camelCase joins words with no separator, capitalizing the first letter of each word except the first. Standard convention for variable and function names in JavaScript, Java, and TypeScript.

PascalCase (also called UpperCamelCase) is like camelCase but capitalizes the first word too. Used for class names, React component names, and C# method names.

snake_case separates words with underscores, all lowercase. Standard in Python, Ruby, and Rust for variable and function names.

kebab-case separates words with hyphens, all lowercase. Used in CSS class names, HTML attributes, URL slugs, and CLI arguments.

CONSTANT_CASE (SCREAMING_SNAKE_CASE) uses underscores and all uppercase. Standard for constants in JavaScript, Python, and C/C++.

Using the correct naming convention matters for code consistency, readability, and sometimes functionality. For example, React requires component names to be PascalCase, and CSS classes conventionally use kebab-case.

Common use cases

  • Code style compliance: Convert variable names between naming conventions when porting code between languages (e.g., Python's snake_case to JavaScript's camelCase).
  • Content formatting: Convert text to Title Case for headings or Sentence case for body text when reformatting documents.
  • URL slug generation: Convert titles or phrases to kebab-case for use in URL paths (e.g., "My Blog Post" becomes "my-blog-post").
  • Database column naming: Convert field names to snake_case for database columns or camelCase for ORM mappings.
  • CSS class naming: Convert descriptive names to kebab-case for BEM or other CSS naming methodologies.

FAQ

How does Title Case handle small words like "a", "the", and "of"? There is no universal standard. This tool capitalizes every word by default. If you need AP or Chicago style title case (which lowercase minor words except at the beginning), you may need to manually adjust a few words.

Does the conversion handle Unicode and accented characters? Yes. The tool uses JavaScript's built-in string methods which correctly handle Unicode characters including accented letters, umlauts, and other diacritics when converting between upper and lower case.

How does the tool know where words begin and end in camelCase or PascalCase input? The tool detects word boundaries at case transitions (lowercase to uppercase), underscores, hyphens, and spaces. For example, myVariableName is split into ["my", "Variable", "Name"] and can then be rejoined in any convention.

Is my data safe?

Yes. This tool runs entirely in your browser. Your data is never sent to our servers. All text transformations are performed using JavaScript string operations running locally on your device.