D
Devault

Text Case Converter

Convert between camelCase, PascalCase, snake_case, kebab-case, and 7 more formats

Examples — try these:

About Text Case Converter

Programming languages and style guides each prefer a naming convention: camelCase in JavaScript, snake_case in Python and databases, kebab-case in URLs and CSS classes, PascalCase for types. Renaming identifiers by hand between conventions is tedious and easy to mistype.

This tool converts text between common case styles such as camelCase, snake_case, kebab-case, PascalCase, and upper or lower case, in your browser. It is useful when moving names between code, database columns, JSON keys, and file names.

Common use cases

  • Converting database column names to JSON or object property names.
  • Turning a heading into a URL slug.
  • Renaming constants to UPPER_SNAKE_CASE.
  • Normalizing inconsistent naming in a list of identifiers.

Frequently asked questions

What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (userName), while PascalCase capitalizes the first letter too (UserName).
How are acronyms handled?
Conventions vary. Review the output for names containing acronyms such as ID or URL and adjust to your style guide.
Which case is best for URLs?
Lowercase kebab-case is the common choice because it is readable and works well with search engines.