Skip to content
WebTricks

Case converter

Convert text to camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case and URL slugs at once.

camelCasehelloWorld,ThisIsWebTricks
PascalCaseHelloWorld,ThisIsWebTricks
snake_casehello_world,_this_is_web_tricks
kebab-casehello-world,-this-is-web-tricks
CONSTANT_CASEHELLO_WORLD,_THIS_IS_WEB_TRICKS
Title CaseHello World, This Is Web Tricks
Sentence caseHello world, this is web tricks
slughello-world-this-is-web-tricks

About this case converter

Convert any text to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case and a URL slug — all at once. Mixed input (spaces, dashes, or existing camelCase) is normalized automatically, so you can paste anything.

Where each case is used

camelCase and PascalCase show up in JavaScript variables and classes, snake_case in Python and database columns, kebab-case in URLs and CSS, CONSTANT_CASE for environment variables, and slugs in page paths. Convert once and copy the form you need.

FAQ

What is the difference between snake_case and kebab-case?

Both lowercase the words; snake_case joins them with underscores, while kebab-case joins them with hyphens, which is common in URLs and CSS class names.

How is the slug different from kebab-case?

The slug is kebab-case with punctuation stripped out, so it stays clean and URL-safe.