Tools

Case Converter

Convert text to UPPER, lower, camelCase, snake_case, Title Case, and more.

About Case Converter

This tool converts text into various case formats used in programming and writing. • UPPER CASE: All characters in uppercase • lower case: All characters in lowercase • Title Case: First letter of each word capitalized • Sentence case: First letter of each sentence capitalized • camelCase: First word lowercase, subsequent words capitalized, no spaces • PascalCase: All words capitalized, no spaces • snake_case: Words joined with underscores, lowercase • kebab-case: Words joined with hyphens, lowercase • CONSTANT_CASE: Words joined with underscores, uppercase

Common Use Cases

• Programming variables: camelCase, snake_case, PascalCase • Environment variables: CONSTANT_CASE (e.g., API_BASE_URL) • URL slugs: kebab-case (e.g., my-blog-post) • Headings & titles: Title Case • SQL keywords: UPPER CASE

FAQ

What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (e.g., myVariableName), while PascalCase starts with an uppercase letter (e.g., MyClassName). In JavaScript/TypeScript, camelCase is typically used for variables and functions, while PascalCase is used for classes and React components.
When should I use snake_case?
snake_case is commonly used in Python, Ruby, and Rust for variable and function names. It is also widely used for database column names and file names. Words are separated by underscores for readability.
Where is kebab-case used?
kebab-case is used for URL slugs, CSS class names, HTML attributes, and npm package names. Words are separated by hyphens (-), and it is recommended for creating SEO-friendly URLs.

Related Tools