Skip to main content
CaseSwitch

Naming Convention Tools

Map a phrase or identifier into the naming style your layer expects — JavaScript camelCase, React PascalCase, Python/SQL snake_case, URL kebab-case, or a CMS slug.

Pick one convention per layer and stay consistent. Public URLs and CSS classes usually want hyphens; JSON APIs in JS ecosystems usually want camelCase; databases often want snake_case. The slug generator is stricter about punctuation than a plain kebab-case pass.

These converters split on spaces, underscores, hyphens, dots, and camel boundaries. They do not refactor call sites — convert the name, then rename in your IDE.

Tools in this hub

Frequently asked questions

Which style should I use for URLs?+

Prefer kebab-case or the Slug Generator for public paths. Hyphens are the conventional choice for readable URLs and make words easier for people and search engines to distinguish than underscores.

camelCase vs PascalCase?+

Same word splits; PascalCase capitalizes the first letter (UserProfile) and is the React component / type convention. camelCase keeps the first letter lower (userProfile).