How words are split
The input is split into words at spaces, underscores, hyphens, dots and slashes, and at case changes inside a word. Runs of capitals are treated as one acronym, so getHTTPResponse becomes get, HTTP, Response and then get_http_response. Digits stay attached to the word before them.
Where each style is used
- camelCase: JavaScript and Java variables, JSON keys.
- PascalCase: class and type names, React components.
- snake_case: Python, Ruby, SQL columns.
- CONSTANT_CASE: environment variables and constants.
- kebab-case: URLs, CSS classes, CLI flags.
FAQ
Does it keep acronyms?
In camelCase and PascalCase output acronyms are written like normal words (getHttpResponse), which most style guides prefer. In CONSTANT_CASE and Title Case they are kept readable.
Can I convert many names at once?
Yes. Put one name per line; every line is converted on its own.