Text Case Converter

Different contexts call for different text casing conventions — variable names in code, titles in documents, or slugs in URLs. This tool converts any text into eight common case formats instantly, so you don't have to retype or manually reformat it by hand.

Your data stays in your browser — this tool runs entirely on the client side and nothing is uploaded to a server.

How to Use the Text Case Converter

  1. Type or paste your text into the input box.
  2. Click any case format button (UPPERCASE, camelCase, snake_case, etc.) to see the converted result.
  3. Copy the result you need.

Where each case format is used

camelCase is the standard for variable and function names in JavaScript, Java, and many other languages. PascalCase (also called UpperCamelCase) is typically used for class and component names. snake_case is common in Python variable names and database column names. kebab-case is standard for URL slugs and CSS class names. Title Case is used for headings, and Sentence case for regular prose.

Why casing conventions matter

Consistent casing improves readability and follows the conventions expected by a given language, framework, or style guide. Mixing conventions within one codebase or document makes it noticeably harder to scan, and some languages/frameworks use case as a meaningful signal — for example, PascalCase for a React component versus camelCase for a regular JavaScript function.

Example

Input: "hello world example"
hello world example
camelCase: helloWorldExample
snake_case: hello_world_example
kebab-case: hello-world-example

Tips

  • PascalCase and camelCase differ only in whether the first letter is capitalized.
  • kebab-case is the safest choice for URL slugs since hyphens are URL-friendly and readable.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (helloWorld), while PascalCase starts with an uppercase letter (HelloWorld). Both capitalize subsequent words.

Does this handle punctuation and numbers?

Yes, punctuation is treated as a word boundary and numbers are preserved as part of the surrounding word.