Home / Developer / Case Converter

Case Converter

A case converter splits text into words and rejoins them in a target convention such as camelCase, snake_case or kebab-case.
Converted
theQuickBrownFox

Naming conventions differ by language and context — camelCase in JavaScript, snake_case in Python, kebab-case in URLs. This converts a phrase or identifier between them without retyping.

How it works

The text is split into words at spaces, underscores, hyphens and camelCase boundaries, then rejoined using the chosen convention's separator and capitalisation. Acronyms and mixed input are normalised in the process.

Questions

How are word boundaries detected?

At spaces, underscores, hyphens and lowercase-to-uppercase transitions, so 'myHTTPServer' and 'my_http_server' are read the same way.

What's the difference between camel and Pascal?

Both remove separators; camelCase keeps the first letter lowercase, PascalCase capitalises it.