Skip to content

Transform text between upper, lower, title, camel, snake, and kebab case.

Loading tool

About Case Converter

Paste text and see it in 13 case styles at once: lowercase, UPPERCASE, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, path/case, Header-Case and mOcKiNg cAsE. Words are split on spaces, punctuation and camelCase humps, so you can convert between identifier styles in either direction. Each result has its own copy button.

Common uses

  • Rename a variable from camelCase to snake_case when moving code between JavaScript and Python.
  • Turn a heading into a kebab-case CSS class or file name.
  • Generate CONSTANT_CASE names for environment variables or enum members.
  • Convert an all-caps string back to Sentence case or Title Case.

FAQ

What is the difference between camelCase and PascalCase?
Both join words without separators and capitalize each word, but camelCase keeps the first word lowercase (userId) while PascalCase capitalizes it too (UserId). PascalCase is common for class and type names.
When should I use snake_case vs kebab-case?
snake_case (words joined by underscores) is conventional for Python variables and many database columns. kebab-case (words joined by hyphens) is common in URLs, CSS class names and CLI flags, but cannot be used for identifiers in most programming languages because the hyphen is the minus operator.
How does the tool split words in camelCase input?
It inserts a word boundary before an uppercase letter that follows a lowercase letter or digit, and between an acronym and the next word (XMLParser becomes XML and Parser), then splits on any non-letter, non-digit character.