Skip to main content
B
Benrio
← All tools/Case Converter

Case Converter

Convert text between different casing styles.

What is Case Converter?

Case Converter transforms text between common casing conventions used in writing and programming. It supports uppercase, lowercase, title case, camelCase, snake_case, and kebab-case, saving you from manually reformatting text when switching between contexts like code variables, headlines, or file names.

How to Use

  1. Paste or type your text into the input area.
  2. Click the button for your desired casing style (e.g., camelCase, UPPER CASE).
  3. Copy the converted result from the output area.

Frequently Asked Questions

When should I use camelCase vs snake_case?

camelCase is the convention in JavaScript, TypeScript, and Java for variable and function names. snake_case is standard in Python, Ruby, and database column names. For example, a variable like "user first name" becomes userFirstName in JavaScript or user_first_name in Python. Following the correct convention improves code readability and consistency within a project.

What is kebab-case used for?

kebab-case (words separated by hyphens) is commonly used for URL slugs, CSS class names, and HTML attributes where spaces aren't allowed. For example, a blog post title "My First Post" becomes "my-first-post" in a URL. It's also the standard naming convention in BEM CSS methodology and component file names in frameworks like Angular.

How does title case work?

Title case capitalizes the first letter of every word and lowercases the rest. It's used for headings, book titles, and proper nouns in English. Note that formal title case style guides (like AP or Chicago) have rules about not capitalizing short prepositions and articles, but this tool capitalizes every word uniformly for simplicity.