Case Converter

Convert text to uppercase, lowercase, camelCase, snake_case, PascalCase, and more

Enter text to convert

Case Types Reference

UPPERCASEHELLO WORLD
lowercasehello world
Title CaseHello World
Sentence caseHello world
camelCasehelloWorld
PascalCaseHelloWorld
snake_casehello_world
kebab-casehello-world
CONSTANT_CASEHELLO_WORLD
dot.casehello.world

What is Case Converter?

Case Converter transforms text between different naming conventions and capitalization styles. Developers use different case styles for different contexts: camelCase for JavaScript variables, snake_case for Python, PascalCase for class names, and kebab-case for CSS classes and URLs.

How to Use

  1. Enter your text in the input field (any case style works).
  2. Select the target case style from the dropdown or quick buttons.
  3. Click 'Convert' to transform the text.
  4. Use 'Show All' to see conversions for all case types at once.
  5. Click 'Copy' to copy the result to your clipboard.
  6. Access recent conversions from the history section.

Why Use This Tool?

Instant conversion between 10 different case styles
Smart word detection handles mixed input formats
Quick buttons for developer-focused cases (camelCase, snake_case, etc.)
History tracking for recent conversions
Works entirely in browser - no data sent to servers
Perfect for code refactoring and naming convention changes

Tips & Best Practices

  • camelCase is standard for JavaScript/TypeScript variables and functions
  • PascalCase is used for class names and React components
  • snake_case is preferred in Python, Ruby, and database columns
  • kebab-case is standard for CSS classes, URLs, and file names
  • CONSTANT_CASE is used for constants and environment variables
  • The tool auto-detects word boundaries from any input format

Frequently Asked Questions

What is camelCase and when should I use it?

camelCase capitalizes the first letter of each word except the first (e.g., getUserById). It's the standard naming convention in JavaScript, TypeScript, and Java for variables, functions, and methods. React also uses camelCase for component props.

What's the difference between snake_case and kebab-case?

Both use lowercase with separators between words. snake_case uses underscores (user_name) and is common in Python, Ruby, and databases. kebab-case uses hyphens (user-name) and is used in CSS classes, URLs, and HTML attributes.

When should I use PascalCase?

PascalCase capitalizes every word (UserName). Use it for class names in most languages, React component names, TypeScript interfaces and types, and enum values. It's also called UpperCamelCase.

Can this tool handle text that's already in a specific case?

Yes! The tool smartly detects word boundaries from any format. Input like 'helloWorld', 'hello_world', 'HelloWorld', or 'hello-world' will all be correctly converted to any target case. It handles mixed formats too.

What is CONSTANT_CASE used for?

CONSTANT_CASE uses uppercase with underscores (MAX_RETRY_COUNT). Use it for constants in any language, environment variables, configuration keys, and enum values in some conventions.

Is my text data secure?

Absolutely. All conversion happens in your browser using JavaScript. Your text is never sent to any server, never stored, and never logged. When you close the page, all data is cleared.

Related Tools