FlowToolkit
Dev

Case Converter

Convert between 14 case styles — camel, snake, kebab, Pascal, and more.

Loading tool…

About this tool

Switch any text between 14 case styles: UPPER, lower, Sentence, Title, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, aLtErNaTiNg, and iNVERSE. Conversion is instant as you type.

Case styles for every context

Different ecosystems use different case conventions, and switching between them by hand is tedious. Python idiomatically uses snake_case for variables; JavaScript uses camelCase; CSS classes use kebab-case; database columns often use snake_case while their ORM models use PascalCase. The Case Converter switches any text between fourteen styles in a single click.

Supported styles

  • UPPER CASE
  • lower case
  • Sentence case
  • Title Case
  • camelCase
  • PascalCase
  • snake_case
  • CONSTANT_CASE
  • kebab-case
  • Train-Case
  • dot.case
  • path/case
  • aLtErNaTiNg CaSe
  • iNVERSE cASE

Tips and gotchas

When converting from camelCase or PascalCase to a separator-based style, acronyms are split at every uppercase boundary. For example HTMLParser becomes html_parser rather than h_t_m_l_parser. If you need a different segmentation, edit the result manually before copying. The conversion runs locally so very long strings (legal documents, source code) stay on your machine.

Frequently asked questions

Does it preserve acronyms?

Acronyms in PascalCase or camelCase input split at every uppercase boundary. HTMLParser becomes html_parser rather than h_t_m_l_parser. Edit manually if you need a different segmentation.

How do I convert text to camelCase?

Paste your text and choose camelCase. The tool lowercases the first word, capitalises the first letter of every subsequent word, and removes separators.

How do I convert text to snake_case?

Choose snake_case. The tool lowercases everything and replaces spaces and punctuation with underscores.

What is the difference between PascalCase and camelCase?

PascalCase capitalises the first letter of every word, including the first (UserAccount). camelCase keeps the first word lowercase (userAccount). Both are common in code.

When should I use kebab-case?

kebab-case is ideal for URL slugs and CSS class names. Google treats hyphens as word separators, so kebab-case is more SEO-friendly than snake_case in URLs.

What is CONSTANT_CASE?

CONSTANT_CASE uppercases every letter and uses underscores as separators. Convention for environment variables, compile-time constants, and enum values across most languages.