Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and sentence case at once.
Convert text between camelCase, snake_case, kebab-case, Title Case and more.
helloWorldFromDevkitToolsAbout the case converter
Different parts of a stack use different conventions: JavaScript variables in camelCase, database columns in snake_case, CSS classes and URLs in kebab-case, environment variables in CONSTANT_CASE. Converting by hand is where typos come from.
This tool splits on spaces, underscores, hyphens and existing camel boundaries, so it handles input already in any of these forms.
How to use it
- 1Paste your text in any format.
- 2Read every conversion at once in the tabs.
- 3Copy the one you need.
Questions
Does it handle input that is already camelCase?
Yes. It splits on the case boundary as well as on spaces, underscores and hyphens, so any input format works.
What is the difference between camelCase and PascalCase?
camelCase starts lowercase and is used for variables and functions. PascalCase capitalises the first letter too and is used for classes and components.
Which case should URLs use?
kebab-case. Hyphens are treated as word separators by search engines, while underscores are not.