Case Converter

Case Converter

Text case converter online. Convert between camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase. Change text case instantly free.

Input Text

Target Case

Features

  • Convert between 10+ text case formats instantly
  • Support for camelCase, PascalCase, snake_case, kebab-case
  • UPPERCASE, lowercase, Title Case, Sentence case
  • Preserve or remove special characters
  • Bulk text conversion
  • Copy converted text with one click

Common Use Cases

  • Convert variable names between coding conventions
  • Format database column names (snake_case)
  • Create URL slugs (kebab-case)
  • Format class names (PascalCase)
  • Normalize user input text

Understanding Text Case Conventions

Text case refers to how letters are capitalized and words are separated. Different programming languages, databases, and systems have different conventions.

Common formats:

  • camelCase - First word lowercase, rest capitalized: myVariableName
  • PascalCase - All words capitalized: MyClassName
  • snake_case - Words separated by underscores: my_variable_name
  • kebab-case - Words separated by hyphens: my-url-slug
  • UPPER_SNAKE_CASE - Constants: MAX_RETRY_COUNT

When to use each: JavaScript uses camelCase for variables, PascalCase for classes. Python and Ruby use snake_case. URLs use kebab-case. Database columns often use snake_case. Constants use UPPER_SNAKE_CASE.

Examples

Valid - JavaScript variable to Python
Input: myVariableName
camelCase → snake_case
Output: my_variable_name
Valid - Creating URL slug
Input: My Blog Post Title
Title Case → kebab-case
Output: my-blog-post-title
Valid - Database constant
Input: max retry count
lowercase → UPPER_SNAKE_CASE
Output: MAX_RETRY_COUNT

Frequently Asked Questions

What's the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (myVariable), while PascalCase starts with uppercase (MyClass). Both capitalize subsequent words.

When should I use snake_case vs kebab-case?

Use snake_case for code (Python, Ruby, database columns) because underscores are valid in identifiers. Use kebab-case for URLs and file names because hyphens are more readable in URLs.

Can this tool handle special characters?

Yes! The tool can preserve or remove special characters like @, #, $, etc. depending on your needs. Non-alphabetic characters are typically removed in programming identifiers.

What is SCREAMING_SNAKE_CASE used for?

SCREAMING_SNAKE_CASE (all uppercase with underscores) is conventionally used for constants in many programming languages, like MAX_BUFFER_SIZE or API_KEY.

Does this preserve acronyms correctly?

The tool tries to preserve acronyms intelligently. For example, "HTTPSConnection" → "https_connection" in snake_case, keeping the acronym together.

💡 Tips

  • When converting to kebab-case for URLs, the tool automatically lowercases everything—perfect for SEO-friendly slugs
  • For API parameter conversion, camelCase is standard for JSON while snake_case is common for query params
  • Use PascalCase for class names, React components, and type names in TypeScript
  • Database naming: use snake_case for tables and columns to match SQL conventions