Case Converter

Text cases: lowercase, UPPERCASE, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case. Conventions vary by language: JavaScript uses camelCase, Python uses snake_case, classes use PascalCase.

Convert text between cases: UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, and more.

Enter Text

Case Types Explained

  • camelCase: First word lowercase, subsequent words capitalized (JavaScript variables)
  • PascalCase: All words capitalized (Class names)
  • snake_case: Words separated by underscores (Python, databases)
  • kebab-case: Words separated by hyphens (URLs, CSS classes)
  • CONSTANT_CASE: Uppercase with underscores (Constants)

How to Use

  1. Enter your value in the input field
  2. Click the Calculate/Convert button
  3. Copy the result to your clipboard

Frequently Asked Questions

What are the different text cases?
Common cases: lowercase (hello world), UPPERCASE (HELLO WORLD), Title Case (Hello World), Sentence case (Hello world), camelCase (helloWorld), PascalCase (HelloWorld), snake_case (hello_world), kebab-case (hello-world), CONSTANT_CASE (HELLO_WORLD).
When should I use each case type?
camelCase: JavaScript variables, Java methods. PascalCase: Classes, React components, C# methods. snake_case: Python variables, database columns, Ruby. kebab-case: URLs, CSS classes, HTML attributes. CONSTANT_CASE: Constants in most languages.
How do I convert camelCase to snake_case?
Insert underscore before each uppercase letter, then lowercase. "camelCaseExample" → "camel_Case_Example" → "camel_case_example". Regex: replace /([A-Z])/g with _$1, then lowercase. Handle consecutive capitals: "HTTPResponse" → "http_response".
What is sentence case vs title case?
Sentence case capitalizes only the first word and proper nouns: "The quick brown fox." Title case capitalizes most words: "The Quick Brown Fox." Style guides differ on small words (a, an, the, and, or) in titles.
Why are naming conventions important in programming?
Consistent naming improves readability and maintainability. Different languages have conventions: JavaScript uses camelCase, Python uses snake_case. Breaking conventions makes code harder to read. Follow your language/team's style guide.

Related Tools